Home
last modified time | relevance | path

Searched refs:UDP_HLEN (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/tools/testing/selftests/net/
Dip_defrag.c31 #define UDP_HLEN (sizeof(struct udphdr)) macro
107 IPPROTO_UDP + (uint32_t)(UDP_HLEN + payload_len)); in udp_checksum()
108 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp_checksum()
125 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp6_checksum()
139 int payload_offset = offset > 0 ? offset - UDP_HLEN : 0; in send_fragment()
147 udphdr.len = htons(UDP_HLEN + payload_len); in send_fragment()
153 memcpy(frag_start, &udphdr, UDP_HLEN); in send_fragment()
169 memcpy(frag_start + UDP_HLEN, udp_payload, in send_fragment()
170 frag_len - FRAG_HLEN - UDP_HLEN); in send_fragment()
187 memcpy(frag_start + UDP_HLEN, udp_payload, in send_fragment()
[all …]
/linux-6.6.21/net/core/
Dptp_classifier.c119 ptr += IPV4_HLEN(ptr) + UDP_HLEN; in ptp_parse_header()
122 ptr += IP6_HLEN + UDP_HLEN; in ptp_parse_header()
/linux-6.6.21/include/linux/
Dptp_classify.h55 #define UDP_HLEN 8 macro
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/
Dbcmasp_intf.c205 header2 |= PKT_OFFLOAD_HDR2_SIZE_3(UDP_HLEN); in bcmasp_csum_offload()
/linux-6.6.21/drivers/net/phy/mscc/
Dmscc_ptp.c368 return (struct vsc85xx_ptphdr *)(((unsigned char *)udphdr) + UDP_HLEN); in get_ptp_header_l4()
/linux-6.6.21/drivers/net/ethernet/xscale/
Dixp4xx_eth.c286 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; in ixp_ptp_match()
/linux-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c114 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; in pch_ptp_match()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c3517 offset = ETH_HLEN + IPV4_HLEN(skb->data) + UDP_HLEN; in t4_systim_to_hwstamp()