Lines Matching defs:ip6
49 #include "ip6.h"
294 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up,
297 return (nextproto6_cksum(ip6, (const u_int8_t *)(void *)up, len,
306 const struct ip6_hdr *ip6;
309 ip6 = (const struct ip6_hdr *)ip;
311 ip6 = NULL;
313 if (ip6) {
314 if (ip6->ip6_nxt == IPPROTO_UDP) {
317 ip6addr_string(&ip6->ip6_src),
318 ip6addr_string(&ip6->ip6_dst));
321 ip6addr_string(&ip6->ip6_src),
323 ip6addr_string(&ip6->ip6_dst),
368 register const struct ip6_hdr *ip6;
377 ip6 = (struct ip6_hdr *)bp2;
379 ip6 = NULL;
467 ip6 != NULL);
555 else if (IP_V(ip) == 6 && ip6->ip6_plen) {
558 sum = udp6_cksum(ip6, up, length + sizeof(struct udphdr));
589 ip6 != NULL);