Lines Matching defs:protocol
119 next_off = sizeof(struct iphdr) + offsetof(struct iphdr, protocol);
121 next_off = offsetof(struct iphdr, protocol);
199 uint16_t protocol;
205 uint16_t protocol;
215 ph6.protocol = htons(IPPROTO_TCP);
224 ph4.protocol = htons(IPPROTO_TCP);
250 static void fill_networklayer(void *buf, int payload_len, int protocol)
260 ip6h->nexthdr = protocol;
272 iph->protocol = protocol;
968 * Packet sockets are protocol agnostic, and will not trim the padding.