Searched refs:UDP_HLEN (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/tools/testing/selftests/net/ |
D | ip_defrag.c | 31 #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.1.9/net/core/ |
D | ptp_classifier.c | 119 ptr += IPV4_HLEN(ptr) + UDP_HLEN; in ptp_parse_header() 122 ptr += IP6_HLEN + UDP_HLEN; in ptp_parse_header()
|
/linux-6.1.9/include/linux/ |
D | ptp_classify.h | 51 #define UDP_HLEN 8 macro
|
/linux-6.1.9/drivers/net/phy/mscc/ |
D | mscc_ptp.c | 368 return (struct vsc85xx_ptphdr *)(((unsigned char *)udphdr) + UDP_HLEN); in get_ptp_header_l4()
|
/linux-6.1.9/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 286 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; in ixp_ptp_match()
|
/linux-6.1.9/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 114 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; in pch_ptp_match()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 3517 offset = ETH_HLEN + IPV4_HLEN(skb->data) + UDP_HLEN; in t4_systim_to_hwstamp()
|