/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-ip6.c | 36 #include "ip6.h" 48 const struct ip6_hdr *ip6) 59 cp = (const u_char *)ip6; 61 nh = ip6->ip6_nxt; 62 dst_addr = &ip6->ip6_dst; 164 const struct ip6_hdr *ip6, const uint8_t *data, 178 UNALIGNED_MEMCPY(&ph.ph_src, &ip6->ip6_src, sizeof (struct in6_addr)); 179 switch (ip6->ip6_nxt) { 192 ip6_finddst(ndo, &ph.ph_dst, ip6); 196 UNALIGNED_MEMCPY(&ph.ph_dst, &ip6 47 ip6_finddst(netdissect_options *ndo, struct in6_addr *dst, const struct ip6_hdr *ip6) argument 163 nextproto6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, const uint8_t *data, u_int len, u_int covlen, u_int next_proto) argument 216 register const struct ip6_hdr *ip6; local [all...] |
H A D | print-frag6.c | 33 #include "ip6.h" 39 register const struct ip6_hdr *ip6; local 42 ip6 = (const struct ip6_hdr *)bp2; 50 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - 55 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
|
H A D | print-sunrpc.c | 60 #include "ip6.h" 173 register const struct ip6_hdr *ip6; local 197 ip6 = (const struct ip6_hdr *)bp2; 199 ip6addr_string(ndo, &ip6->ip6_src), srcid, 200 ip6addr_string(ndo, &ip6->ip6_dst), dstid, length));
|
/freebsd-11-stable/etc/rc.d/ |
H A D | rtsold | 23 sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1))
|
H A D | netoptions | 99 ${SYSCTL} net.inet6.ip6.v6only=0 >/dev/null 101 ${SYSCTL} net.inet6.ip6.v6only=1 >/dev/null 107 ${SYSCTL} net.inet6.ip6.use_tempaddr=1 >/dev/null 108 ${SYSCTL} net.inet6.ip6.prefer_tempaddr=1 >/dev/null 113 ${SYSCTL} net.inet6.ip6.no_radr=0 >/dev/null 114 ${SYSCTL} net.inet6.ip6.rfc6204w3=0 >/dev/null 119 ${SYSCTL} net.inet6.ip6.no_radr=1 >/dev/null 120 ${SYSCTL} net.inet6.ip6.rfc6204w3=1 >/dev/null
|
H A D | ipfw | 106 if ! ${SYSCTL} net.inet6.ip6.fw.enable=1 >/dev/null 2>&1 121 ${SYSCTL} net.inet6.ip6.fw.enable=0 >/dev/null 138 status=$((${status} + $(sysctl -i -n net.inet6.ip6.fw.enable)))
|
/freebsd-11-stable/sys/netinet6/ |
H A D | route6.c | 49 #include <netinet/ip6.h> 62 struct ip6_hdr *ip6; local 82 ip6 = mtod(m, struct ip6_hdr *); 83 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); 85 ip6 = mtod(m, struct ip6_hdr *); 106 (caddr_t)&rh->ip6r_type - (caddr_t)ip6);
|
H A D | ip6_fastfwd.c | 50 #include <netinet/ip6.h> 91 struct ip6_hdr *ip6; local 99 ip6 = mtod(m, struct ip6_hdr *); 101 ip6->ip6_nxt == IPPROTO_HOPOPTS || 102 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || 103 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) || 104 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src) || 105 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) || 106 in6_localip(&ip6->ip6_dst)) 115 plen = ntohs(ip6 [all...] |
H A D | ip6_forward.c | 64 #include <netinet/ip6.h> 89 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 111 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || 112 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) { 120 ip6_sprintf(ip6bufs, &ip6->ip6_src), 121 ip6_sprintf(ip6bufd, &ip6->ip6_dst), 122 ip6->ip6_nxt, 133 ip6->ip6_hlim <= IPV6_HLIMDEC) { 153 ip6->ip6_hlim -= IPV6_HLIMDEC; 172 dst->sin6_addr = ip6 [all...] |
H A D | in6_gif.c | 65 #include <netinet/ip6.h> 104 struct ip6_hdr *ip6; local 126 ip6 = mtod(m, struct ip6_hdr *); 133 bcopy(sc->gif_ip6hdr, ip6, sizeof(struct ip6_hdr)); 136 ip6->ip6_flow |= htonl((uint32_t)ecn << 20); 137 ip6->ip6_nxt = proto; 138 ip6->ip6_hlim = V_ip6_gif_hlim; 153 struct ip6_hdr *ip6; local 164 ip6 = mtod(m, struct ip6_hdr *); 165 ecn = (ntohl(ip6 182 const struct ip6_hdr *ip6; local [all...] |
H A D | ip6_input.c | 110 #include <netinet/ip6.h> 133 .nh_name = "ip6", 218 TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal", 220 TUNABLE_INT_FETCH("net.inet6.ip6.accept_rtadv", &V_ip6_accept_rtadv); 221 TUNABLE_INT_FETCH("net.inet6.ip6.no_radr", &V_ip6_no_radr); 409 struct ip6_hdr *ip6; local 421 ip6 = mtod(m, struct ip6_hdr *); 428 if (ip6->ip6_plen == 0 && *plen == 0) { 439 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); 544 struct ip6_hdr *ip6; local 1035 struct ip6_hdr *ip6; local 1167 struct ip6_hdr *ip6; local 1214 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1358 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1667 struct ip6_hdr *ip6; local 1703 struct ip6_hdr ip6; local [all...] |
H A D | in6_rss.c | 61 #include <netinet/ip6.h> 174 const struct ip6_hdr *ip6; local 207 ip6 = mtod(m, struct ip6_hdr *); 208 proto = ip6->ip6_nxt; 234 ip6f = (const struct ip6_frag *)((c_caddr_t)ip6 + off); 308 th = (const struct tcphdr *)((c_caddr_t)ip6 + off); 309 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, 321 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); 322 return rss_proto_software_hash_v6(&ip6 [all...] |
H A D | send.c | 53 #include <netinet/ip6.h> 114 struct ip6_hdr *ip6; local 142 ip6 = mtod(m, struct ip6_hdr *); 143 icmp6 = (struct icmp6_hdr *)(ip6 + 1); 178 ip6 = mtod(m, struct ip6_hdr *); 179 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) 185 dst.sin6_addr = ip6->ip6_dst; 189 IP_PROBE(send, NULL, NULL, ip6, ifp, NULL, ip6); 262 struct ip6_hdr *ip6; local [all...] |
H A D | ip6_gre.c | 59 #include <netinet/ip6.h> 88 struct ip6_hdr *ip6; local 114 ip6 = mtod(m, struct ip6_hdr *); 115 if (!IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_src, &ip6->ip6_dst) || 116 !IN6_ARE_ADDR_EQUAL(&sc->gre_oip6.ip6_dst, &ip6->ip6_src))
|
H A D | in6_cksum.c | 70 #include <netinet/ip6.h> 84 _in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument 111 scope = in6_getscope(&ip6->ip6_src); 112 w = (u_int16_t *)&ip6->ip6_src; 119 scope = in6_getscope(&ip6->ip6_dst); 120 w = (u_int16_t *)&ip6->ip6_dst; 130 in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument 138 sum = _in6_cksum_pseudo(ip6, len, nxt, csum); 154 struct ip6_hdr *ip6; local 190 ip6 [all...] |
H A D | nd6_nbr.c | 73 #include <netinet/ip6.h> 122 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 124 struct in6_addr saddr6 = ip6->ip6_src; 125 struct in6_addr daddr6 = ip6->ip6_dst; 147 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off); 155 ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */ 160 if (ip6->ip6_hlim != 255) { 163 ip6->ip6_hlim, ip6_sprintf(ip6bufs, &ip6->ip6_src), 164 ip6_sprintf(ip6bufd, &ip6 406 struct ip6_hdr *ip6; local 615 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 936 struct ip6_hdr *ip6; local [all...] |
H A D | udp6_usrreq.c | 107 #include <netinet/ip6.h> 195 struct ip6_hdr *ip6; local 212 ip6 = mtod(m, struct ip6_hdr *); 213 uh = (struct udphdr *)((caddr_t)ip6 + off); 218 ip6 = mtod(m, struct ip6_hdr *); 229 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); 264 uh_sum = in6_cksum_pseudo(ip6, ulen, nxt, 282 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { 315 &ip6 498 struct ip6_hdr *ip6; local 648 struct ip6_hdr *ip6; local [all...] |
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | ipft_tx.c | 342 int parseipv6(cpp, ip6, ifn, out) 344 ip6_t *ip6; 351 bzero((char *)ip6, MAX(sizeof(*tcp), sizeof(*ic6)) + sizeof(*ip6)); 354 ip6->ip6_vfc = 0x60; 371 ip6->ip6_nxt = IPPROTO_TCP; 375 ip6->ip6_nxt = IPPROTO_UDP; 379 ip6->ip6_nxt = IPPROTO_ICMPV6; 383 ip6->ip6_nxt = atoi(*cpp); 386 ip6 [all...] |
/freebsd-11-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 57 #include <netinet/ip6.h> 153 struct ip6_hdr *ip6; local 171 ip6 = mtod(m, struct ip6_hdr *); 172 dst6.sin6_addr = ip6->ip6_dst; 318 * Embed @ia IPv4 address into @ip6 IPv6 address. 322 nat64_embed_ip4(struct in6_addr *ip6, int plen, in_addr_t ia) argument 328 ip6->s6_addr32[plen / 32] = ia; 338 ip6->s6_addr32[1] &= 0xffffffff << (32 - plen % 32); 340 ip6->s6_addr32[1] |= ia >> (plen % 32); 341 ip6 368 nat64_extract_ip4(const struct in6_addr *ip6, int plen) argument 459 nat64_cksum_convert(struct ip6_hdr *ip6, struct ip *ip) argument 479 nat64_init_ip4hdr(const struct ip6_hdr *ip6, const struct ip6_frag *frag, uint16_t plen, uint8_t proto, struct ip *ip) argument 507 nat64_fragment6(struct nat64_counters *stats, struct ip6_hdr *ip6, struct mbufq *mq, struct mbuf *m, uint32_t mtu, uint16_t ip_id, uint16_t ip_off) argument 624 struct ip6_hdr *ip6, *oip6; local 821 nat64_icmp_handle_echo(struct ip6_hdr *ip6, struct icmp6_hdr *icmp6, uint16_t id, uint8_t type) argument 844 nat64_icmp_translate(struct mbuf *m, struct ip6_hdr *ip6, uint16_t icmpid, int offset, struct nat64_config *cfg) argument 1129 struct ip6_hdr *ip6; local 1174 struct ip6_hdr ip6; local 1289 struct ip6_hdr *ip6, *ip6i; local 1511 struct ip6_hdr *ip6; local [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | uipc_mbufhash.c | 41 #include <netinet/ip6.h> 76 struct ip6_hdr ip6; member in union:__anon6 87 const struct ip6_hdr *ip6; local 153 ip6 = m_ether_tcpip_hash_gethdr(m, off, sizeof(*ip6), &buf); 154 if (ip6 == NULL) 157 p = fnv_32_buf(&ip6->ip6_src, sizeof(struct in6_addr), p); 158 p = fnv_32_buf(&ip6->ip6_dst, sizeof(struct in6_addr), p); 164 flow = ip6->ip6_flow & IPV6_FLOWLABEL_MASK;
|
/freebsd-11-stable/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 56 #include <netinet/ip6.h> 112 struct ip6_hdr *ip6; local 119 ip6 = mtodo(m, hlen); 120 hlen += sizeof(*ip6); 121 proto = ip6->ip6_nxt; 139 struct ip6_hdr *ip6; local 166 if (offset + sizeof(*ip6) > m->m_pkthdr.len) 168 if (offset + sizeof(*ip6) > m->m_len) 169 *mp = m = m_pullup(m, offset + sizeof(*ip6)); 172 ip6 230 struct ip6_hdr *ip6; local 288 struct ip6_hdr *ip6; local 349 struct ip6_hdr *ip6; local [all...] |
/freebsd-11-stable/sys/netipsec/ |
H A D | subr_ipsec.c | 50 #include <netinet/ip6.h> 98 const struct ip6_hdr *ip6; local 100 if (m->m_len >= sizeof(*ip6)) 101 ip6 = mtod(m, const struct ip6_hdr *); 104 ip6 = &ip6buf; 110 bcopy(&ip6->ip6_src, &src->sin6.sin6_addr, sizeof(ip6->ip6_src)); 111 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 113 src->sin6.sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]); 119 bcopy(&ip6 [all...] |
H A D | ipsec_output.c | 63 #include <netinet/ip6.h> 414 struct ip6_hdr *ip6; local 438 ip6 = mtod(m, struct ip6_hdr *); 444 sin6->sin6_addr = ip6->ip6_src; 445 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 449 ntohs(ip6->ip6_src.s6_addr16[1]); 457 sin6->sin6_addr = ip6->ip6_dst; 458 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { 462 ntohs(ip6->ip6_dst.s6_addr16[1]); 502 struct ip6_hdr *ip6; local 861 struct ip6_hdr *ip6; local [all...] |
/freebsd-11-stable/sys/netinet/ |
H A D | tcp_debug.h | 50 struct ip6_hdr ip6; member in struct:tcp_debug::__anon12757
|
/freebsd-11-stable/contrib/ldns/ |
H A D | higher.c | 33 uint8_t ip6; local 46 ip6 = ldns_resolver_ip6(res); /* we use INET_ANY here, save 84 ldns_resolver_set_ip6(res, ip6); 159 bool ip6; local 166 ip6 = false; 203 /* ip6 */ 205 ip6 = true; 211 ip6 = false; 220 if (ip6) {
|