Home
last modified time | relevance | path

Searched refs:udphdr (Results 1 – 25 of 73) sorted by relevance

123

/net/ipv4/
A Dudp_offload.c181 struct udphdr *uh = udp_hdr(skb); in __skb_udp_tunnel_segment()
352 struct udphdr *uh; in __udpv4_gso_segment_csum()
378 struct udphdr *uh, *uh2; in __udpv4_gso_segment_list_csum()
433 const struct udphdr *uh; in __udpv6_gso_segment_list_csum()
436 struct udphdr *uh2; in __udpv6_gso_segment_list_csum()
486 struct udphdr *uh; in __udp_gso_segment()
643 struct udphdr *uh; in udp4_ufo_fragment()
704 struct udphdr *uh2; in udp_gro_receive_segment()
789 struct udphdr *uh2; in udp_gro_receive()
928 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); in udp_gro_complete()
[all …]
A Dxfrm4_input.c84 struct udphdr *uh; in __xfrm4_udp_encap_rcv()
98 len = skb->len - sizeof(struct udphdr); in __xfrm4_udp_encap_rcv()
99 if (!pskb_may_pull(skb, sizeof(struct udphdr) + min(len, 8))) in __xfrm4_udp_encap_rcv()
104 udpdata = (__u8 *)uh + sizeof(struct udphdr); in __xfrm4_udp_encap_rcv()
115 len = sizeof(struct udphdr); in __xfrm4_udp_encap_rcv()
A Dfou_core.c80 if (fou_recv_pull(skb, fou, sizeof(struct udphdr))) in fou_udp_recv()
97 size_t plen = sizeof(struct udphdr) + hdrlen + in gue_remcsum()
132 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_udp_recv()
158 if (fou_recv_pull(skb, fou, sizeof(struct udphdr))) in gue_udp_recv()
218 __skb_pull(skb, sizeof(struct udphdr) + hdrlen); in gue_udp_recv()
922 return sizeof(struct udphdr); in fou_encap_hlen()
931 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_encap_hlen()
1038 struct udphdr *uh; in fou_build_udp()
1040 skb_push(skb, sizeof(struct udphdr)); in fou_build_udp()
1107 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_err()
A Dudp.c871 struct udphdr *uh, in __udp4_lib_err_encap()
935 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); in __udp4_lib_err()
1054 struct udphdr *uh = udp_hdr(skb); in udp4_hwcsum()
1097 struct udphdr *uh = udp_hdr(skb); in udp_set_csum()
1122 struct udphdr *uh; in udp_send_skb()
1141 sizeof(struct udphdr); in udp_send_skb()
1320 ulen += sizeof(struct udphdr); in udp_sendmsg()
2501 struct udphdr *uh, in __udp4_lib_mcast_deliver()
2616 struct udphdr *uh) in udp_unicast_rcv_skb()
2641 struct udphdr *uh; in __udp4_lib_rcv()
[all …]
/net/6lowpan/
A Dnhc_udp.c39 struct udphdr uh; in udp_uncompress()
94 uh.len = htons(skb->len + sizeof(struct udphdr)); in udp_uncompress()
97 uh.len = htons(skb->len + sizeof(struct udphdr)); in udp_uncompress()
109 skb_push(skb, sizeof(struct udphdr)); in udp_uncompress()
110 skb_copy_to_linear_data(skb, &uh, sizeof(struct udphdr)); in udp_uncompress()
117 const struct udphdr *uh = udp_hdr(skb); in udp_compress()
171 LOWPAN_NHC(nhc_udp, "RFC6282 UDP", NEXTHDR_UDP, sizeof(struct udphdr),
/net/ipv4/netfilter/
A Dnf_nat_snmp_basic_main.c129 struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in snmp_translate()
130 u16 datalen = ntohs(udph->len) - sizeof(struct udphdr); in snmp_translate()
131 char *data = (unsigned char *)udph + sizeof(struct udphdr); in snmp_translate()
146 ctx.begin = (unsigned char *)udph + sizeof(struct udphdr); in snmp_translate()
167 const struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in help()
/net/core/
A Dtso.c27 if (tso->tlen != sizeof(struct udphdr)) { in tso_build_hdr()
39 struct udphdr *uh = (struct udphdr *)hdr; in tso_build_hdr()
66 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start()
71 tso->tcp_seq = (tlen != sizeof(struct udphdr)) ? ntohl(tcp_hdr(skb)->seq) : 0; in tso_start()
A Dnetpoll.c53 sizeof(struct udphdr) + \
378 struct udphdr *udph; in netpoll_udp_checksum()
381 udp_len = len + sizeof(struct udphdr); in netpoll_udp_checksum()
431 ip6h->payload_len = htons(sizeof(struct udphdr) + len); in push_ipv6()
446 ip_len = len + sizeof(struct udphdr) + sizeof(struct iphdr); in push_ipv4()
469 struct udphdr *udph; in push_udp()
472 udp_len = len + sizeof(struct udphdr); in push_udp()
474 skb_push(skb, sizeof(struct udphdr)); in push_udp()
507 udp_len = len + sizeof(struct udphdr); in netpoll_send_udp()
A Dselftests.c59 struct udphdr *uhdr = NULL; in net_test_get_skb()
71 size += sizeof(struct udphdr); in net_test_get_skb()
204 struct udphdr *uhdr; in net_test_loopback_validate()
245 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in net_test_loopback_validate()
/net/batman-adv/
A Dgateway_client.c559 struct udphdr *udphdr; in batadv_gw_dhcp_recipient_get() local
613 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
616 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
617 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get()
622 if (udphdr->dest == htons(67)) in batadv_gw_dhcp_recipient_get()
624 else if (udphdr->source == htons(67)) in batadv_gw_dhcp_recipient_get()
628 if (udphdr->dest == htons(547)) in batadv_gw_dhcp_recipient_get()
630 else if (udphdr->source == htons(547)) in batadv_gw_dhcp_recipient_get()
A Ddistributed-arp-table.c1429 struct udphdr *udphdr, _udphdr; in batadv_dat_check_dhcp_ipudp() local
1442 udphdr = skb_header_pointer(skb, offset, sizeof(_udphdr), &_udphdr); in batadv_dat_check_dhcp_ipudp()
1443 if (!udphdr || udphdr->source != htons(67)) in batadv_dat_check_dhcp_ipudp()
1483 offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_check_dhcp()
1515 unsigned int offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_get_dhcp_message_type()
1563 unsigned int offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_dhcp_get_yiaddr()
1590 unsigned int offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_get_dhcp_chaddr()
/net/ipv6/
A Dudp_offload.c38 struct udphdr *uh; in udp6_ufo_fragment()
43 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in udp6_ufo_fragment()
138 struct udphdr *uh = udp_gro_udphdr(skb); in udp6_gro_receive()
174 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); in udp6_gro_complete()
A Dxfrm6_input.c79 struct udphdr *uh; in __xfrm6_udp_encap_rcv()
94 len = skb->len - sizeof(struct udphdr); in __xfrm6_udp_encap_rcv()
95 if (!pskb_may_pull(skb, sizeof(struct udphdr) + min(len, 8))) in __xfrm6_udp_encap_rcv()
100 udpdata = (__u8 *)uh + sizeof(struct udphdr); in __xfrm6_udp_encap_rcv()
111 len = sizeof(struct udphdr); in __xfrm6_udp_encap_rcv()
A Dudp.c571 sizeof(struct udphdr), off); in udpv6_recvmsg()
649 struct udphdr *uh, in __udp6_lib_err_encap()
710 struct udphdr *uh = (struct udphdr *)(skb->data+offset); in __udp6_lib_err()
1055 struct udphdr *uh) in udp6_unicast_rcv_skb()
1077 struct udphdr *uh; in __udp6_lib_rcv()
1224 const struct udphdr *uh; in udp_v6_early_demux()
1231 sizeof(struct udphdr))) in udp_v6_early_demux()
1331 struct udphdr *uh = udp_hdr(skb); in udp6_hwcsum_outgoing()
1371 struct udphdr *uh; in udp_v6_send_skb()
1390 sizeof(struct udphdr); in udp_v6_send_skb()
[all …]
A Dip6_checksum.c65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) in udp6_csum_init()
119 struct udphdr *uh = udp_hdr(skb); in udp6_set_csum()
133 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum()
A Dfou6.c24 struct udphdr *uh; in fou6_build_udp()
26 skb_push(skb, sizeof(struct udphdr)); in fou6_build_udp()
97 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue6_err()
/net/netfilter/
A Dnf_conntrack_proto_udp.c49 const struct udphdr *hdr; in udp_error()
50 struct udphdr _hdr; in udp_error()
145 const struct udphdr *hdr; in udplite_error()
146 struct udphdr _hdr; in udplite_error()
A Dxt_TPROXY.c40 struct udphdr _hdr, *hp; in tproxy_tg4()
109 struct udphdr _hdr, *hp; in tproxy_tg6_v1()
A Dxt_tcpudp.c134 const struct udphdr *uh; in udp_mt()
135 struct udphdr _udph; in udp_mt()
/net/netfilter/ipvs/
A Dip_vs_proto_udp.c37 struct udphdr _udph, *uh; in udp_conn_schedule()
93 udp_fast_csum_update(int af, struct udphdr *uhdr, in udp_fast_csum_update()
115 udp_partial_csum_update(int af, struct udphdr *uhdr, in udp_partial_csum_update()
139 struct udphdr *udph; in udp_snat_handler()
222 struct udphdr *udph; in udp_dnat_handler()
302 struct udphdr _udph, *uh; in udp_csum_check()
/net/ipv6/ila/
A Dila_common.c93 if (likely(pskb_may_pull(skb, nhoff + sizeof(struct udphdr)))) { in ila_csum_adjust_transport()
94 struct udphdr *uh = (struct udphdr *) in ila_csum_adjust_transport()
/net/netfilter/ipset/
A Dip_set_getport.c55 struct udphdr _udph; in get_port()
56 const struct udphdr *uh; in get_port()
/net/xfrm/
A Dxfrm_nat_keepalive.c75 struct udphdr *uh) in nat_keepalive_send_ipv6()
119 sizeof(struct udphdr); in nat_keepalive_send()
123 struct udphdr *uh; in nat_keepalive_send()
/net/tipc/
A Dudp_media.h52 sizeof(struct udphdr))) in tipc_udp_mtu_bad()
/net/l2tp/
A Dl2tp_eth.c195 overhead += sizeof(struct udphdr); in l2tp_eth_adjust_mtu()
196 dev->needed_headroom += sizeof(struct udphdr); in l2tp_eth_adjust_mtu()

Completed in 58 milliseconds

123