Lines Matching refs:ip6

105 #include <netinet/ip6.h>
966 * pointed to by "ip6" has arrived on (or is about to be sent to) the interface
976 ip6_mforward(ip6, ifp, m)
977 struct ip6_hdr *ip6;
990 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst),
998 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_NODELOCAL(&ip6->ip6_dst) ||
999 IN6_IS_ADDR_MC_LINKLOCAL(&ip6->ip6_dst))
1001 ip6->ip6_hlim--;
1011 if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) {
1018 ip6_sprintf(&ip6->ip6_src),
1019 ip6_sprintf(&ip6->ip6_dst),
1020 ip6->ip6_nxt,
1029 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt);
1055 ip6_sprintf(&ip6->ip6_src),
1056 ip6_sprintf(&ip6->ip6_dst));
1082 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst);
1084 if (IN6_ARE_ADDR_EQUAL(&ip6->ip6_src,
1086 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
1122 sin6.sin6_addr = ip6->ip6_src;
1186 rt->mf6c_origin.sin6_addr = ip6->ip6_src;
1189 rt->mf6c_mcastgrp.sin6_addr = ip6->ip6_dst;
1293 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
1307 #define MC6_SEND(ip6, mifp, m) do { \
1309 register_send((ip6), (mifp), (m)); \
1311 phyint_send((ip6), (mifp), (m)); \
1431 src0 = ip6->ip6_src;
1432 dst0 = ip6->ip6_dst;
1462 MC6_SEND(ip6, mifp, m);
1469 phyint_send(ip6, mifp, m)
1470 struct ip6_hdr *ip6;
1513 /* XXX: ip6_output will override ip6->ip6_hlim */
1514 im6o->im6o_multicast_hlim = ip6->ip6_hlim;
1534 IN6_LOOKUP_MULTI(ip6->ip6_dst, ifp, in6m);
1540 dst6->sin6_addr = ip6->ip6_dst;
1550 dst6->sin6_addr = ip6->ip6_dst;
1589 ip6_sprintf(&ip6->ip6_src),
1590 ip6_sprintf(&ip6->ip6_dst),
1601 register_send(ip6, mif, m)
1602 struct ip6_hdr *ip6;
1615 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst));
1650 addr.sin6_addr = ip6->ip6_src;
1684 struct ip6_hdr *ip6;
1695 ip6 = mtod(m, struct ip6_hdr *);
1728 ip6 = mtod(m, struct ip6_hdr *);
1731 pim = (struct pim *)((caddr_t)ip6 + off);
1782 * headers ip6+pim+u_int32_t+encap_ip6, to be passed up to the
1820 pimlen, ip6_sprintf(&ip6->ip6_src));
1878 * forward the inner ip6 packet; point m_data at the inner ip6.
1913 * encapsulator ip6 header, pim header, register header and the
1914 * encapsulated ip6 header.