Home
last modified time | relevance | path

Searched refs:uh (Results 1 – 11 of 11) sorted by relevance

/net/ipv4/
Dudp.c387 struct udphdr *uh = (struct udphdr*)(skb->data+(iph->ihl<<2)); in __udp4_lib_err() local
395 sk = __udp4_lib_lookup(net, iph->daddr, uh->dest, in __udp4_lib_err()
396 iph->saddr, uh->source, skb->dev->ifindex, udptable); in __udp4_lib_err()
442 ip_icmp_error(sk, skb, err, uh->dest, info, (u8*)(uh+1)); in __udp4_lib_err()
480 struct udphdr *uh = udp_hdr(skb); in udp4_hwcsum_outgoing() local
489 uh->check = ~csum_tcpudp_magic(src, dst, len, IPPROTO_UDP, 0); in udp4_hwcsum_outgoing()
505 uh->check = csum_tcpudp_magic(src, dst, len, IPPROTO_UDP, csum); in udp4_hwcsum_outgoing()
506 if (uh->check == 0) in udp4_hwcsum_outgoing()
507 uh->check = CSUM_MANGLED_0; in udp4_hwcsum_outgoing()
520 struct udphdr *uh; in udp_push_pending_frames() local
[all …]
Desp4.c169 struct udphdr *uh; in esp_output() local
180 uh = (struct udphdr *)esph; in esp_output()
181 uh->source = sport; in esp_output()
182 uh->dest = dport; in esp_output()
183 uh->len = htons(skb->len - skb_transport_offset(skb)); in esp_output()
184 uh->check = 0; in esp_output()
189 esph = (struct ip_esp_hdr *)(uh + 1); in esp_output()
192 udpdata32 = (__be32 *)(uh + 1); in esp_output()
263 struct udphdr *uh = (void *)(skb_network_header(skb) + ihl); in esp_input_done2() local
272 uh->source != encap->encap_sport) { in esp_input_done2()
[all …]
Dxfrm4_input.c78 struct udphdr *uh; in xfrm4_udp_encap_rcv() local
97 uh = udp_hdr(skb); in xfrm4_udp_encap_rcv()
98 udpdata = (__u8 *)uh + sizeof(struct udphdr); in xfrm4_udp_encap_rcv()
/net/ipv6/
Dudp.c291 struct udphdr *uh = (struct udphdr*)(skb->data+offset); in __udp6_lib_err() local
295 sk = __udp6_lib_lookup(dev_net(skb->dev), daddr, uh->dest, in __udp6_lib_err()
296 saddr, uh->source, inet6_iif(skb), udptable); in __udp6_lib_err()
309 ipv6_icmp_error(sk, skb, err, uh->dest, ntohl(info), (u8 *)(uh+1)); in __udp6_lib_err()
423 const struct udphdr *uh = udp_hdr(skb); in __udp6_lib_mcast_deliver() local
424 struct udp_hslot *hslot = &udptable->hash[udp_hashfn(net, ntohs(uh->dest))]; in __udp6_lib_mcast_deliver()
430 sk = udp_v6_mcast_next(net, sk, uh->dest, daddr, uh->source, saddr, dif); in __udp6_lib_mcast_deliver()
437 while ((sk2 = udp_v6_mcast_next(net, sk_nulls_next(sk2), uh->dest, daddr, in __udp6_lib_mcast_deliver()
438 uh->source, saddr, dif))) { in __udp6_lib_mcast_deliver()
460 static inline int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, in udp6_csum_init() argument
[all …]
/net/netfilter/
Dxt_tcpudp.c139 const struct udphdr *uh; in udp_mt() local
147 uh = skb_header_pointer(skb, par->thoff, sizeof(_udph), &_udph); in udp_mt()
148 if (uh == NULL) { in udp_mt()
157 ntohs(uh->source), in udp_mt()
160 ntohs(uh->dest), in udp_mt()
Dnf_conntrack_h323_main.c1190 const struct udphdr *uh; in get_udp_data() local
1194 uh = skb_header_pointer(skb, protoff, sizeof(_uh), &_uh); in get_udp_data()
1195 if (uh == NULL) in get_udp_data()
/net/netfilter/ipvs/
Dip_vs_proto_udp.c84 struct udphdr _udph, *uh; in udp_conn_schedule() local
89 uh = skb_header_pointer(skb, iph.len, sizeof(_udph), &_udph); in udp_conn_schedule()
90 if (uh == NULL) { in udp_conn_schedule()
96 &iph.daddr, uh->dest); in udp_conn_schedule()
318 struct udphdr _udph, *uh; in udp_csum_check() local
328 uh = skb_header_pointer(skb, udphoff, sizeof(_udph), &_udph); in udp_csum_check()
329 if (uh == NULL) in udp_csum_check()
332 if (uh->check != 0) { in udp_csum_check()
/net/ipv6/netfilter/
Dip6t_LOG.c279 const struct udphdr *uh; in dump_packet() local
291 uh = skb_header_pointer(skb, ptr, sizeof(_udph), &_udph); in dump_packet()
292 if (uh == NULL) { in dump_packet()
299 ntohs(uh->source), ntohs(uh->dest), in dump_packet()
300 ntohs(uh->len)); in dump_packet()
/net/ipv4/netfilter/
Dipt_LOG.c175 const struct udphdr *uh; in dump_packet() local
187 uh = skb_header_pointer(skb, iphoff+ih->ihl*4, in dump_packet()
189 if (uh == NULL) { in dump_packet()
197 ntohs(uh->source), ntohs(uh->dest), in dump_packet()
198 ntohs(uh->len)); in dump_packet()
/net/core/
Dnetpoll.c88 static __sum16 checksum_udp(struct sk_buff *skb, struct udphdr *uh, in checksum_udp() argument
93 if (uh->check == 0 || skb_csum_unnecessary(skb)) in checksum_udp()
480 struct udphdr *uh; in __netpoll_rx() local
529 uh = (struct udphdr *)(((char *)iph) + iph->ihl*4); in __netpoll_rx()
530 ulen = ntohs(uh->len); in __netpoll_rx()
534 if (checksum_udp(skb, uh, ulen, iph->saddr, iph->daddr)) in __netpoll_rx()
540 if (np->local_port && np->local_port != ntohs(uh->dest)) in __netpoll_rx()
543 np->rx_hook(np, ntohs(uh->source), in __netpoll_rx()
544 (char *)(uh+1), in __netpoll_rx()
/net/tipc/
Dport.c979 void *uh = NULL; in port_wakeup_sh() local
986 uh = up_ptr->usr_handle; in port_wakeup_sh()
991 cb(uh, ref); in port_wakeup_sh()