Lines Matching defs:ip6h
252 struct ipv6hdr *ip6h = buf;
256 memset(ip6h, 0, sizeof(*ip6h));
258 ip6h->version = 6;
259 ip6h->payload_len = htons(sizeof(struct tcphdr) + payload_len);
260 ip6h->nexthdr = protocol;
261 ip6h->hop_limit = 8;
262 if (inet_pton(AF_INET6, addr6_src, &ip6h->saddr) != 1)
264 if (inet_pton(AF_INET6, addr6_dst, &ip6h->daddr) != 1)
418 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN);
440 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen);
832 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN);
843 ip6h->priority = 0xf;
875 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buf + ETH_HLEN);
890 ip6h->nexthdr = IPPROTO_FRAGMENT;
891 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen);
933 struct ipv6hdr *ip6h = (struct ipv6hdr *)(buffer + ETH_HLEN);
956 else if (ip6h->version == 6 && ip6h->nexthdr != IPPROTO_TCP)