/linux-4.1.27/net/6lowpan/ |
H A D | nhc_udp.c | 2 * 6LoWPAN IPv6 UDP compression according to RFC6282 31 pr_debug("UDP header uncompression\n"); udp_uncompress() 56 pr_debug("uncompressed UDP ports: src = %d, dst = %d\n", udp_uncompress() 70 /* UDP length needs to be infered from the lower layers udp_uncompress() 75 pr_debug("uncompressed UDP length: src = %d", ntohs(uh.len)); udp_uncompress() 77 /* replace the compressed UDP head by the uncompressed UDP udp_uncompress() 99 pr_debug("UDP header: both ports compression to 4 bits\n"); udp_compress() 109 pr_debug("UDP header: remove 8 bits of dest\n"); udp_compress() 120 pr_debug("UDP header: remove 8 bits of source\n"); udp_compress() 130 pr_debug("UDP header: can't compress\n"); udp_compress() 152 LOWPAN_NHC(nhc_udp, "RFC6282 UDP", NEXTHDR_UDP, sizeof(struct udphdr), 156 MODULE_DESCRIPTION("6LoWPAN next header RFC6282 UDP compression");
|
/linux-4.1.27/include/uapi/linux/ |
H A D | udp.h | 6 * Definitions for the UDP protocol. 29 /* UDP socket options */ 35 /* UDP encapsulation types */
|
H A D | if_pppol2tp.h | 21 /* Structure used to connect() the socket to a particular tunnel UDP 27 int fd; /* FD of UDP socket to use */ 35 /* Structure used to connect() the socket to a particular tunnel UDP 41 int fd; /* FD of UDP socket to use */ 55 int fd; /* FD of UDP or IP socket to use */ 66 int fd; /* FD of UDP or IP socket to use */
|
H A D | net_tstamp.h | 91 /* PTP v1, UDP, any kind of event packet */ 93 /* PTP v1, UDP, Sync packet */ 95 /* PTP v1, UDP, Delay_req packet */ 97 /* PTP v2, UDP, any kind of event packet */ 99 /* PTP v2, UDP, Sync packet */ 101 /* PTP v2, UDP, Delay_req packet */
|
H A D | snmp.h | 146 * RFC 1213: MIB-II UDP group 147 * RFC 2013 (updates 1213): SNMPv2-MIB-UDP
|
H A D | bpf.h | 202 * l4_csum_replace(skb, offset, from, to, flags) - recompute TCP/UDP checksum 204 * @offset: offset within packet where TCP/UDP checksum is located
|
H A D | if_bonding.h | 92 #define BOND_XMIT_POLICY_LAYER34 1 /* layer 3+4 (IP ^ (TCP || UDP)) */
|
H A D | in.h | 70 IPPROTO_UDPLITE = 136, /* UDP-Lite (RFC 3828) */
|
H A D | dcbnl.h | 223 * 3 Well known port number over UDP or DCCP 224 * 4 Well known port number over TCP, SCTP, UDP, or DCCP
|
H A D | capability.h | 165 /* Allows binding to TCP/UDP sockets below 1024 */
|
H A D | ip_vs.h | 333 IPVS_CMD_ATTR_TIMEOUT_UDP, /* UDP timeout */
|
H A D | virtio_net.h | 90 #define VIRTIO_NET_HDR_GSO_UDP 3 /* GSO frame, IPv4 UDP (UFO) */
|
/linux-4.1.27/net/core/ |
H A D | ptp_classifier.c | 22 * ; PTP over UDP over IPv4 over Ethernet 30 * ldh [x + 16] ; load UDP dst port 38 * ; PTP over UDP over IPv6 over Ethernet 43 * ldh [56] ; load UDP dst port 64 * ; PTP over UDP over IPv4 over 802.1Q over Ethernet 72 * ldh [x + 20] ; load UDP dst port 80 * ; PTP over UDP over IPv6 over 802.1Q over Ethernet 85 * ldh [60] ; load UDP dst port
|
H A D | pktgen.c | 37 * and UDP-ports, for both source and destination, and can 40 * * Place 12-byte packet in UDP payload with magic number, 190 #define F_UDPSRC_RND (1<<2) /* UDP-Src Random */ 191 #define F_UDPDST_RND (1<<3) /* UDP-Dst Random */ 204 #define F_UDPCSUM (1<<16) /* Include UDP checksum */ 317 __u16 udp_src_min; /* inclusive, source UDP port */ 318 __u16 udp_src_max; /* exclusive, source UDP port */ 319 __u16 udp_dst_min; /* inclusive, dest UDP port */ 320 __u16 udp_dst_max; /* exclusive, dest UDP port */ 2329 * for IP src/dest, UDP src/dst port, MAC-Addr src/dst 2835 iph->protocol = IPPROTO_UDP; /* UDP */ fill_packet_ipv4()
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | checksum.h | 12 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/ |
H A D | checksum.h | 5 * Check values used in TCP/UDP headers.
|
/linux-4.1.27/net/ipv4/ |
H A D | udplite.c | 2 * UDPLITE An implementation of the UDP-Lite protocol (RFC 3828). 40 .name = "UDP-Lite", 124 udp_table_init(&udplite_table, "UDP-Lite"); udplite4_register() 140 pr_crit("%s: Cannot add UDP-Lite protocol\n", __func__); udplite4_register()
|
H A D | xfrm4_input.c | 65 * Returns >0 if skb should be passed to UDP. 123 * so we need to remove 'len' bytes from the packet (the UDP xfrm4_udp_encap_rcv() 140 * transport header to point to ESP. Keep UDP on the stack xfrm4_udp_encap_rcv()
|
H A D | datagram.c | 2 * common UDP/RAW code 98 /* Because UDP xmit path can manipulate sk_dst_cache without holding
|
H A D | udp.c | 6 * The User Datagram Protocol (UDP). 25 * Alan Cox : UDP can count its memory 40 * Matt Dillon : UDP length checks. 63 * Hirokazu Takahashi : HW checksumming for outgoing UDP 65 * Hirokazu Takahashi : sendfile() on UDP works now. 80 #define pr_fmt(fmt) "UDP: " fmt 201 * udp_lib_get_port - UDP/-Lite port lookup for IPv4 and IPv6 489 /* UDP is nearly always wildcards out the wazoo, it makes no sense to try 715 * @skb: sk_buff containing the filled-in UDP header 759 /* Function to set UDP checksum for an IPv4 UDP packet. This is intended 760 * for the simple case like when setting the checksum for a UDP tunnel. 808 * Create a UDP header udp_send_skb() 816 if (is_udplite) /* UDP-Lite */ udp_send_skb() 819 else if (sk->sk_no_check_tx) { /* UDP csum disabled */ udp_send_skb() 824 } else if (skb->ip_summed == CHECKSUM_PARTIAL) { /* UDP hardware csum */ udp_send_skb() 853 * Push out all pending data as one UDP datagram. Socket is locked. 1216 * IOCTL requests applicable to the UDP protocol 1288 * coverage checksum (UDP-Lite), do it before the copy. udp_recvmsg() 1513 * fall through and pass this up the UDP socket. udp_queue_rcv_skb() 1517 * >0 if skb should be passed on to UDP. udp_queue_rcv_skb() 1521 /* if we're overly short, let UDP handle it */ udp_queue_rcv_skb() 1539 /* FALLTHROUGH -- it's a UDP Packet */ udp_queue_rcv_skb() 1543 * UDP-Lite specific tests, ignored on UDP sockets udp_queue_rcv_skb() 1639 * For UDP, we use xchg() to guard against concurrent changes. 1717 /* Initialize UDP checksum. If exited with zero value (success), 1769 /* UDP validates ulen. */ __udp4_lib_rcv() 1831 * Hmm. We got an UDP packet to a port to which we __udp4_lib_rcv() 1838 net_dbg_ratelimited("UDP%s: short packet: From %pI4:%u %d/%d to %pI4:%u\n", __udp4_lib_rcv() 1850 net_dbg_ratelimited("UDP%s: bad checksum. From %pI4:%u to %pI4:%u ulen %d\n", __udp4_lib_rcv() 2035 * Socket option code for UDP 2092 * UDP-Lite's partial checksum coverage (RFC 3828). udp_lib_setsockopt() 2097 if (!is_udplite) /* Disable the option on UDP sockets */ udp_lib_setsockopt() 2111 if (!is_udplite) /* Disable the option on UDP sockets */ udp_lib_setsockopt() 2181 /* The following two cannot be changed on UDP sockets, the return is udp_lib_getsockopt() 2182 * always 0 (which corresponds to the full checksum coverage of UDP). */ udp_lib_getsockopt() 2221 * udp_poll - wait for a UDP event. 2251 .name = "UDP", 2555 udp_table_init(&udp_table, "UDP"); udp_init()
|
H A D | geneve.c | 104 * This function will add other UDP tunnel headers. 301 /* Let the UDP layer deal with the skb */ geneve_udp_encap_recv() 323 /* Open UDP socket */ geneve_create_sock()
|
H A D | proc.c | 16 * Alan Cox : UDP sockets show the rxqueue/txqueue 68 seq_printf(seq, "UDP: inuse %d mem %ld\n", sockstat_seq_show() 428 /* the UDP and UDP-Lite MIBs are the same */ snmp_seq_show()
|
H A D | udp_diag.c | 2 * udp_diag.c Module for monitoring UDP transport protocols sockets.
|
H A D | udp_offload.c | 220 /* Do software UFO. Complete and fill in the UDP checksum as udp4_ufo_fragment() 221 * HW cannot do checksum of UDP packets sent as multiple udp4_ufo_fragment()
|
H A D | esp4.c | 203 /* this is non-NULL only with UDP Encapsulation */ esp_output() 333 * 2) ignore UDP/TCP checksums in case esp_input_done2()
|
H A D | ip_input.c | 54 * UDP as there is a nasty checksum issue 107 * output should probably do its own fragmentation at the UDP/RAW layer. TCP shouldn't cause
|
H A D | af_inet.c | 801 POLLHUP, even on eg. unconnected UDP sockets -- RR */ inet_shutdown() 1660 pr_crit("%s: Cannot add UDP protocol offload\n", __func__); ipv4_offload_init() 1717 pr_crit("%s: Cannot add UDP protocol\n", __func__); inet_init() 1749 /* Setup UDP memory threshold */ inet_init() 1752 /* Add UDP-Lite (RFC 3828) */ inet_init()
|
H A D | ip_output.c | 40 * Hirokazu Takahashi: HW checksumming for outgoing UDP 42 * Hirokazu Takahashi: sendfile() on UDP works now. 796 /* There is support for UDP fragmentation offload by network ip_ufo_append_data() 812 /* create space for UDP/IP header */ ip_ufo_append_data() 1133 * Not only UDP, other transport protocols - e.g. raw sockets - can use
|
H A D | fou.c | 55 /* Remove 'len' bytes from the packet (UDP header and fou_recv_pull() 458 /* Open UDP socket */ fou_create()
|
H A D | ipconfig.c | 617 struct udphdr udph; /* UDP header */ 823 /* Construct UDP header */ ic_bootp_send_if() 827 /* UDP checksum not calculated -- explicitly allowed in BOOTP RFC */ ic_bootp_send_if()
|
/linux-4.1.27/include/net/ |
H A D | udplite.h | 2 * Definitions for the UDP-Lite (RFC 3828) code. 9 /* UDP-Lite socket options */ 26 /* Designate sk as UDP-Lite socket */ udplite_sk_init() 41 * checksum. UDP-Lite (like IPv6) mandates checksums, hence packets udplite_checksum_init() 79 * Sender has set `partial coverage' option on UDP-Lite socket. udplite_csum_outgoing()
|
H A D | udp.h | 6 * Definitions for the UDP module. 36 * struct udp_skb_cb - UDP(-Lite) private variables 39 * @cscov: checksum coverage length (UDP-Lite only) 55 * struct udp_hslot - UDP hash slot 68 * struct udp_table - UDP table 110 * Generic checksumming routines for UDP(-Lite) v4 and v6 128 * @skb: sk_buff containing the filled-in UDP header 179 /* hash routines shared between UDPv4/6 and UDP-Litev4/6 */ udp_lib_hash() 272 * SNMP statistics for UDP and UDP-Lite
|
H A D | udp_tunnel.h | 75 /* Setup the given (UDP) sock to receive UDP encapsulated packets */ 79 /* Transmit the skb using UDP encapsulation. */
|
H A D | vxlan.h | 87 #define VXLAN_RCO_UDP 0x80 /* Indicate UDP RCO (TCP when not set *) */ 106 /* per UDP socket information */ 182 /* IP header + UDP + VXLAN + Ethernet header */ 184 /* IPv6 header + UDP + VXLAN + Ethernet header */
|
H A D | flow_keys.h | 14 * @ip_proto: Transport header protocol (eg. TCP/UDP)
|
H A D | checksum.h | 6 * Checksumming functions for IP, TCP, UDP and so on
|
H A D | snmp.h | 101 /* UDP */
|
H A D | 6lowpan.h | 61 #define UIP_PROTO_UDP 17 /* ipv6 next header value for UDP */
|
H A D | ip_vs.h | 324 /* UDP State Values */ 529 __u16 protocol; /* Which protocol (TCP/UDP) */ 659 __u16 protocol; /* which protocol (TCP/UDP) */ 722 __u16 protocol; /* which protocol (TCP/UDP) */
|
/linux-4.1.27/net/ipv6/ |
H A D | ip6_checksum.c | 78 /* To support RFC 6936 (allow zero checksum in UDP/IPV6 for tunnels) udp6_csum_init() 80 * for the UDP packet we'll check if that socket allows zero checksum udp6_csum_init() 88 /* Function to set UDP checksum for an IPv6 UDP packet. This is intended 89 * for the simple case like when setting the checksum for a UDP tunnel.
|
H A D | udp_offload.c | 73 /* Do software UFO. Complete and fill in the UDP checksum as HW cannot udp6_ufo_fragment() 74 * do checksum of UDP packets sent as multiple IP fragments. udp6_ufo_fragment()
|
H A D | udplite.c | 2 * UDPLITEv6 An implementation of the UDP-Lite protocol over IPv6.
|
H A D | udp.c | 2 * UDP over IPv6 429 * coverage checksum (UDP-Lite), do it before the copy. udpv6_recvmsg() 637 * fall through and pass this up the UDP socket. udpv6_queue_rcv_skb() 641 * >0 if skb should be passed on to UDP. udpv6_queue_rcv_skb() 645 /* if we're overly short, let UDP handle it */ udpv6_queue_rcv_skb() 663 /* FALLTHROUGH -- it's a UDP Packet */ udpv6_queue_rcv_skb() 667 * UDP-Lite specific tests, ignored on UDP sockets (see net/ipv4/udp.c). udpv6_queue_rcv_skb() 865 /* UDP validates ulen. */ __udp6_lib_rcv() 943 net_dbg_ratelimited("UDP%sv6: short packet: From [%pI6c]:%u %d/%d to [%pI6c]:%u\n", __udp6_lib_rcv() 981 * @skb: sk_buff containing the filled-in UDP header 1035 * Create a UDP header udp_v6_send_skb() 1045 else if (udp_sk(sk)->no_check6_tx) { /* UDP csum disabled */ udp_v6_send_skb() 1048 } else if (skb->ip_summed == CHECKSUM_PARTIAL) { /* UDP hardware csum */ udp_v6_send_skb() 1418 * Socket option code for UDP
|
H A D | ip6_offload.c | 304 pr_crit("%s: Cannot add UDP protocol offload\n", __func__); ipv6_offload_init()
|
H A D | af_inet6.c | 884 * for TCP and UDP is to consider one TCP and UDP instance inet6_init()
|
/linux-4.1.27/drivers/net/ethernet/micrel/ |
H A D | ks8695net.h | 18 #define RDES_UDPE (1 << 26) /* UDP Checksum error */ 40 #define TDES_UDPCKG (1 << 26) /* UDP Checksum generate */ 72 #define DTXC_TUCG (1 << 18) /* Transmit UDP 91 #define DRXC_RUCC (1 << 18) /* Receive UDP Checksum check */
|
/linux-4.1.27/arch/unicore32/include/asm/ |
H A D | checksum.h | 18 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/microblaze/include/asm/ |
H A D | checksum.h | 14 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/include/linux/ |
H A D | udp.h | 6 * Definitions for the UDP protocol. 54 * Following member retains the information to create a UDP header 59 * Fields specific to UDP-Lite. 67 __u8 pcflag; /* marks socket as UDP-Lite if > 0 */
|
H A D | ptp_classify.h | 33 #define PTP_CLASS_IPV4 0x10 /* event in an IPV4 UDP packet */ 34 #define PTP_CLASS_IPV6 0x20 /* event in an IPV6 UDP packet */
|
H A D | netdev_features.h | 19 NETIF_F_IP_CSUM_BIT, /* Can checksum TCP/UDP over IPv4. */ 22 NETIF_F_IPV6_CSUM_BIT, /* Can checksum TCP/UDP over IPV6 */ 48 NETIF_F_GSO_UDP_TUNNEL_BIT, /* ... UDP TUNNEL with TSO */ 49 NETIF_F_GSO_UDP_TUNNEL_CSUM_BIT,/* ... UDP TUNNEL with TSO & CSUM */
|
H A D | inet_lro.h | 117 * (IPv4/IPv6/TCP/UDP)
|
H A D | socket.h | 298 #define SOL_UDPLITE 136 /* UDP-Lite (RFC 3828) */
|
H A D | skbuff.h | 59 * UDP: IPv4 and IPv6. A device may apply CHECKSUM_UNNECESSARY to a 60 * zero UDP checksum for either IPv4 or IPv6, the networking stack 67 * For instance if a device receives an IPv6->UDP->GRE->IPv4->TCP packet 68 * and a device is able to verify the checksums for UDP (possibly zero), 70 * two. If the device were only able to verify the UDP checksum and not 113 * NETIF_F_IP_CSUM - Device is dumb, it's able to checksum only TCP/UDP over 2946 * checksum of a pseudo header as used by TCP/UDP. It returns the 2949 * For protocols that contain complete checksums such as ICMP/TCP/UDP, 2989 * checksum after the last one validated. For UDP, a zero __skb_mark_checksum_bad() 3447 * individual segments, including Layer3 (IP, IPv6) and L4 headers (TCP/UDP).
|
/linux-4.1.27/arch/cris/include/arch-v10/arch/ |
H A D | checksum.h | 4 /* Checksum some values used in TCP/UDP headers.
|
/linux-4.1.27/samples/bpf/ |
H A D | sockex1_user.c | 43 printf("TCP %lld UDP %lld ICMP %lld bytes\n", main()
|
H A D | sock_example.c | 83 printf("TCP %lld UDP %lld ICMP %lld packets\n", test_sock()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_common.c | 254 I40E_PTT(24, IP, IPV4, NOF, NONE, NONE, NOF, UDP, PAY4), 263 I40E_PTT(31, IP, IPV4, NOF, IP_IP, IPV4, NOF, UDP, PAY4), 272 I40E_PTT(38, IP, IPV4, NOF, IP_IP, IPV6, NOF, UDP, PAY4), 284 I40E_PTT(46, IP, IPV4, NOF, IP_GRENAT, IPV4, NOF, UDP, PAY4), 293 I40E_PTT(53, IP, IPV4, NOF, IP_GRENAT, IPV6, NOF, UDP, PAY4), 305 I40E_PTT(61, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, NOF, UDP, PAY4), 314 I40E_PTT(68, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, NOF, UDP, PAY4), 326 I40E_PTT(76, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, UDP, PAY4), 335 I40E_PTT(83, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, UDP, PAY4), 344 I40E_PTT(90, IP, IPV6, NOF, NONE, NONE, NOF, UDP, PAY3), 353 I40E_PTT(97, IP, IPV6, NOF, IP_IP, IPV4, NOF, UDP, PAY4), 362 I40E_PTT(104, IP, IPV6, NOF, IP_IP, IPV6, NOF, UDP, PAY4), 374 I40E_PTT(112, IP, IPV6, NOF, IP_GRENAT, IPV4, NOF, UDP, PAY4), 383 I40E_PTT(119, IP, IPV6, NOF, IP_GRENAT, IPV6, NOF, UDP, PAY4), 395 I40E_PTT(127, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, NOF, UDP, PAY4), 404 I40E_PTT(134, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, NOF, UDP, PAY4), 416 I40E_PTT(142, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, UDP, PAY4), 425 I40E_PTT(149, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, UDP, PAY4),
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | filter.h | 22 * @EFX_FILTER_MATCH_REM_PORT: Match by remote TCP/UDP port 24 * @EFX_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port 34 * - Falcon supports RX filters matching by {TCP,UDP}/IPv4 4-tuple or 37 * - Siena supports RX and TX filters matching by {TCP,UDP}/IPv4 4-tuple 42 * using {TCP,UDP}/IPv{4,6} 4-tuple or local 2-tuple, local MAC or I/G bit, 119 * @loc_port: Local TCP/UDP port to match, if %EFX_FILTER_MATCH_LOC_PORT is set 120 * @rem_port: Remote TCP/UDP port to match, if %EFX_FILTER_MATCH_REM_PORT is set
|
/linux-4.1.27/include/linux/sunrpc/ |
H A D | xprtsock.h | 51 * UDP socket buffer size parameters
|
H A D | msg_prot.h | 173 * For TCP over IPv4 and for UDP over IPv4, the format of r_addr is the 190 * For TCP over IPv6 and for UDP over IPv6, the format of r_addr is the 196 * as with universal addresses for TCP and UDP over IPv4. The prefix,
|
H A D | svc.h | 129 * For UDP transports, a block plus NFS,RPC, and UDP headers 133 * Linux limit; someone who cares more about NFS/UDP performance 360 u32 prot; /* protocol (UDP or TCP) */
|
/linux-4.1.27/include/uapi/linux/netfilter/ |
H A D | xt_tcpudp.h | 23 /* UDP matching stuff */
|
/linux-4.1.27/net/rxrpc/ |
H A D | ar-error.c | 42 _leave("UDP socket errqueue empty"); rxrpc_UDP_error_report() 47 _leave("UDP empty message"); rxrpc_UDP_error_report() 57 _net("Rx UDP Error from %pI4:%hu", &addr, ntohs(port)); rxrpc_UDP_error_report() 123 * deal with UDP error messages
|
H A D | ar-proc.c | 73 "UDP %-22.22s %-22.22s %4x %08x %08x %s %3u" rxrpc_call_seq_show() 156 "UDP %-22.22s %-22.22s %4x %08x %08x %s %3u" rxrpc_connection_seq_show()
|
H A D | ar-peer.c | 225 _net("Rx UDP DGRAM from peer %d", peer->debug_id); rxrpc_find_peer() 232 _net("Rx UDP DGRAM from NEW peer"); rxrpc_find_peer()
|
H A D | ar-input.c | 670 _debug("UDP socket error %d", ret); rxrpc_data_ready() 689 /* the socket buffer we have is owned by UDP, with UDP's data all over rxrpc_data_ready() 695 _net("Rx UDP packet from %08x:%04hu", rxrpc_data_ready()
|
H A D | ar-local.c | 136 * create a new local endpoint using the specified UDP address
|
H A D | ar-output.c | 353 /* send the packet by UDP rxrpc_send_packet() 354 * - returns -EMSGSIZE if UDP would have to fragment the packet rxrpc_send_packet()
|
/linux-4.1.27/arch/cris/arch-v10/lib/ |
H A D | old_checksum.c | 6 * IP/TCP/UDP checksumming routines 44 * computes a partial checksum, e.g. for TCP/UDP fragments
|
/linux-4.1.27/arch/arm/mach-ks8695/include/mach/ |
H A D | regs-lan.h | 39 #define LMDTXC_LMTUCG (1 << 18) /* Transmit UDP Checksum Generate */ 50 #define LMDRXC_LMRUCC (1 << 18) /* Receive UDP Checksum check */
|
H A D | regs-wan.h | 39 #define WMDTXC_WMTUCG (1 << 18) /* Transmit UDP Checksum Generate */ 50 #define WMDRXC_WMRUCC (1 << 18) /* Receive UDP Checksum check */
|
/linux-4.1.27/net/netfilter/ |
H A D | xt_multiport.c | 1 /* Kernel module to match one of a list of TCP/UDP(-Lite)/SCTP/DCCP ports: 25 MODULE_DESCRIPTION("Xtables: multiple port matching for TCP, UDP, UDP-Lite, SCTP and DCCP");
|
H A D | xt_tcpudp.c | 14 MODULE_DESCRIPTION("Xtables: TCP, UDP and UDP-Lite match"); 145 pr_debug("Dropping evil UDP tinygram.\n"); udp_mt()
|
H A D | nf_log_common.c | 31 /* Max length: 10 "PROTO=UDP " */ nf_log_dump_udp_header() 32 nf_log_buf_add(m, "PROTO=UDP "); nf_log_dump_udp_header()
|
H A D | nf_nat_amanda.c | 43 * this one (ie. same IP: it will be TCP and master is UDP). */ help()
|
H A D | nf_nat_proto_udplite.c | 105 MODULE_DESCRIPTION("UDP-Lite NAT protocol helper");
|
H A D | xt_u32.c | 31 * (=IPv4 and (TCP or UDP)). Outer loop runs over the "&&" operands. u32_match_it()
|
H A D | nf_conntrack_proto_udp.c | 88 /* If we've seen traffic both ways, this is some kind of UDP udp_packet() 148 "nf_ct_udp: bad UDP checksum "); udp_error() 166 /* set default timeouts for UDP. */ udp_timeout_nlattr_to_obj()
|
H A D | xt_l2tp.c | 74 /* Parse L2TP header fields when UDP encapsulation is used. Handles 80 * RFC3931, Section 4.1.2.1, L2TPv3 Session Header over UDP 137 /* Parse L2TP header fields for IP encapsulation (no UDP header).
|
H A D | nf_nat_helper.c | 136 * NATed UDP connections (like the CONNECT DATA XXXXX MESG XXXXX INDEX XXXXX 173 /* update the length of the UDP packet */ nf_nat_mangle_udp_packet()
|
H A D | nf_conntrack_amanda.c | 104 /* increase the UDP timeout of the master connection as replies from amanda_help()
|
H A D | nf_conntrack_proto_udplite.c | 96 /* If we've seen traffic both ways, this is some kind of UDP udplite_packet()
|
H A D | xt_TPROXY.c | 318 /* UDP has no TCP_TIME_WAIT state, so we never enter here */ tproxy_tg4() 485 /* UDP has no TCP_TIME_WAIT state, so we never enter here */ tproxy_tg6_v1()
|
H A D | nf_conntrack_sip.c | 296 [SIP_HDR_VIA_UDP] = SIP_HDR("Via", "v", "UDP ", epaddr_len), 625 else if (!strncasecmp(dptr + matchoff, "UDP", strlen("UDP"))) ct_sip_parse_transport()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/ |
H A D | defines.h | 107 #define IXGBE_RXD_STAT_UDPCS 0x10 /* UDP xsum calculated */ 113 #define IXGBE_RXD_STAT_UDPV 0x400 /* Valid UDP checksum */ 124 #define IXGBE_RXD_ERR_TCPE 0x40 /* TCP/UDP Checksum Error */ 134 #define IXGBE_RXDADV_ERR_TCPE 0x40000000 /* TCP/UDP Checksum Error */ 179 #define IXGBE_TXD_POPTS_TXSM 0x02 /* Insert TCP/UDP checksum */ 255 #define IXGBE_ADVTXD_TUCMD_L4T_UDP 0x00000000 /* L4 Packet TYPE of UDP */
|
/linux-4.1.27/net/netfilter/ipvs/ |
H A D | ip_vs_proto_udp.c | 2 * ip_vs_proto_udp.c: UDP load balancing support for IPVS 168 * Adjust UDP checksums udp_snat_handler() 252 * Adjust UDP checksums udp_dnat_handler() 435 [IP_VS_UDP_S_NORMAL] = "UDP", 452 pr_err("UDP no ns data\n"); udp_state_transition() 478 .name = "UDP",
|
H A D | ip_vs_pe_sip.c | 75 /* Only useful with UDP */ ip_vs_sip_fill_param()
|
H A D | ip_vs_sync.c | 73 __u8 protocol; /* Which protocol (TCP/UDP) */ 133 __u8 protocol; /* Which protocol (TCP/UDP) */ 155 __u8 protocol; /* Which protocol (TCP/UDP) */ 485 /* UDP or another protocol with single state */ ip_vs_sync_conn_needed() 1446 * Set up sending multicast socket over UDP 1506 * Set up receiving multicast socket over UDP
|
H A D | ip_vs_core.c | 88 return "UDP"; ip_vs_proto_name() 232 * Protocols supported: TCP, UDP 395 * Protocols supported: TCP, UDP 609 * ICMP_PORT_UNREACH is sent here no matter it is TCP/UDP. --WZ ip_vs_leave() 729 /* the TCP/UDP/SCTP port */ ip_vs_nat_icmp() 780 /* the TCP/UDP/SCTP port */ ip_vs_nat_icmp_v6()
|
H A D | ip_vs_nfct.c | 113 * This will also take care of UDP and other protocols. ip_vs_update_conntrack()
|
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/ |
H A D | defines.h | 42 #define E1000_RXD_STAT_UDPCS 0x10 /* UDP xsum calculated */ 84 #define E1000_TXD_POPTS_TXSM 0x02 /* Insert TCP/UDP checksum */
|
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ptp.h | 59 /* Enable Processing of PTP Frames Sent over IPv6-UDP */ 61 /* Enable Processing of PTP Frames Sent over IPv4-UDP */
|
H A D | stmmac_main.c | 469 /* PTP v1, UDP, any kind of event packet */ stmmac_hwtstamp_ioctl() 479 /* PTP v1, UDP, Sync packet */ stmmac_hwtstamp_ioctl() 489 /* PTP v1, UDP, Delay_req packet */ stmmac_hwtstamp_ioctl() 500 /* PTP v2, UDP, any kind of event packet */ stmmac_hwtstamp_ioctl() 511 /* PTP v2, UDP, Sync packet */ stmmac_hwtstamp_ioctl() 522 /* PTP v2, UDP, Delay_req packet */ stmmac_hwtstamp_ioctl() 585 /* PTP v1, UDP, any kind of event packet */ stmmac_hwtstamp_ioctl()
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | checksum.h | 90 * computes the checksum of the TCP/UDP pseudo-header 116 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/parisc/lib/ |
H A D | checksum.c | 6 * MIPS specific IP/TCP/UDP checksumming routines 100 * computes a partial checksum, e.g. for TCP/UDP fragments
|
/linux-4.1.27/net/tipc/ |
H A D | udp_media.c | 53 /* IANA assigned UDP port */ 65 * struct udp_media_addr - IP/UDP addressing information 107 pr_err("Invalid UDP media address\n"); tipc_udp_media_addr_set() 121 pr_err("Invalid UDP media address\n"); tipc_udp_addr2str() 227 pr_err_ratelimited("Failed to get UDP bearer reference"); tipc_udp_recv() 272 * @ub: UDP bearer instance 294 pr_err("Invalid UDP bearer configuration"); parse_options() 427 pr_err("UDP bearer instance not found\n"); tipc_udp_disable()
|
/linux-4.1.27/arch/nios2/include/asm/ |
H A D | checksum.h | 43 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/hexagon/include/asm/ |
H A D | checksum.h | 37 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/m32r/lib/ |
H A D | csum_partial_copy.c | 6 * M32R specific IP/TCP/UDP checksumming routines
|
/linux-4.1.27/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.h | 232 #define DMA_CFG_DESC_TX_0_L4_TYPE_MSK 0xC0000000 /* L4 type: 0-UDP, 2-TCP */ 257 * bit 15 : ITC - Directs the HW to Insert TCP/UDP Checksum 263 * bit 22 : NC - No UDP Checksum 265 * bit 30..31 : L4T - Layer 4 Type: 00 - UDP , 10 - TCP , 10, 11 - Reserved 358 * 00 - UDP, 01 - TCP, 10, 11 - reserved 373 * bit 5 : L4:1 TCP/UDP checksum
|
H A D | txrx.c | 1085 /* L4 header len: UDP header length */ wil_tx_desc_offload_cksum_set() 1094 /* Enable TCP/UDP checksum */ wil_tx_desc_offload_cksum_set() 1155 /* Process TCP/UDP checksum offloading */ __wil_tx_vring()
|
/linux-4.1.27/arch/mips/include/asm/octeon/ |
H A D | cvmx-pip.h | 49 * 1 = TCP (UDP) packet not long enough to cover TCP (UDP) 53 /* 2 = TCP/UDP checksum failure */ 56 * 3 = TCP/UDP length check (TCP/UDP length does not match IP 60 /* 4 = illegal TCP/UDP port (either source or dest port is zero) */
|
H A D | cvmx-wqe.h | 79 /* the packet is either TCP or UDP */ 104 * - 3 = UDP Length Error: The UDP length field would 105 * make the UDP data longer than what remains in 109 * TCP/UDP port is 0.
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | checksum_64.h | 4 /* checksum.h: IP/UDP/TCP checksum routines on the V9. 115 * computes the checksum of the TCP/UDP pseudo-header
|
H A D | checksum_32.h | 4 /* checksum.h: IP/UDP/TCP checksum routines on the Sparc. 189 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | checksum.h | 8 * IP/TCP/UDP checksum routines 144 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_conntrack_l3proto.h | 46 * *dataoff: offset of protocol header (TCP, UDP,...) in skb
|
/linux-4.1.27/include/rdma/ |
H A D | rdma_cm_ib.h | 51 /* Global qkey for UDP QPs and multicast groups. */
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | checksum.h | 64 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/cris/include/asm/ |
H A D | checksum.h | 61 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | checksum.h | 16 * Computes the checksum of the TCP/UDP pseudo-header returns a 16-bit
|
/linux-4.1.27/arch/ia64/lib/ |
H A D | checksum.c | 33 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/metag/include/asm/ |
H A D | checksum.h | 58 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | checksum.h | 13 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/security/selinux/ss/ |
H A D | policydb.h | 169 * initial SIDs, unlabeled file systems, TCP and UDP port numbers, 181 } port; /* TCP or UDP port information */ 220 #define OCON_PORT 2 /* TCP and UDP port numbers */ 274 TCP or UDP port numbers, network interfaces and nodes */
|
/linux-4.1.27/include/asm-generic/ |
H A D | checksum.h | 64 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/drivers/net/ethernet/toshiba/ |
H A D | ps3_gelic_net.h | 81 GELIC_DESCR_RXTCPCHK = 0x10000000, /* TCP/UDP checksup performed */ 112 GELIC_DESCR_RXTCPCHKERR = 0x04000000, /* TCP/UDP checksum error */ 150 GELIC_DESCR_TX_DMA_UDP_CHKSUM = 0x00030000, /* UDP packet */
|
/linux-4.1.27/drivers/net/vmxnet3/ |
H A D | vmxnet3_defs.h | 262 u32 udp:1; /* UDP packet */ 263 u32 tuc:1; /* TCP/UDP Checksum Correct */ 267 u32 tuc:1; /* TCP/UDP Checksum Correct */ 268 u32 udp:1; /* UDP packet */ 288 /* csum OK for TCP/UDP pkts over IP */
|
H A D | vmxnet3_int.h | 88 VMNET_CAP_IP4_CSUM = 0x0002, /* Can checksum only TCP/UDP over
|
/linux-4.1.27/drivers/block/ |
H A D | floppy.c | 308 #define UDP (&drive_params[drive]) macro 680 delay = UDP->timeout; __reschedule_timeout() 683 if (UDP->flags & FD_DEBUG) __reschedule_timeout() 737 if (time_before(jiffies, UDRS->select_date + UDP->select_delay)) disk_change() 746 debug_dcl(UDP->flags, disk_change() 748 debug_dcl(UDP->flags, "jiffies=%lu\n", jiffies); disk_change() 749 debug_dcl(UDP->flags, "disk change line=%x\n", fd_inb(FD_DIR) & 0x80); disk_change() 750 debug_dcl(UDP->flags, "flags=%lx\n", UDRS->flags); disk_change() 752 if (UDP->flags & FD_BROKEN_DCL) disk_change() 754 if ((fd_inb(FD_DIR) ^ UDP->flags) & 0x80) { disk_change() 763 if ((UDP->flags & FTD_MSG) && disk_change() 805 debug_dcl(UDP->flags, set_dor() 921 if (UDP->rps) { floppy_off() 923 UDP->spindown_offset; floppy_off() 924 delta = ((delta * UDP->rps) % HZ) / UDP->rps; floppy_off() 926 jiffies + UDP->spindown - delta; floppy_off() 948 if (UDRS->fd_ref == 0 || UDP->select_delay != 0) scandrives() 3001 if (UDP->native_format) drive_name() 3002 floppy = floppy_type + UDP->native_format; drive_name() 3238 g->track <= 0 || g->track > UDP->tracks >> STRETCH(g) || set_geometry() 3464 UDP->flags |= FTD_MSG; fd_locked_ioctl() 3467 UDP->flags &= ~FTD_MSG; fd_locked_ioctl() 3491 UDP->max_errors.reporting = (unsigned short)(param & 0x0f); fd_locked_ioctl() 3494 outparam = &UDP->max_errors; fd_locked_ioctl() 3497 UDP->max_errors = inparam.max_errors; fd_locked_ioctl() 3504 *UDP = inparam.dp; fd_locked_ioctl() 3507 outparam = UDP; fd_locked_ioctl() 3576 if (!UDP->cmos) config_types() 3577 UDP->cmos = FLOPPY0_TYPE; config_types() 3579 if (!UDP->cmos && FLOPPY1_TYPE) config_types() 3580 UDP->cmos = FLOPPY1_TYPE; config_types() 3585 unsigned int type = UDP->cmos; config_types() 3614 *UDP = *params; config_types() 3656 if (!UDRS->fd_ref && (UDP->flags & FD_BROKEN_DCL)) { floppy_open() 3670 if ((UDP->cmos == 6) || (UDP->cmos == 5)) floppy_open() 3749 if (time_after(jiffies, UDRS->last_checked + UDP->checkfreq)) { floppy_check_events() 4110 return sprintf(buf, "%X\n", UDP->cmos); floppy_cmos_show()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_main.c | 65 /* Enable RSS UDP traffic */ 67 "Enable RSS for incoming UDP traffic or disabled (0)"); 140 mlx4_warn(mdev, "UDP RSS is not supported on this device\n"); mlx4_en_get_profile()
|
/linux-4.1.27/net/l2tp/ |
H A D | l2tp_ppp.c | 25 * attaches it to a bound UDP socket with local tunnel_id / session_id and 44 * sax.pppol2tp.fd = tunnel_fd; // bound UDP socket 109 /* Space for UDP, L2TP and PPP headers */ 127 struct sock *tunnel_sock; /* Pointer to the tunnel UDP 245 * of the UDP tunnel pppol2tp_recv() 379 * insertion of L2TP, UDP and IP headers so we need to allocate more 414 uhlen + /* UDP header (if L2TP_ENCAPTYPE_UDP) */ pppol2tp_xmit() 586 /* connect() handler. Attach a PPPoX socket to a tunnel UDP socket 711 /* Default MTU must allow space for UDP/L2TP/PPP pppol2tp_connect() 978 * The PPPoX socket is created for L2TP sessions: tunnels have their own UDP 1250 * The PPPoX socket is created for L2TP sessions: tunnels have their own UDP 1862 MODULE_DESCRIPTION("PPP over L2TP over UDP");
|
H A D | l2tp_debugfs.c | 143 tunnel->encap == L2TP_ENCAPTYPE_UDP ? "UDP" : l2tp_dfs_seq_tunnel_show() 227 seq_puts(m, " L2TPv2/L2TPv3, UDP/IP\n"); l2tp_dfs_seq_show()
|
H A D | l2tp_core.c | 837 /* Internal UDP receive frame. Do the real work of receiving an L2TP data frame 853 /* UDP has verifed checksum */ l2tp_udp_recv_core() 855 /* UDP always verifies the packet length. */ l2tp_udp_recv_core() 937 /* Put UDP header back */ l2tp_udp_recv_core() 943 /* UDP encapsulation receive handler. See net/ipv4/udp.c. 947 * >0: skb should be passed up to userspace as UDP. 1013 /* Setup L2TP header. The header differs slightly for UDP and l2tp_build_l2tpv3_header() 1014 * IP encapsulations. For UDP, there is 4 bytes of flags. l2tp_build_l2tpv3_header() 1116 * UDP and L2TP headers. If not enough, expand it to l2tp_xmit_skb() 1150 /* Setup UDP header */ l2tp_xmit_skb() 1159 /* Calculate UDP checksum if configured to do so */ l2tp_xmit_skb() 1291 /* Tunnel socket destroy hook for UDP encapsulation */ l2tp_udp_encap_destroy()
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | checksum.h | 131 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | checksum.h | 97 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | checksum.h | 120 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
H A D | pm.c | 207 /* Set UDP filter */ cw1200_wow_suspend() 351 /* Remove UDP port filter */ cw1200_wow_resume()
|
/linux-4.1.27/arch/x86/um/ |
H A D | checksum_32.S | 6 * IP/TCP/UDP checksumming routines 32 * computes a partial checksum, e.g. for TCP/UDP fragments
|
/linux-4.1.27/arch/m68k/lib/ |
H A D | checksum.c | 6 * IP/TCP/UDP checksumming routines 39 * computes a partial checksum, e.g. for TCP/UDP fragments
|
/linux-4.1.27/net/ipv4/netfilter/ |
H A D | nf_log_ipv4.c | 263 /* UDP: 10+max(25,20) = 35 */ dump_ipv4_packet() 271 /* maxlen = IP + ICMP + IP + max(TCP,UDP,ICMP,unknown) */ dump_ipv4_packet()
|
H A D | nf_nat_snmp_basic.c | 867 * Fast checksum update for possibly oddly-aligned UDP byte, from the 910 /* Update UDP checksum if being used */ mangle_address() 1240 * enough room for a UDP header. Just verify the UDP length field so we help()
|
/linux-4.1.27/net/openvswitch/ |
H A D | flow.h | 151 __be16 src; /* TCP/UDP/SCTP source port. */ 152 __be16 dst; /* TCP/UDP/SCTP destination port. */
|
H A D | vport-geneve.c | 33 * struct geneve_port - Keeps track of open UDP ports
|
H A D | vport-vxlan.c | 46 * struct vxlan_port - Keeps track of open UDP ports
|
/linux-4.1.27/include/linux/mlx4/ |
H A D | cmd.h | 223 * Receive checksum value is reported in CQE also for non TCP/UDP packets. 230 * IP_OK CQE's field is supported also for non TCP/UDP IP packets.
|
H A D | qp.h | 293 * [5] TCP/UDP checksum
|
/linux-4.1.27/net/sctp/ |
H A D | socket.c | 192 /* Look up the association by its id. If this is not a UDP-style 199 /* If this is not a UDP-style socket, assoc id should be ignored. */ sctp_id2assoc() 200 if (!sctp_style(sk, UDP)) { sctp_id2assoc() 215 /* Otherwise this is a UDP-style socket. */ sctp_id2assoc() 258 /* API 3.1.2 bind() - UDP Style Syntax 1065 * state - UDP-style peeled off socket or a TCP-style socket that __sctp_connect() 1423 /* API 3.1.4 close() - UDP Style Syntax 1426 * by a UDP-style socket. 1435 * UDP-style socket, an application should use the sendmsg() call, 1560 /* API 3.1.3 sendmsg() - UDP Style Syntax 1795 * API 3.1.2 bind() - UDP Style Syntax sctp_sendmsg() 1923 * when SCTP_ADDR_OVER flag is set in the UDP model. sctp_sendmsg() 2049 /* API 3.1.3 recvmsg() - UDP Style Syntax 2237 * This socket option is applicable to the UDP-style socket only. When 2252 /* Applicable to UDP-style socket only */ sctp_setsockopt_autoclose() 2550 if (!asoc && params.spp_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_peer_addr_params() 2667 if (!asoc && params.sack_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_delayed_ack() 2734 * socket (for UDP-style sockets only future associations are effected 2772 * to this call if the caller is using the UDP model. 2792 if (!asoc && info.sinfo_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_default_send_param() 2832 if (!asoc && info.snd_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_default_sndinfo() 2926 if (!asoc && rtoinfo.srto_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_rtoinfo() 2988 if (!asoc && assocparams.sasoc_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_associnfo() 3113 if (!asoc && params.assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_maxseg() 3486 if (!asoc && authkey->sca_assoc_id && sctp_style(sk, UDP)) { sctp_setsockopt_auth_key() 3520 if (!asoc && val.scact_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_active_key() 3548 if (!asoc && val.scact_assoc_id && sctp_style(sk, UDP)) sctp_setsockopt_del_key() 3850 /* API 3.1.6 connect() - UDP Style Syntax 3852 * An application may use the connect() call in the UDP model to initiate an 4094 * for UDP-style sockets only. sctp_init_sock() 4400 * This socket option is applicable to the UDP-style socket only. When 4411 /* Applicable to UDP-style socket only */ sctp_getsockopt_autoclose() 4438 if (!sctp_style(sk, UDP)) sctp_do_peeloff() 4639 if (!asoc && params.spp_assoc_id && sctp_style(sk, UDP)) { sctp_getsockopt_peer_addr_params() 4746 if (!asoc && params.sack_assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_delayed_ack() 4787 * socket (for UDP-style sockets only future associations are effected 4824 /* For UDP-style sockets, id specifies the association to query. */ sctp_getsockopt_peer_addrs() 4925 * For UDP-style sockets, id specifies the association to query. sctp_getsockopt_local_addrs() 5082 * to this call if the caller is using the UDP model. 5103 if (!asoc && info.sinfo_assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_default_send_param() 5147 if (!asoc && info.snd_assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_default_sndinfo() 5224 if (!asoc && rtoinfo.srto_assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_rtoinfo() 5281 if (!asoc && assocparams.sasoc_assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_associnfo() 5434 if (!asoc && params.assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_maxseg() 5601 if (!asoc && val.scact_assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_active_key() 5685 if (!asoc && val.gauth_assoc_id && sctp_style(sk, UDP)) sctp_getsockopt_local_auth_chunks() 6369 * By default, new associations are not accepted for UDP style sockets. 6436 * here, again, by modeling the current TCP/UDP code. We don't have 6470 if (!sctp_style(sk, UDP) && sctp_sstate(sk, CLOSED)) sctp_poll() 6835 * here by modeling from the current TCP/UDP code. __sctp_write_space() 7020 * associations on the same socket. For a UDP-style socket with 7025 * UDP-style sockets or TCP-style sockets, this code should work. 7339 * original UDP-style socket or created with the accept() call on a sctp_sock_migrate()
|
H A D | sm_sideeffect.c | 842 * a TCP-style or UDP-style peeled-off socket in sctp_cmd_new_state() 844 * For a UDP-style socket, the waiters are woken up by the sctp_cmd_new_state() 847 if (!sctp_style(sk, UDP)) sctp_cmd_new_state() 971 if (!sctp_style(sk, UDP)) sctp_cmd_set_sk_err()
|
/linux-4.1.27/drivers/net/phy/ |
H A D | dp83640_reg.h | 160 #define CHK_1STEP (1<<9) /* Enable UDP Checksum correction for One-Step Operation */ 213 #define ACC_UDP (1<<11) /* Record Timestamp if UDP Checksum Error */ 221 #define IPV4_UDP_MOD (1<<15) /* Enable IPV4 UDP Modification */
|
/linux-4.1.27/drivers/staging/octeon/ |
H A D | ethernet-defines.h | 41 * Controls if the Octeon TCP/UDP checksum engine is used for packet
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
H A D | usnic_transport.c | 41 return "IPv4 UDP"; usnic_transport_to_str()
|
H A D | usnic_ib_qp_grp.c | 278 usnic_err("Protocol for fd %d is not UDP", sock_fd); create_udp_flow()
|
/linux-4.1.27/arch/x86/um/asm/ |
H A D | checksum.h | 102 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | checksum.h | 156 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | checksum_32.h | 130 * computes the checksum of the TCP/UDP pseudo-header
|
H A D | checksum_64.h | 171 * into UDP/TCP packets and contains some link layer information.
|
/linux-4.1.27/arch/metag/lib/ |
H A D | checksum.c | 7 * IP/TCP/UDP checksumming routines
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | at91_udc.h | 16 * USB Device Port (UDP) registers.
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
H A D | gelic_udbg.c | 2 * udbg debug output routine via GELIC UDP broadcasts
|
/linux-4.1.27/arch/score/include/asm/ |
H A D | checksum.h | 160 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | checksum_32.h | 141 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | checksum.h | 23 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/frv/include/asm/ |
H A D | checksum.h | 104 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/frv/lib/ |
H A D | checksum.c | 6 * IP/TCP/UDP checksumming routines
|
/linux-4.1.27/arch/hexagon/lib/ |
H A D | checksum.c | 60 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/alpha/lib/ |
H A D | checksum.c | 41 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/lib/ |
H A D | checksum.c | 7 * IP/TCP/UDP checksumming routines
|
/linux-4.1.27/net/sunrpc/ |
H A D | socklib.c | 150 * We have set things up such that we perform the checksum of the UDP
|
H A D | xprtsock.c | 89 * FIXME: changing the UDP slot table size should also resize the UDP 90 * socket buffers for existing UDP transports 165 * Delay if a UDP socket connect error occurs. This is most likely some 184 * for this long. Note that we also timeout UDP sockets to prevent 382 * @addr: UDP only -- address of destination 383 * @addrlen: UDP only -- length of destination address 557 * xs_udp_send_request - write an RPC request to a UDP socket 967 * xs_udp_data_ready - "data ready" callback for UDP sockets 1607 * xs_udp_timer - called when a retransmit timeout occurs on a UDP transport 1713 * for UDP sockets, but also doens't harm them. xs_bind() 2212 * UDP socket connects are synchronous, but we use a work queue anyway 2216 * If a UDP socket connect fails, the delay behavior here prevents 2278 * xs_udp_print_stats - display UDP socket-specifc stats 2669 * xs_setup_udp - Set up transport to use a UDP socket
|
H A D | svcsock.c | 515 * Copy the UDP datagram's destination address to the rqstp structure. 535 * Receive a datagram from a UDP socket. 1517 printk(KERN_WARNING "svc: only UDP and TCP " svc_create_socket()
|
/linux-4.1.27/arch/xtensa/lib/ |
H A D | checksum.S | 6 * IP/TCP/UDP checksumming routines 22 * computes a partial checksum, e.g. for TCP/UDP fragments
|
/linux-4.1.27/arch/sh/lib/ |
H A D | checksum.S | 7 * IP/TCP/UDP checksumming routines 35 * computes a partial checksum, e.g. for TCP/UDP fragments
|
/linux-4.1.27/include/xen/interface/io/ |
H A D | netif.h | 107 * "feature-no-csum-offload" should be used to turn IPv4 TCP/UDP checksum 109 * "feature-ipv6-csum-offload" should be used to turn IPv6 TCP/UDP checksum
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | rx_desc.h | 148 * not match the checksum in the TCP/UDP header. 473 * Indicates the offset in bytes to the start of TCP or UDP 487 * UDP case: sort_port[15:0], dest_port[15:0] 517 * protocol indicates UDP. 555 * checksum used by TCP/UDP checksum. 558 * The value of the computed TCP/UDP checksum. A mode bit
|
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/ |
H A D | vxge-config.h | 1187 * Set to 1 to perform segmentation offload for TCP/UDP. 1190 * Bits 34 to 47 - LSO_MSS. TCP/UDP LSO Maximum Segment Size 1197 * UDP datagram described by this TxDL will be sent as a series of 1198 * UDP datagrams each of which contains no more than LSO_MSS 1200 * All outgoing frames from this TxDL will have LSO_MSS bytes of UDP 1207 * completion of a UDP or TCP LSO operation and indicates the number 1208 * of UDP or TCP payload bytes that were transmitted. 0x0000 will be 1217 * Bit 7 - Tx_CKO_UDP Set to a '1' to enable UDP checksum offload. 1220 * bit if it can guarantee that UDP is present. 1331 * 0xA - TCP/UDP Checksum error 1360 * Bit 31 - IS_UDP Set to '1' if the frame contains a UDP message. 1365 * Bit 48 to 63 - L4_Checksum[0:15] The TCP/UDP checksum value that 1366 * arrived with the frame. If the resulting computed TCP/UDP checksum 1622 * and/or TCP and/or UDP.
|
H A D | vxge-traffic.h | 429 * @tx_udp: Count of transmitted UDP datagrams. 596 * @rx_udp: Count of received UDP datagrams. 633 * @rx_drop_udp: Count of received UDP datagrams that are not delivered to the 864 * @tx_udp: Count of transmitted UDP datagrams. 1016 * @rx_udp: Count of received UDP datagrams. 1823 * @l4_cksum: Result of TCP/UDP checksum check (by Titan hardware). 1831 * TCP and UDP. See enum vxge_hw_frame_proto{}. 1951 * @VXGE_HW_FRAME_PROTO_UDP: UDP. 1952 * @VXGE_HW_FRAME_PROTO_TCP_OR_UDP: TCP or UDP. 1992 * @VXGE_HW_FIFO_T_CODE_LSO_ERROR: Error detected during TCP/UDP Large Send
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_common.c | 253 I40E_PTT(24, IP, IPV4, NOF, NONE, NONE, NOF, UDP, PAY4), 262 I40E_PTT(31, IP, IPV4, NOF, IP_IP, IPV4, NOF, UDP, PAY4), 271 I40E_PTT(38, IP, IPV4, NOF, IP_IP, IPV6, NOF, UDP, PAY4), 283 I40E_PTT(46, IP, IPV4, NOF, IP_GRENAT, IPV4, NOF, UDP, PAY4), 292 I40E_PTT(53, IP, IPV4, NOF, IP_GRENAT, IPV6, NOF, UDP, PAY4), 304 I40E_PTT(61, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, NOF, UDP, PAY4), 313 I40E_PTT(68, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, NOF, UDP, PAY4), 325 I40E_PTT(76, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, UDP, PAY4), 334 I40E_PTT(83, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, UDP, PAY4), 343 I40E_PTT(90, IP, IPV6, NOF, NONE, NONE, NOF, UDP, PAY3), 352 I40E_PTT(97, IP, IPV6, NOF, IP_IP, IPV4, NOF, UDP, PAY4), 361 I40E_PTT(104, IP, IPV6, NOF, IP_IP, IPV6, NOF, UDP, PAY4), 373 I40E_PTT(112, IP, IPV6, NOF, IP_GRENAT, IPV4, NOF, UDP, PAY4), 382 I40E_PTT(119, IP, IPV6, NOF, IP_GRENAT, IPV6, NOF, UDP, PAY4), 394 I40E_PTT(127, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, NOF, UDP, PAY4), 403 I40E_PTT(134, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, NOF, UDP, PAY4), 415 I40E_PTT(142, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, UDP, PAY4), 424 I40E_PTT(149, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, UDP, PAY4), 2853 * @udp_port: the UDP port to add
|
H A D | i40e_ptp.c | 482 /* We set the type to V1, but do not enable UDP packet i40e_ptp_set_timestamp_mode() 485 * are always UDP, since L2 packets are a V2 feature. i40e_ptp_set_timestamp_mode() 542 * timestamps by setting to V1 only mode and clear the UDP i40e_ptp_set_timestamp_mode() 544 * packets are always over UDP. Note that software is configured to i40e_ptp_set_timestamp_mode()
|
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_param.c | 116 * - 1: enables receive IP/TCP/UDP checksum offload 129 * - 1: enables transmit IP/TCP/UDP checksum offload
|
/linux-4.1.27/drivers/net/ethernet/atheros/alx/ |
H A D | hw.h | 78 * 11 General UDP checksum 11 General UDP checksum
|
/linux-4.1.27/arch/x86/lib/ |
H A D | checksum_32.S | 6 * IP/TCP/UDP checksumming routines 34 * computes a partial checksum, e.g. for TCP/UDP fragments
|
/linux-4.1.27/fs/lockd/ |
H A D | svc.c | 206 * Ensure there are active UDP and TCP listeners for lockd. 209 * local services (such as rpc.statd) still require UDP, and
|
/linux-4.1.27/Documentation/networking/timestamping/ |
H A D | txtimestamp.c | 8 * - RAW, UDP and TCP 528 const char *sock_names[] = { NULL, "TCP", "UDP", "RAW" };
|
/linux-4.1.27/net/sched/ |
H A D | act_csum.c | 224 * Support both UDP and UDPLITE checksum algorithms, Don't use tcf_csum_ipv4_udp() 277 * Support both UDP and UDPLITE checksum algorithms, Don't use tcf_csum_ipv6_udp()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_reg.h | 2094 /* [RW 16] destination UDP address 1 The LLH will look for this address in 2202 * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP 2203 * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC 2210 * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . 2211 * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP 2212 * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; 2213 * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC 2371 * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP 2372 * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC 2379 * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . 2380 * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP 2381 * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; 2382 * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC 2483 * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP 2484 * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC 2491 * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . 2492 * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP 2493 * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; 2494 * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC 2519 * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP 2520 * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC 2527 * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . 2528 * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP 2529 * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; 2530 * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC
|
H A D | bnx2x_stats.h | 12 * UDP CSUM errata workaround by Arik Gendelman
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/ |
H A D | defines.h | 74 #define E1000_RXD_STAT_UDPCS 0x10 /* UDP xsum calculated */ 80 #define E1000_RXD_ERR_TCPE 0x20 /* TCP/UDP Checksum Error */ 283 #define E1000_TXD_POPTS_TXSM 0x02 /* Insert TCP/UDP checksum */ 315 #define E1000_RXCSUM_TUOFL 0x00000200 /* TCP / UDP checksum offload */
|
H A D | regs.h | 248 #define E1000_RXUDP 0x0B638 /* Time Sync Rx UDP Port - RW */
|
/linux-4.1.27/include/rxrpc/ |
H A D | packet.h | 180 #define RX_ADDRINUSE -7 /* UDP port in use */
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | checksum.h | 103 * computes the checksum of the TCP/UDP pseudo-header
|
/linux-4.1.27/arch/powerpc/lib/ |
H A D | checksum_32.S | 44 * Compute checksum of TCP or UDP pseudo-header:
|
/linux-4.1.27/net/bridge/netfilter/ |
H A D | ebt_log.c | 67 printk(" INCOMPLETE TCP/UDP header"); print_ports()
|
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-drv.c | 1123 /* PTP v2, UDP, any kind of event packet */ xgbe_set_hwtstamp_settings() 1126 /* PTP v1, UDP, any kind of event packet */ xgbe_set_hwtstamp_settings() 1134 /* PTP v2, UDP, Sync packet */ xgbe_set_hwtstamp_settings() 1137 /* PTP v1, UDP, Sync packet */ xgbe_set_hwtstamp_settings() 1145 /* PTP v2, UDP, Delay_req packet */ xgbe_set_hwtstamp_settings() 1148 /* PTP v1, UDP, Delay_req packet */ xgbe_set_hwtstamp_settings()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_nl.c | 491 * @idtype : identifies the id as ether type or TCP/UDP port number 492 * @id: id is either ether type or TCP/UDP port number
|
/linux-4.1.27/drivers/net/hyperv/ |
H A D | netvsc_drv.c | 517 /* UDP checksum offload is not supported on ws2008r2. netvsc_start_xmit() 674 * failed? How do we deal with other checksums - TCP/UDP? netvsc_recv_callback()
|
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/ |
H A D | atl1.h | 473 * 7 Generate UDP checksum 7 Generate UDP checksum
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_common.h | 189 int udpen; /* hash 4-tuple UDP ingress packets */
|
/linux-4.1.27/fs/nfs/ |
H A D | mount_clnt.c | 233 * use UDP.
|
/linux-4.1.27/include/net/sctp/ |
H A D | constants.h | 197 * For a UDP-style SCTP socket, the states are defined as follows
|
/linux-4.1.27/net/irda/irlan/ |
H A D | irlan_eth.c | 261 * more for UDP socket).
|
/linux-4.1.27/drivers/net/ethernet/intel/igb/ |
H A D | e1000_defines.h | 88 #define E1000_RXD_STAT_UDPCS 0x10 /* UDP xsum calculated */ 293 #define E1000_TXD_POPTS_TXSM 0x02 /* Insert TCP/UDP checksum */ 342 #define E1000_RXCSUM_TUOFL 0x00000200 /* TCP / UDP checksum offload */
|
/linux-4.1.27/drivers/net/ethernet/via/ |
H A D | via-velocity.h | 101 #define CSM_TUPOK 0x20 //TCP/UDP Checksum validation ok 105 #define CSM_UDPKT 0x01 //Received a UDP packet 134 #define TCR0_UDPCK 0x08 // request UDP checksum calculation.
|
/linux-4.1.27/drivers/net/ethernet/xilinx/ |
H A D | ll_temac_main.c | 1021 ndev->features |= NETIF_F_IP_CSUM; /* Can checksum TCP/UDP over IPv4. */ temac_of_probe() 1023 ndev->features |= NETIF_F_IPV6_CSUM; /* Can checksum IPV6 TCP/UDP */ temac_of_probe() 1055 /* Can checksum TCP/UDP over IPv4. */ temac_of_probe()
|
/linux-4.1.27/drivers/net/ethernet/cadence/ |
H A D | macb.h | 130 #define GEM_RXUDPCCNT 0x01b0 /* UDP Checksum Error Counter */ 240 #define GEM_TXCOEN_OFFSET 11 /* TX IP/TCP/UDP checksum gen offload */ 552 /* limit RX checksum offload to TCP and UDP packets */
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/ |
H A D | qlge_main.c | 541 case RT_IDX_ERR: /* Pass up MAC,IP,TCP/UDP error frames. */ ql_set_routing_reg() 556 case RT_IDX_TU_CSUM_ERR: /* Pass up TCP/UDP CSUM error frames. */ ql_set_routing_reg() 1605 /* Unfragmented ipv4 UDP frame. */ ql_process_mac_rx_page() 1613 "UDP checksum done!\n"); ql_process_mac_rx_page() 1709 /* Unfragmented ipv4 UDP frame. */ ql_process_mac_rx_skb() 1716 "UDP checksum done!\n"); ql_process_mac_rx_skb() 1859 * jumbo mtu on a non-TCP/UDP frame. ql_build_rx_skb() 1910 * This is an non TCP/UDP IP frame, so ql_build_rx_skb() 2023 /* Unfragmented ipv4 UDP frame. */ ql_process_mac_split_rx_intr() 2086 /* Non-TCP/UDP large frames that span multiple buffers ql_process_mac_rx_intr() 3694 "for TCP/UDP CSUM error packets.\n"); ql_route_initialize()
|
/linux-4.1.27/drivers/net/ |
H A D | vxlan.c | 64 /* UDP port for VXLAN traffic. 70 MODULE_PARM_DESC(udp_port, "Destination UDP port"); 260 /* Find VXLAN socket based on network namespace, address family and UDP port 655 /* Notify netdevs that UDP port started listening */ vxlan_notify_add_rx_port() 680 /* Notify netdevs that UDP port is no more listening */ vxlan_notify_del_rx_port() 2045 * Outer UDP destination is the VXLAN assigned port. 2491 /* Open UDP socket */ vxlan_create_sock()
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.h | 1132 * RSS_ENABLE_UDP_IPV4 SRC IPv4, DST IPv4, UDP SRC PORT, UDP DST PORT 1133 * RSS_ENABLE_UDP_IPV6 SRC IPv6, DST IPv6, UDP SRC PORT, UDP DST PORT
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/ |
H A D | ixgb_param.c | 91 * - 1 - enables receive IP/TCP/UDP checksum offload
|