Home | History | Annotate | Download | only in netinet6

Lines Matching defs:ip6

67 #include <netinet/ip6.h>
144 ip6flow_hash(const struct ip6_hdr *ip6)
150 src_sum = ip6->ip6_src.s6_addr32[0] + ip6->ip6_src.s6_addr32[1]
151 + ip6->ip6_src.s6_addr32[2] + ip6->ip6_src.s6_addr32[3];
152 dst_sum = ip6->ip6_dst.s6_addr32[0] + ip6->ip6_dst.s6_addr32[1]
153 + ip6->ip6_dst.s6_addr32[2] + ip6->ip6_dst.s6_addr32[3];
155 hash = ip6->ip6_flow;
167 ip6flow_lookup(const struct ip6_hdr *ip6)
174 hash = ip6flow_hash(ip6);
177 if (IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &ip6f->ip6f_dst)
178 && IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &ip6f->ip6f_src)
179 && ip6f->ip6f_flow == ip6->ip6_flow) {
258 struct ip6_hdr *ip6;
295 ip6 = mtod(m, struct ip6_hdr *);
297 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) {
306 if (ip6->ip6_nxt == IPPROTO_HOPOPTS)
312 if ((ip6f = ip6flow_lookup(ip6)) == NULL) {
338 if (ip6->ip6_hlim <= IPV6_HLIMDEC)
342 ip6->ip6_hlim -= IPV6_HLIMDEC;
495 * multiple flows if net.inet6.ip6.maxflows is reduced.
559 const struct ip6_hdr *ip6;
563 ip6 = mtod(m, const struct ip6_hdr *);
570 * It can be disabled by setting net.inet6.ip6.maxflows to 0.
574 if (ip6_maxflows == 0 || ip6->ip6_nxt == IPPROTO_IPV6_ICMP)
588 ip6f = ip6flow_lookup(ip6);
614 ip6f->ip6f_dst = ip6->ip6_dst;
615 ip6f->ip6f_src = ip6->ip6_src;
616 ip6f->ip6f_flow = ip6->ip6_flow;
622 hash = ip6flow_hash(ip6);
658 * sysctl helper routine for net.inet.ip6.maxflows. Since
721 CTLTYPE_NODE, "ip6",