Lines Matching refs:ipv6

142 	inet_ntop(AF_INET6, &e->ipv6.src, buf, sizeof buf);  in dump_entry()
145 len = ipv6_prefix_length(&e->ipv6.smsk); in dump_entry()
149 inet_ntop(AF_INET6, &e->ipv6.smsk, buf, sizeof buf); in dump_entry()
155 inet_ntop(AF_INET6, &e->ipv6.dst, buf, sizeof buf); in dump_entry()
158 len = ipv6_prefix_length(&e->ipv6.dmsk); in dump_entry()
162 inet_ntop(AF_INET6, &e->ipv6.dmsk, buf, sizeof buf); in dump_entry()
167 printf("Interface: `%s'/", e->ipv6.iniface); in dump_entry()
169 printf("%c", e->ipv6.iniface_mask[i] ? 'X' : '.'); in dump_entry()
170 printf("to `%s'/", e->ipv6.outiface); in dump_entry()
172 printf("%c", e->ipv6.outiface_mask[i] ? 'X' : '.'); in dump_entry()
173 printf("\nProtocol: %u\n", e->ipv6.proto); in dump_entry()
174 if (e->ipv6.flags & IP6T_F_TOS) in dump_entry()
175 printf("TOS: %u\n", e->ipv6.tos); in dump_entry()
176 printf("Flags: %02X\n", e->ipv6.flags); in dump_entry()
177 printf("Invflags: %02X\n", e->ipv6.invflags); in dump_entry()
212 if (memcmp(&a->ipv6.src, &b->ipv6.src, sizeof(struct in6_addr)) in is_same()
213 || memcmp(&a->ipv6.dst, &b->ipv6.dst, sizeof(struct in6_addr)) in is_same()
214 || memcmp(&a->ipv6.smsk, &b->ipv6.smsk, sizeof(struct in6_addr)) in is_same()
215 || memcmp(&a->ipv6.dmsk, &b->ipv6.dmsk, sizeof(struct in6_addr)) in is_same()
216 || a->ipv6.proto != b->ipv6.proto in is_same()
217 || a->ipv6.tos != b->ipv6.tos in is_same()
218 || a->ipv6.flags != b->ipv6.flags in is_same()
219 || a->ipv6.invflags != b->ipv6.invflags) in is_same()
223 if (a->ipv6.iniface_mask[i] != b->ipv6.iniface_mask[i]) in is_same()
225 if ((a->ipv6.iniface[i] & a->ipv6.iniface_mask[i]) in is_same()
226 != (b->ipv6.iniface[i] & b->ipv6.iniface_mask[i])) in is_same()
228 if (a->ipv6.outiface_mask[i] != b->ipv6.outiface_mask[i]) in is_same()
230 if ((a->ipv6.outiface[i] & a->ipv6.outiface_mask[i]) in is_same()
231 != (b->ipv6.outiface[i] & b->ipv6.outiface_mask[i])) in is_same()
249 unconditional(const struct ip6t_ip6 *ipv6) in unconditional() argument
253 for (i = 0; i < sizeof(*ipv6); i++) in unconditional()
254 if (((char *)ipv6)[i]) in unconditional()
257 return (i == sizeof(*ipv6)); in unconditional()
393 assert(unconditional(&e->ipv6)); in do_check()