Lines Matching defs:ip6
38 #include "ip6.h"
283 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up,
286 return nextproto6_cksum(ip6, (const uint8_t *)(void *)up, len, len,
295 const struct ip6_hdr *ip6;
298 ip6 = (const struct ip6_hdr *)ip;
300 ip6 = NULL;
302 if (ip6) {
303 if (ip6->ip6_nxt == IPPROTO_UDP) {
306 ip6addr_string(ndo, &ip6->ip6_src),
307 ip6addr_string(ndo, &ip6->ip6_dst)));
310 ip6addr_string(ndo, &ip6->ip6_src),
312 ip6addr_string(ndo, &ip6->ip6_dst),
357 register const struct ip6_hdr *ip6;
366 ip6 = (struct ip6_hdr *)bp2;
368 ip6 = NULL;
459 ip6 != NULL);
549 else if (IP_V(ip) == 6 && ip6->ip6_plen) {
552 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr));
583 ip6 != NULL);