/net/openvswitch/ |
D | actions.c | 150 struct udphdr *uh = udp_hdr(skb); in set_ip_addr() local 152 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { in set_ip_addr() 153 inet_proto_csum_replace4(&uh->check, skb, in set_ip_addr() 155 if (!uh->check) in set_ip_addr() 156 uh->check = CSUM_MANGLED_0; in set_ip_addr() 177 struct udphdr *uh = udp_hdr(skb); in update_ipv6_checksum() local 179 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { in update_ipv6_checksum() 180 inet_proto_csum_replace16(&uh->check, skb, in update_ipv6_checksum() 182 if (!uh->check) in update_ipv6_checksum() 183 uh->check = CSUM_MANGLED_0; in update_ipv6_checksum() [all …]
|
/net/ieee802154/ |
D | 6lowpan.c | 250 struct udphdr *uh = udp_hdr(skb); in lowpan_compress_udp_header() local 252 if (((uh->source & LOWPAN_NHC_UDP_4BIT_MASK) == in lowpan_compress_udp_header() 254 ((uh->dest & LOWPAN_NHC_UDP_4BIT_MASK) == in lowpan_compress_udp_header() 259 (u8)((uh->dest - LOWPAN_NHC_UDP_4BIT_PORT) + in lowpan_compress_udp_header() 260 ((uh->source & LOWPAN_NHC_UDP_4BIT_PORT) << 4)); in lowpan_compress_udp_header() 262 } else if ((uh->dest & LOWPAN_NHC_UDP_8BIT_MASK) == in lowpan_compress_udp_header() 266 memcpy(*hc06_ptr + 1, &uh->source, 2); in lowpan_compress_udp_header() 267 **(hc06_ptr + 3) = (u8)(uh->dest - LOWPAN_NHC_UDP_8BIT_PORT); in lowpan_compress_udp_header() 269 } else if ((uh->source & LOWPAN_NHC_UDP_8BIT_MASK) == in lowpan_compress_udp_header() 273 memcpy(*hc06_ptr + 1, &uh->dest, 2); in lowpan_compress_udp_header() [all …]
|
/net/ipv4/ |
D | udp.c | 612 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); in __udp4_lib_err() local 620 sk = __udp4_lib_lookup(net, iph->daddr, uh->dest, in __udp4_lib_err() 621 iph->saddr, uh->source, skb->dev->ifindex, udptable); in __udp4_lib_err() 671 ip_icmp_error(sk, skb, err, uh->dest, info, (u8 *)(uh+1)); in __udp4_lib_err() 708 struct udphdr *uh = udp_hdr(skb); in udp4_hwcsum() local 721 uh->check = ~csum_tcpudp_magic(src, dst, len, in udp4_hwcsum() 737 uh->check = csum_tcpudp_magic(src, dst, len, IPPROTO_UDP, csum); in udp4_hwcsum() 738 if (uh->check == 0) in udp4_hwcsum() 739 uh->check = CSUM_MANGLED_0; in udp4_hwcsum() 747 struct udphdr *uh; in udp_send_skb() local [all …]
|
D | esp4.c | 210 struct udphdr *uh; in esp_output() local 221 uh = (struct udphdr *)esph; in esp_output() 222 uh->source = sport; in esp_output() 223 uh->dest = dport; in esp_output() 224 uh->len = htons(skb->len - skb_transport_offset(skb)); in esp_output() 225 uh->check = 0; in esp_output() 230 esph = (struct ip_esp_hdr *)(uh + 1); in esp_output() 233 udpdata32 = (__be32 *)(uh + 1); in esp_output() 312 struct udphdr *uh = (void *)(skb_network_header(skb) + ihl); in esp_input_done2() local 321 uh->source != encap->encap_sport) { in esp_input_done2() [all …]
|
D | xfrm4_input.c | 79 struct udphdr *uh; in xfrm4_udp_encap_rcv() local 98 uh = udp_hdr(skb); in xfrm4_udp_encap_rcv() 99 udpdata = (__u8 *)uh + sizeof(struct udphdr); in xfrm4_udp_encap_rcv()
|
/net/ipv6/ |
D | udp.c | 513 struct udphdr *uh = (struct udphdr*)(skb->data+offset); in __udp6_lib_err() local 517 sk = __udp6_lib_lookup(dev_net(skb->dev), daddr, uh->dest, in __udp6_lib_err() 518 saddr, uh->source, inet6_iif(skb), udptable); in __udp6_lib_err() 536 ipv6_icmp_error(sk, skb, err, uh->dest, ntohl(info), (u8 *)(uh+1)); in __udp6_lib_err() 745 const struct udphdr *uh = udp_hdr(skb); in __udp6_lib_mcast_deliver() local 746 struct udp_hslot *hslot = udp_hashslot(udptable, net, ntohs(uh->dest)); in __udp6_lib_mcast_deliver() 753 sk = udp_v6_mcast_next(net, sk, uh->dest, daddr, uh->source, saddr, dif); in __udp6_lib_mcast_deliver() 756 sk = udp_v6_mcast_next(net, sk_nulls_next(sk), uh->dest, daddr, in __udp6_lib_mcast_deliver() 757 uh->source, saddr, dif); in __udp6_lib_mcast_deliver() 789 struct udphdr *uh; in __udp6_lib_rcv() local [all …]
|
D | udp_offload.c | 22 struct udphdr *uh; in udp6_ufo_send_check() local 28 if (!pskb_may_pull(skb, sizeof(*uh))) in udp6_ufo_send_check() 32 uh = udp_hdr(skb); in udp6_ufo_send_check() 34 uh->check = ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, skb->len, in udp6_ufo_send_check()
|
D | ip6_checksum.c | 65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) in udp6_csum_init() argument 73 err = udplite_checksum_init(skb, uh); in udp6_csum_init() 78 if (uh->check == 0) { in udp6_csum_init()
|
/net/netfilter/ipset/ |
D | ip_set_getport.c | 55 const struct udphdr *uh; in get_port() local 57 uh = skb_header_pointer(skb, protooff, sizeof(_udph), &_udph); in get_port() 58 if (uh == NULL) in get_port() 62 *port = src ? uh->source : uh->dest; in get_port()
|
/net/netfilter/ |
D | xt_tcpudp.c | 133 const struct udphdr *uh; in udp_mt() local 141 uh = skb_header_pointer(skb, par->thoff, sizeof(_udph), &_udph); in udp_mt() 142 if (uh == NULL) { in udp_mt() 151 ntohs(uh->source), in udp_mt() 154 ntohs(uh->dest), in udp_mt()
|
D | xt_LOG.c | 46 const struct udphdr *uh; in dump_udp_header() local 58 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in dump_udp_header() 59 if (uh == NULL) { in dump_udp_header() 66 sb_add(m, "SPT=%u DPT=%u LEN=%u ", ntohs(uh->source), ntohs(uh->dest), in dump_udp_header() 67 ntohs(uh->len)); in dump_udp_header()
|
D | nf_nat_sip.c | 280 struct udphdr *uh; in nf_nat_sip() local 287 uh = (void *)skb->data + protoff; in nf_nat_sip() 288 uh->dest = ct_sip_info->forced_dport; in nf_nat_sip()
|
D | nf_conntrack_h323_main.c | 1238 const struct udphdr *uh; in get_udp_data() local 1242 uh = skb_header_pointer(skb, protoff, sizeof(_uh), &_uh); in get_udp_data() 1243 if (uh == NULL) in get_udp_data()
|
/net/netfilter/ipvs/ |
D | ip_vs_proto_udp.c | 38 struct udphdr _udph, *uh; in udp_conn_schedule() local 41 uh = skb_header_pointer(skb, iph->len, sizeof(_udph), &_udph); in udp_conn_schedule() 42 if (uh == NULL) { in udp_conn_schedule() 49 &iph->daddr, uh->dest); in udp_conn_schedule() 293 struct udphdr _udph, *uh; in udp_csum_check() local 303 uh = skb_header_pointer(skb, udphoff, sizeof(_udph), &_udph); in udp_csum_check() 304 if (uh == NULL) in udp_csum_check() 307 if (uh->check != 0) { in udp_csum_check()
|
/net/l2tp/ |
D | l2tp_core.c | 502 struct udphdr *uh = udp_hdr(skb); in l2tp_verify_udp_checksum() local 503 u16 ulen = ntohs(uh->len); in l2tp_verify_udp_checksum() 511 if (!uh->check) { in l2tp_verify_udp_checksum() 530 if (!uh->check) in l2tp_verify_udp_checksum() 1116 struct udphdr *uh = udp_hdr(skb); in l2tp_xmit_ipv6_csum() local 1122 uh->check = csum_ipv6_magic(&np->saddr, &np->daddr, udp_len, in l2tp_xmit_ipv6_csum() 1124 if (uh->check == 0) in l2tp_xmit_ipv6_csum() 1125 uh->check = CSUM_MANGLED_0; in l2tp_xmit_ipv6_csum() 1130 uh->check = ~csum_ipv6_magic(&np->saddr, &np->daddr, in l2tp_xmit_ipv6_csum() 1145 struct udphdr *uh; in l2tp_xmit_skb() local [all …]
|
/net/core/ |
D | netpoll.c | 111 static __sum16 checksum_udp(struct sk_buff *skb, struct udphdr *uh, in checksum_udp() argument 116 if (uh->check == 0 || skb_csum_unnecessary(skb)) in checksum_udp() 767 struct udphdr *uh; in __netpoll_rx() local 827 uh = (struct udphdr *)(((char *)iph) + iph->ihl*4); in __netpoll_rx() 828 ulen = ntohs(uh->len); in __netpoll_rx() 832 if (checksum_udp(skb, uh, ulen, iph->saddr, iph->daddr)) in __netpoll_rx() 839 if (np->local_port && np->local_port != ntohs(uh->dest)) in __netpoll_rx() 842 np->rx_hook(np, ntohs(uh->source), in __netpoll_rx() 843 (char *)(uh+1), in __netpoll_rx() 866 uh = udp_hdr(skb); in __netpoll_rx() [all …]
|
/net/tipc/ |
D | port.c | 859 void *uh = NULL; in port_wakeup_sh() local 866 uh = up_ptr->usr_handle; in port_wakeup_sh() 871 cb(uh, ref); in port_wakeup_sh()
|