Searched refs:payload_len (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Connectivity/clatd/ |
D | translate.h | 47 void fill_ip_header(struct iphdr *ip_targ, uint16_t payload_len, uint8_t protocol, 49 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol,
|
D | translate.c | 124 void fill_ip_header(struct iphdr *ip, uint16_t payload_len, uint8_t protocol, in fill_ip_header() argument 132 ip->tot_len = htons(sizeof(struct iphdr) + payload_len); in fill_ip_header() 158 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, in fill_ip6_header() argument 163 ip6->ip6_plen = htons(payload_len); in fill_ip6_header()
|
/packages/modules/Connectivity/bpf_progs/ |
D | clatd.c | 96 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_PIPE; in nat64() 116 __u16 tot_len = ntohs(ip6->payload_len) + sizeof(struct iphdr); // cannot overflow, see above in nat64() 379 .payload_len = htons(ntohs(ip4->tot_len) - 20), // __be16
|