Searched refs:UDP (Results 1 - 200 of 330) sorted by relevance

12

/linux-4.1.27/net/6lowpan/
H A Dnhc_udp.c2 * 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 Dudp.h6 * Definitions for the UDP protocol.
29 /* UDP socket options */
35 /* UDP encapsulation types */
H A Dif_pppol2tp.h21 /* 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 Dnet_tstamp.h91 /* 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 Dsnmp.h146 * RFC 1213: MIB-II UDP group
147 * RFC 2013 (updates 1213): SNMPv2-MIB-UDP
H A Dbpf.h202 * 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 Dif_bonding.h92 #define BOND_XMIT_POLICY_LAYER34 1 /* layer 3+4 (IP ^ (TCP || UDP)) */
H A Din.h70 IPPROTO_UDPLITE = 136, /* UDP-Lite (RFC 3828) */
H A Ddcbnl.h223 * 3 Well known port number over UDP or DCCP
224 * 4 Well known port number over TCP, SCTP, UDP, or DCCP
H A Dcapability.h165 /* Allows binding to TCP/UDP sockets below 1024 */
H A Dip_vs.h333 IPVS_CMD_ATTR_TIMEOUT_UDP, /* UDP timeout */
H A Dvirtio_net.h90 #define VIRTIO_NET_HDR_GSO_UDP 3 /* GSO frame, IPv4 UDP (UFO) */
/linux-4.1.27/net/core/
H A Dptp_classifier.c22 * ; 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 Dpktgen.c37 * 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 Dchecksum.h12 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/cris/include/arch-v32/arch/
H A Dchecksum.h5 * Check values used in TCP/UDP headers.
/linux-4.1.27/net/ipv4/
H A Dudplite.c2 * 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 Dxfrm4_input.c65 * 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 Ddatagram.c2 * common UDP/RAW code
98 /* Because UDP xmit path can manipulate sk_dst_cache without holding
H A Dudp.c6 * 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 Dgeneve.c104 * 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 Dproc.c16 * 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 Dudp_diag.c2 * udp_diag.c Module for monitoring UDP transport protocols sockets.
H A Dudp_offload.c220 /* 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 Desp4.c203 /* this is non-NULL only with UDP Encapsulation */ esp_output()
333 * 2) ignore UDP/TCP checksums in case esp_input_done2()
H A Dip_input.c54 * 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 Daf_inet.c801 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 Dip_output.c40 * 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 Dfou.c55 /* Remove 'len' bytes from the packet (UDP header and fou_recv_pull()
458 /* Open UDP socket */ fou_create()
H A Dipconfig.c617 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 Dudplite.h2 * 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 Dudp.h6 * 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 Dudp_tunnel.h75 /* Setup the given (UDP) sock to receive UDP encapsulated packets */
79 /* Transmit the skb using UDP encapsulation. */
H A Dvxlan.h87 #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 Dflow_keys.h14 * @ip_proto: Transport header protocol (eg. TCP/UDP)
H A Dchecksum.h6 * Checksumming functions for IP, TCP, UDP and so on
H A Dsnmp.h101 /* UDP */
H A D6lowpan.h61 #define UIP_PROTO_UDP 17 /* ipv6 next header value for UDP */
H A Dip_vs.h324 /* 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 Dip6_checksum.c78 /* 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 Dudp_offload.c73 /* 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 Dudplite.c2 * UDPLITEv6 An implementation of the UDP-Lite protocol over IPv6.
H A Dudp.c2 * 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 Dip6_offload.c304 pr_crit("%s: Cannot add UDP protocol offload\n", __func__); ipv6_offload_init()
H A Daf_inet6.c884 * for TCP and UDP is to consider one TCP and UDP instance inet6_init()
/linux-4.1.27/drivers/net/ethernet/micrel/
H A Dks8695net.h18 #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 Dchecksum.h18 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/microblaze/include/asm/
H A Dchecksum.h14 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/include/linux/
H A Dudp.h6 * 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 Dptp_classify.h33 #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 Dnetdev_features.h19 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 Dinet_lro.h117 * (IPv4/IPv6/TCP/UDP)
H A Dsocket.h298 #define SOL_UDPLITE 136 /* UDP-Lite (RFC 3828) */
H A Dskbuff.h59 * 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 Dchecksum.h4 /* Checksum some values used in TCP/UDP headers.
/linux-4.1.27/samples/bpf/
H A Dsockex1_user.c43 printf("TCP %lld UDP %lld ICMP %lld bytes\n", main()
H A Dsock_example.c83 printf("TCP %lld UDP %lld ICMP %lld packets\n", test_sock()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40e_common.c254 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 Dfilter.h22 * @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 Dxprtsock.h51 * UDP socket buffer size parameters
H A Dmsg_prot.h173 * 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 Dsvc.h129 * 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 Dxt_tcpudp.h23 /* UDP matching stuff */
/linux-4.1.27/net/rxrpc/
H A Dar-error.c42 _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 Dar-proc.c73 "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 Dar-peer.c225 _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 Dar-input.c670 _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 Dar-local.c136 * create a new local endpoint using the specified UDP address
H A Dar-output.c353 /* 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 Dold_checksum.c6 * 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 Dregs-lan.h39 #define LMDTXC_LMTUCG (1 << 18) /* Transmit UDP Checksum Generate */
50 #define LMDRXC_LMRUCC (1 << 18) /* Receive UDP Checksum check */
H A Dregs-wan.h39 #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 Dxt_multiport.c1 /* 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 Dxt_tcpudp.c14 MODULE_DESCRIPTION("Xtables: TCP, UDP and UDP-Lite match");
145 pr_debug("Dropping evil UDP tinygram.\n"); udp_mt()
H A Dnf_log_common.c31 /* 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 Dnf_nat_amanda.c43 * this one (ie. same IP: it will be TCP and master is UDP). */ help()
H A Dnf_nat_proto_udplite.c105 MODULE_DESCRIPTION("UDP-Lite NAT protocol helper");
H A Dxt_u32.c31 * (=IPv4 and (TCP or UDP)). Outer loop runs over the "&&" operands. u32_match_it()
H A Dnf_conntrack_proto_udp.c88 /* 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 Dxt_l2tp.c74 /* 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 Dnf_nat_helper.c136 * 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 Dnf_conntrack_amanda.c104 /* increase the UDP timeout of the master connection as replies from amanda_help()
H A Dnf_conntrack_proto_udplite.c96 /* If we've seen traffic both ways, this is some kind of UDP udplite_packet()
H A Dxt_TPROXY.c318 /* 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 Dnf_conntrack_sip.c296 [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 Ddefines.h107 #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 Dip_vs_proto_udp.c2 * 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 Dip_vs_pe_sip.c75 /* Only useful with UDP */ ip_vs_sip_fill_param()
H A Dip_vs_sync.c73 __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 Dip_vs_core.c88 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 Dip_vs_nfct.c113 * 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 Ddefines.h42 #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 Dstmmac_ptp.h59 /* Enable Processing of PTP Frames Sent over IPv6-UDP */
61 /* Enable Processing of PTP Frames Sent over IPv4-UDP */
H A Dstmmac_main.c469 /* 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 Dchecksum.h90 * 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 Dchecksum.c6 * 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 Dudp_media.c53 /* 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 Dchecksum.h43 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/hexagon/include/asm/
H A Dchecksum.h37 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/m32r/lib/
H A Dcsum_partial_copy.c6 * M32R specific IP/TCP/UDP checksumming routines
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
H A Dtxrx.h232 #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 Dtxrx.c1085 /* 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 Dcvmx-pip.h49 * 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 Dcvmx-wqe.h79 /* 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 Dchecksum_64.h4 /* checksum.h: IP/UDP/TCP checksum routines on the V9.
115 * computes the checksum of the TCP/UDP pseudo-header
H A Dchecksum_32.h4 /* 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 Dchecksum.h8 * IP/TCP/UDP checksum routines
144 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/include/net/netfilter/
H A Dnf_conntrack_l3proto.h46 * *dataoff: offset of protocol header (TCP, UDP,...) in skb
/linux-4.1.27/include/rdma/
H A Drdma_cm_ib.h51 /* Global qkey for UDP QPs and multicast groups. */
/linux-4.1.27/arch/mn10300/include/asm/
H A Dchecksum.h64 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/cris/include/asm/
H A Dchecksum.h61 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/ia64/include/asm/
H A Dchecksum.h16 * Computes the checksum of the TCP/UDP pseudo-header returns a 16-bit
/linux-4.1.27/arch/ia64/lib/
H A Dchecksum.c33 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/metag/include/asm/
H A Dchecksum.h58 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/alpha/include/asm/
H A Dchecksum.h13 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/security/selinux/ss/
H A Dpolicydb.h169 * 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 Dchecksum.h64 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/drivers/net/ethernet/toshiba/
H A Dps3_gelic_net.h81 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 Dvmxnet3_defs.h262 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 Dvmxnet3_int.h88 VMNET_CAP_IP4_CSUM = 0x0002, /* Can checksum only TCP/UDP over
/linux-4.1.27/drivers/block/
H A Dfloppy.c308 #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 Den_main.c65 /* 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 Dl2tp_ppp.c25 * 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 Dl2tp_debugfs.c143 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 Dl2tp_core.c837 /* 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 Dchecksum.h131 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/m68k/include/asm/
H A Dchecksum.h97 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/arm/include/asm/
H A Dchecksum.h120 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/drivers/net/wireless/cw1200/
H A Dpm.c207 /* Set UDP filter */ cw1200_wow_suspend()
351 /* Remove UDP port filter */ cw1200_wow_resume()
/linux-4.1.27/arch/x86/um/
H A Dchecksum_32.S6 * 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 Dchecksum.c6 * 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 Dnf_log_ipv4.c263 /* UDP: 10+max(25,20) = 35 */ dump_ipv4_packet()
271 /* maxlen = IP + ICMP + IP + max(TCP,UDP,ICMP,unknown) */ dump_ipv4_packet()
H A Dnf_nat_snmp_basic.c867 * 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 Dflow.h151 __be16 src; /* TCP/UDP/SCTP source port. */
152 __be16 dst; /* TCP/UDP/SCTP destination port. */
H A Dvport-geneve.c33 * struct geneve_port - Keeps track of open UDP ports
H A Dvport-vxlan.c46 * struct vxlan_port - Keeps track of open UDP ports
/linux-4.1.27/include/linux/mlx4/
H A Dcmd.h223 * 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 Dqp.h293 * [5] TCP/UDP checksum
/linux-4.1.27/net/sctp/
H A Dsocket.c192 /* 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 Dsm_sideeffect.c842 * 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 Ddp83640_reg.h160 #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 Dethernet-defines.h41 * Controls if the Octeon TCP/UDP checksum engine is used for packet
/linux-4.1.27/drivers/infiniband/hw/usnic/
H A Dusnic_transport.c41 return "IPv4 UDP"; usnic_transport_to_str()
H A Dusnic_ib_qp_grp.c278 usnic_err("Protocol for fd %d is not UDP", sock_fd); create_udp_flow()
/linux-4.1.27/arch/x86/um/asm/
H A Dchecksum.h102 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/xtensa/include/asm/
H A Dchecksum.h156 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/x86/include/asm/
H A Dchecksum_32.h130 * computes the checksum of the TCP/UDP pseudo-header
H A Dchecksum_64.h171 * into UDP/TCP packets and contains some link layer information.
/linux-4.1.27/arch/metag/lib/
H A Dchecksum.c7 * IP/TCP/UDP checksumming routines
/linux-4.1.27/drivers/usb/gadget/udc/
H A Dat91_udc.h16 * USB Device Port (UDP) registers.
/linux-4.1.27/arch/powerpc/platforms/ps3/
H A Dgelic_udbg.c2 * udbg debug output routine via GELIC UDP broadcasts
/linux-4.1.27/arch/score/include/asm/
H A Dchecksum.h160 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/sh/include/asm/
H A Dchecksum_32.h141 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/powerpc/include/asm/
H A Dchecksum.h23 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/frv/include/asm/
H A Dchecksum.h104 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/frv/lib/
H A Dchecksum.c6 * IP/TCP/UDP checksumming routines
/linux-4.1.27/arch/hexagon/lib/
H A Dchecksum.c60 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/alpha/lib/
H A Dchecksum.c41 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/lib/
H A Dchecksum.c7 * IP/TCP/UDP checksumming routines
/linux-4.1.27/net/sunrpc/
H A Dsocklib.c150 * We have set things up such that we perform the checksum of the UDP
H A Dxprtsock.c89 * 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 Dsvcsock.c515 * 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 Dchecksum.S6 * 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 Dchecksum.S7 * 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 Dnetif.h107 * "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 Drx_desc.h148 * 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 Dvxge-config.h1187 * 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 Dvxge-traffic.h429 * @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 Di40e_common.c253 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 Di40e_ptp.c482 /* 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 Dpch_gbe_param.c116 * - 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 Dhw.h78 * 11 General UDP checksum 11 General UDP checksum
/linux-4.1.27/arch/x86/lib/
H A Dchecksum_32.S6 * IP/TCP/UDP checksumming routines
34 * computes a partial checksum, e.g. for TCP/UDP fragments
/linux-4.1.27/fs/lockd/
H A Dsvc.c206 * 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 Dtxtimestamp.c8 * - RAW, UDP and TCP
528 const char *sock_names[] = { NULL, "TCP", "UDP", "RAW" };
/linux-4.1.27/net/sched/
H A Dact_csum.c224 * 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 Dbnx2x_reg.h2094 /* [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 Dbnx2x_stats.h12 * UDP CSUM errata workaround by Arik Gendelman
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
H A Ddefines.h74 #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 Dregs.h248 #define E1000_RXUDP 0x0B638 /* Time Sync Rx UDP Port - RW */
/linux-4.1.27/include/rxrpc/
H A Dpacket.h180 #define RX_ADDRINUSE -7 /* UDP port in use */
/linux-4.1.27/arch/parisc/include/asm/
H A Dchecksum.h103 * computes the checksum of the TCP/UDP pseudo-header
/linux-4.1.27/arch/powerpc/lib/
H A Dchecksum_32.S44 * Compute checksum of TCP or UDP pseudo-header:
/linux-4.1.27/net/bridge/netfilter/
H A Debt_log.c67 printk(" INCOMPLETE TCP/UDP header"); print_ports()
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-drv.c1123 /* 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 Dixgbe_dcb_nl.c491 * @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 Dnetvsc_drv.c517 /* 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 Datl1.h473 * 7 Generate UDP checksum 7 Generate UDP checksum
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dt4vf_common.h189 int udpen; /* hash 4-tuple UDP ingress packets */
/linux-4.1.27/fs/nfs/
H A Dmount_clnt.c233 * use UDP.
/linux-4.1.27/include/net/sctp/
H A Dconstants.h197 * For a UDP-style SCTP socket, the states are defined as follows
/linux-4.1.27/net/irda/irlan/
H A Dirlan_eth.c261 * more for UDP socket).
/linux-4.1.27/drivers/net/ethernet/intel/igb/
H A De1000_defines.h88 #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 Dvia-velocity.h101 #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 Dll_temac_main.c1021 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 Dmacb.h130 #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 Dqlge_main.c541 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 Dvxlan.c64 /* 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 Dbe_cmds.h1132 * 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 Dixgb_param.c91 * - 1 - enables receive IP/TCP/UDP checksum offload

Completed in 14373 milliseconds

12