/net/ipv4/ |
D | udp_offload.c | 26 struct udphdr *uh = udp_hdr(skb); in __skb_udp_tunnel_segment() 146 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment() 198 struct udphdr *uh; in udp4_ufo_fragment() 211 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in udp4_ufo_fragment() 259 struct udphdr *uh, udp_lookup_t lookup) in udp_gro_receive() 262 struct udphdr *uh2; in udp_gro_receive() 290 uh2 = (struct udphdr *)(p->data + off); in udp_gro_receive() 302 skb_gro_pull(skb, sizeof(struct udphdr)); /* pull encapsulating udp header */ in udp_gro_receive() 303 skb_gro_postpull_rcsum(skb, uh, sizeof(struct udphdr)); in udp_gro_receive() 317 struct udphdr *uh = udp_gro_udphdr(skb); in udp4_gro_receive() [all …]
|
D | xfrm4_input.c | 72 struct udphdr *uh; in xfrm4_udp_encap_rcv() 86 len = skb->len - sizeof(struct udphdr); in xfrm4_udp_encap_rcv() 87 if (!pskb_may_pull(skb, sizeof(struct udphdr) + min(len, 8))) in xfrm4_udp_encap_rcv() 92 udpdata = (__u8 *)uh + sizeof(struct udphdr); in xfrm4_udp_encap_rcv() 103 len = sizeof(struct udphdr); in xfrm4_udp_encap_rcv() 116 len = sizeof(struct udphdr) + 2 * sizeof(u32); in xfrm4_udp_encap_rcv()
|
D | fou.c | 75 if (fou_recv_pull(skb, fou, sizeof(struct udphdr))) in fou_udp_recv() 92 size_t plen = sizeof(struct udphdr) + hdrlen + in gue_remcsum() 126 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_udp_recv() 152 if (fou_recv_pull(skb, fou, sizeof(struct udphdr))) in gue_udp_recv() 213 __skb_pull(skb, sizeof(struct udphdr) + hdrlen); in gue_udp_recv() 836 return sizeof(struct udphdr); in fou_encap_hlen() 845 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_encap_hlen() 861 struct udphdr *uh; in fou_build_udp() 863 skb_push(skb, sizeof(struct udphdr)); in fou_build_udp()
|
D | udp.c | 469 sizeof(struct udphdr)); in udp4_lib_lookup2() 540 sizeof(struct udphdr)); in __udp4_lib_lookup() 630 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); in __udp4_lib_err() 727 struct udphdr *uh = udp_hdr(skb); in udp4_hwcsum() 738 skb->csum_offset = offsetof(struct udphdr, check); in udp4_hwcsum() 770 struct udphdr *uh = udp_hdr(skb); in udp_set_csum() 784 skb->csum_offset = offsetof(struct udphdr, check); in udp_set_csum() 794 struct udphdr *uh; in udp_send_skb() 923 ulen += sizeof(struct udphdr); in udp_sendmsg() 1051 sizeof(struct udphdr), &ipc, &rt, in udp_sendmsg() [all …]
|
D | esp4.c | 219 struct udphdr *uh; in esp_output() 230 uh = (struct udphdr *)esph; in esp_output() 340 struct udphdr *uh = (void *)(skb_network_header(skb) + ihl); in esp_input_done2() 723 x->props.header_len += sizeof(struct udphdr); in esp_init_state() 726 x->props.header_len += sizeof(struct udphdr) + 2 * sizeof(u32); in esp_init_state()
|
/net/6lowpan/ |
D | nhc_udp.c | 45 struct udphdr uh; in udp_uncompress() 100 uh.len = htons(skb->len + sizeof(struct udphdr)); in udp_uncompress() 103 uh.len = htons(skb->len + sizeof(struct udphdr)); in udp_uncompress() 115 skb_push(skb, sizeof(struct udphdr)); in udp_uncompress() 116 skb_copy_to_linear_data(skb, &uh, sizeof(struct udphdr)); in udp_uncompress() 123 const struct udphdr *uh = udp_hdr(skb); in udp_compress() 183 LOWPAN_NHC(nhc_udp, "RFC6282 UDP", NEXTHDR_UDP, sizeof(struct udphdr),
|
/net/ipv6/ |
D | udp_offload.c | 56 struct udphdr *uh; in udp6_ufo_fragment() 61 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in udp6_ufo_fragment() 132 struct udphdr *uh = udp_gro_udphdr(skb); in udp6_gro_receive() 160 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); in udp6_gro_complete()
|
D | udp.c | 187 sizeof(struct udphdr)); in udp6_lib_lookup2() 257 sizeof(struct udphdr)); in __udp6_lib_lookup() 431 sizeof(struct udphdr), off); in udpv6_recvmsg() 475 struct udphdr *uh = (struct udphdr *)(skb->data+offset); in __udp6_lib_err() 622 if (sk_filter_trim_cap(sk, skb, sizeof(struct udphdr))) in udpv6_queue_rcv_skb() 698 const struct udphdr *uh = udp_hdr(skb); in __udp6_lib_mcast_deliver() 765 struct udphdr *uh; in __udp6_lib_rcv() 769 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in __udp6_lib_rcv() 901 struct udphdr *uh = udp_hdr(skb); in udp6_hwcsum_outgoing() 908 skb->csum_offset = offsetof(struct udphdr, check); in udp6_hwcsum_outgoing() [all …]
|
D | ip6_checksum.c | 64 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) in udp6_csum_init() 102 struct udphdr *uh = udp_hdr(skb); in udp6_set_csum() 116 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum()
|
D | fou6.c | 20 struct udphdr *uh; in fou6_build_udp() 22 skb_push(skb, sizeof(struct udphdr)); in fou6_build_udp()
|
D | ip6_udp_tunnel.c | 79 struct udphdr *uh; in udp_tunnel6_xmit_skb()
|
/net/batman-adv/ |
D | gateway_client.c | 591 struct udphdr *udphdr; in batadv_gw_dhcp_recipient_get() local 645 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get() 648 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get() 649 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get() 654 if (udphdr->dest == htons(67)) in batadv_gw_dhcp_recipient_get() 656 else if (udphdr->source == htons(67)) in batadv_gw_dhcp_recipient_get() 660 if (udphdr->dest == htons(547)) in batadv_gw_dhcp_recipient_get() 662 else if (udphdr->source == htons(547)) in batadv_gw_dhcp_recipient_get()
|
/net/ipv6/ila/ |
D | ila_common.c | 76 if (likely(pskb_may_pull(skb, nhoff + sizeof(struct udphdr)))) { in ila_csum_adjust_transport() 77 struct udphdr *uh = (struct udphdr *) in ila_csum_adjust_transport()
|
/net/netfilter/ipvs/ |
D | ip_vs_proto_udp.c | 38 struct udphdr _udph, *uh; in udp_conn_schedule() 98 udp_fast_csum_update(int af, struct udphdr *uhdr, in udp_fast_csum_update() 120 udp_partial_csum_update(int af, struct udphdr *uhdr, in udp_partial_csum_update() 144 struct udphdr *udph; in udp_snat_handler() 227 struct udphdr *udph; in udp_dnat_handler() 307 struct udphdr _udph, *uh; in udp_csum_check()
|
/net/netfilter/ |
D | nf_conntrack_proto_udp.c | 44 const struct udphdr *hp; in udp_pkt_to_tuple() 45 struct udphdr _hdr; in udp_pkt_to_tuple() 117 const struct udphdr *hdr; in udp_error() 118 struct udphdr _hdr; in udp_error()
|
D | nf_nat_proto_udp.c | 40 struct udphdr *hdr; in udp_manip_pkt() 45 hdr = (struct udphdr *)(skb->data + hdroff); in udp_manip_pkt()
|
D | nf_conntrack_proto_udplite.c | 54 const struct udphdr *hp; in udplite_pkt_to_tuple() 55 struct udphdr _hdr; in udplite_pkt_to_tuple() 128 const struct udphdr *hdr; in udplite_error() 129 struct udphdr _hdr; in udplite_error()
|
D | nf_nat_proto_udplite.c | 40 struct udphdr *hdr; in udplite_manip_pkt() 46 hdr = (struct udphdr *)(skb->data + hdroff); in udplite_manip_pkt()
|
D | nf_log_common.c | 27 struct udphdr _udph; in nf_log_dump_udp_header() 28 const struct udphdr *uh; in nf_log_dump_udp_header()
|
D | xt_tcpudp.c | 130 const struct udphdr *uh; in udp_mt() 131 struct udphdr _udph; in udp_mt()
|
/net/netfilter/ipset/ |
D | ip_set_getport.c | 54 struct udphdr _udph; in get_port() 55 const struct udphdr *uh; in get_port()
|
/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 1185 struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in snmp_translate() 1187 u_int16_t paylen = udplen - sizeof(struct udphdr); in snmp_translate() 1208 if (!snmp_parse_mangle((unsigned char *)udph + sizeof(struct udphdr), in snmp_translate() 1225 const struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in help()
|
/net/openvswitch/ |
D | actions.c | 327 if (likely(transport_len >= sizeof(struct udphdr))) { in update_ip_l4_checksum() 328 struct udphdr *uh = udp_hdr(skb); in update_ip_l4_checksum() 359 if (likely(transport_len >= sizeof(struct udphdr))) { in update_ipv6_checksum() 360 struct udphdr *uh = udp_hdr(skb); in update_ipv6_checksum() 548 struct udphdr *uh; in set_udp() 553 sizeof(struct udphdr)); in set_udp()
|
/net/core/ |
D | netpoll.c | 56 sizeof(struct udphdr) + \ 388 struct udphdr *udph; in netpoll_send_udp() 438 ip6h->payload_len = htons(sizeof(struct udphdr) + len); in netpoll_send_udp()
|
/net/tipc/ |
D | udp_media.c | 354 skb_pull(skb, sizeof(struct udphdr)); in tipc_udp_recv() 697 sizeof(struct udphdr))) { in tipc_udp_enable() 702 - sizeof(struct udphdr); in tipc_udp_enable()
|