Home | History | Annotate | Download | only in libiptc

Lines Matching refs:ipv6

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