/freebsd-current/contrib/tcpdump/ |
H A D | print-ip6.c | 36 #include "ip6.h" 48 const struct ip6_hdr *ip6) 60 cp = (const u_char *)ip6; 62 nh = GET_U_1(ip6->ip6_nxt); 63 dst_addr = (const void *)ip6->ip6_dst; 174 const struct ip6_hdr *ip6, const uint8_t *data, 189 GET_CPY_BYTES(&ph.ph_src, ip6->ip6_src, sizeof(nd_ipv6)); 190 nh = GET_U_1(ip6->ip6_nxt); 204 ip6_finddst(ndo, &ph.ph_dst, ip6); 208 GET_CPY_BYTES(&ph.ph_dst, ip6 47 ip6_finddst(netdissect_options *ndo, nd_ipv6 *dst, const struct ip6_hdr *ip6) argument 173 nextproto6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, const uint8_t *data, u_int len, u_int covlen, uint8_t next_proto) argument 228 const struct ip6_hdr *ip6; local [all...] |
H A D | print-frag6.c | 33 #include "ip6.h" 39 const struct ip6_hdr *ip6; local 43 ip6 = (const struct ip6_hdr *)bp2; 49 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) - 54 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) -
|
/freebsd-current/sys/netinet6/ |
H A D | ip6_forward.c | 67 #include <netinet/ip6.h> 93 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)) { 119 ip6_sprintf(ip6bufs, &ip6->ip6_src), 120 ip6_sprintf(ip6bufd, &ip6->ip6_dst), 121 ip6->ip6_nxt, 132 ip6->ip6_hlim <= IPV6_HLIMDEC) { 153 ip6->ip6_hlim -= IPV6_HLIMDEC; 182 dst.sin6_addr = ip6 [all...] |
H A D | ip6_fastfwd.c | 50 #include <netinet/ip6.h> 96 struct ip6_hdr *ip6; local 104 ip6 = mtod(m, struct ip6_hdr *); 106 ip6->ip6_nxt == IPPROTO_HOPOPTS || 107 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) || 108 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_dst) || 109 IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src) || 110 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) || 111 in6_localip(&ip6->ip6_dst)) 120 plen = ntohs(ip6 [all...] |
H A D | route6.c | 49 #include <netinet/ip6.h> 62 struct ip6_hdr *ip6; local 92 ip6 = mtod(m, struct ip6_hdr *); 93 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); 108 (caddr_t)&rh->ip6r_type - (caddr_t)ip6);
|
H A D | in6_gif.c | 66 #include <netinet/ip6.h> 205 struct ip6_hdr *ip6; local 248 ip6 = malloc(sizeof(*ip6), M_GIF, M_WAITOK | M_ZERO); 249 ip6->ip6_src = src->sin6_addr; 250 ip6->ip6_dst = dst->sin6_addr; 251 ip6->ip6_vfc = IPV6_VERSION; 261 sc->gif_ip6hdr = ip6; 291 struct ip6_hdr *ip6; local 299 ip6 319 struct ip6_hdr *ip6; local 344 const struct ip6_hdr *ip6; local [all...] |
H A D | ip6_input.c | 111 #include <netinet/ip6.h> 139 .nh_name = "ip6", 229 TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal", 231 TUNABLE_INT_FETCH("net.inet6.ip6.accept_rtadv", &V_ip6_accept_rtadv); 232 TUNABLE_INT_FETCH("net.inet6.ip6.no_radr", &V_ip6_no_radr); 400 struct ip6_hdr *ip6; local 412 ip6 = mtod(m, struct ip6_hdr *); 419 if (ip6->ip6_plen == 0 && *plen == 0) { 430 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); 526 struct ip6_hdr *ip6; local 1001 struct ip6_hdr *ip6; local 1133 struct ip6_hdr *ip6; local 1179 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 1377 struct ip6_hdr *ip6; local 1593 struct ip6_hdr *ip6; local 1629 struct ip6_hdr ip6; local [all...] |
H A D | in6_rss.c | 53 #include <netinet/ip6.h> 210 const struct ip6_hdr *ip6; local 243 ip6 = mtod(m, struct ip6_hdr *); 244 proto = ip6->ip6_nxt; 270 ip6f = (const struct ip6_frag *)((c_caddr_t)ip6 + off); 344 th = (const struct tcphdr *)((c_caddr_t)ip6 + off); 345 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, 357 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); 358 return rss_proto_software_hash_v6(&ip6 [all...] |
H A D | send.c | 52 #include <netinet/ip6.h> 113 struct ip6_hdr *ip6; local 143 ip6 = mtod(m, struct ip6_hdr *); 144 icmp6 = (struct icmp6_hdr *)(ip6 + 1); 183 ip6 = mtod(m, struct ip6_hdr *); 184 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) 190 dst.sin6_addr = ip6->ip6_dst; 194 IP_PROBE(send, NULL, NULL, ip6, ifp, NULL, ip6); 277 struct ip6_hdr *ip6; local [all...] |
H A D | nd6_nbr.c | 71 #include <netinet/ip6.h> 130 struct ip6_hdr *ip6; local 147 ip6 = mtod(m, struct ip6_hdr *); 148 if (__predict_false(ip6->ip6_hlim != 255)) { 152 ip6->ip6_hlim, ip6_sprintf(ip6bufs, &ip6->ip6_src), 153 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); 164 ip6 = mtod(m, struct ip6_hdr *); 165 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off); 167 saddr6 = ip6 416 struct ip6_hdr *ip6; local 657 struct ip6_hdr *ip6; local 980 struct ip6_hdr *ip6; local [all...] |
H A D | in6_cksum.c | 67 #include <netinet/ip6.h> 91 _in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument 118 scope = in6_getscope(&ip6->ip6_src); 119 w = (u_int16_t *)&ip6->ip6_src; 126 scope = in6_getscope(&ip6->ip6_dst); 127 w = (u_int16_t *)&ip6->ip6_dst; 137 in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument 142 sum = _in6_cksum_pseudo(ip6, len, nxt, csum); 262 struct ip6_hdr *ip6; local 277 KASSERT(m->m_len >= sizeof(*ip6), [all...] |
H A D | udp6_usrreq.c | 107 #include <netinet/ip6.h> 219 struct ip6_hdr *ip6; member in struct:udp6_multi_match_ctx 235 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ctx->ip6->ip6_dst)) 238 (!IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ctx->ip6->ip6_src) || 272 ctx.ip6 = mtod(m, struct ip6_hdr *); 273 ctx.uh = (struct udphdr *)((char *)ctx.ip6 + off); 293 mcaddr.sin6_addr = ctx.ip6->ip6_dst; 309 UDPLITE_PROBE(receive, NULL, inp, ctx.ip6, 312 UDP_PROBE(receive, NULL, inp, ctx.ip6, inp, 352 struct ip6_hdr *ip6; local 552 struct ip6_hdr *ip6; local 664 struct ip6_hdr *ip6; local [all...] |
H A D | raw_ip6.c | 96 #include <netinet/ip6.h> 151 struct ip6_hdr *ip6; member in struct:rip6_inp_match_ctx 159 struct ip6_hdr *ip6 = c->ip6; local 168 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) 171 !IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ip6->ip6_src)) 186 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 190 struct rip6_inp_match_ctx ctx = { .ip6 = ip6, .proto = proto }; 216 !IN6_IS_ADDR_MULTICAST(&ip6 345 struct ip6_hdr *ip6; local [all...] |
/freebsd-current/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 331 parseipv6(char **cpp, ip6_t *ip6, char **ifn, int *out) argument 336 bzero((char *)ip6, MAX(sizeof(*tcp), sizeof(*ic6)) + sizeof(*ip6)); 339 ip6->ip6_vfc = 0x60; 356 ip6->ip6_nxt = IPPROTO_TCP; 360 ip6->ip6_nxt = IPPROTO_UDP; 364 ip6->ip6_nxt = IPPROTO_ICMPV6; 368 ip6->ip6_nxt = atoi(*cpp); 371 ip6->ip6_nxt = IPPROTO_IPV6; 376 switch (ip6 [all...] |
/freebsd-current/libexec/rc/rc.d/ |
H A D | rtsold | 24 sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1))
|
H A D | netoptions | 98 ${SYSCTL} net.inet6.ip6.v6only=0 >/dev/null 100 ${SYSCTL} net.inet6.ip6.v6only=1 >/dev/null 106 ${SYSCTL} net.inet6.ip6.use_tempaddr=1 >/dev/null 107 ${SYSCTL} net.inet6.ip6.prefer_tempaddr=1 >/dev/null 112 ${SYSCTL} net.inet6.ip6.no_radr=0 >/dev/null 113 ${SYSCTL} net.inet6.ip6.rfc6204w3=0 >/dev/null 118 ${SYSCTL} net.inet6.ip6.no_radr=1 >/dev/null 119 ${SYSCTL} net.inet6.ip6.rfc6204w3=1 >/dev/null
|
/freebsd-current/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 60 #include <netinet/ip6.h> 180 struct ip6_hdr *ip6; local 200 ip6 = mtod(m, struct ip6_hdr *); 201 dst6.sin6_addr = ip6->ip6_dst; 348 * Embed @ia IPv4 address into @ip6 IPv6 address. 352 nat64_embed_ip4(struct in6_addr *ip6, int plen, in_addr_t ia) argument 358 ip6->s6_addr32[plen / 32] = ia; 368 ip6->s6_addr32[1] &= 0xffffffff << (32 - plen % 32); 370 ip6->s6_addr32[1] |= ia >> (plen % 32); 371 ip6 398 nat64_extract_ip4(const struct in6_addr *ip6, int plen) argument 489 nat64_cksum_convert(struct ip6_hdr *ip6, struct ip *ip) argument 509 nat64_init_ip4hdr(const struct ip6_hdr *ip6, const struct ip6_frag *frag, uint16_t plen, uint8_t proto, struct ip *ip) argument 536 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 648 struct ip6_hdr *ip6, *oip6; local 875 nat64_icmp_handle_echo(struct ip6_hdr *ip6, struct icmp6_hdr *icmp6, uint16_t id, uint8_t type) argument 898 nat64_icmp_translate(struct mbuf *m, struct ip6_hdr *ip6, uint16_t icmpid, int offset, struct nat64_config *cfg) argument 1183 struct ip6_hdr *ip6; local 1228 struct ip6_hdr ip6; local 1343 struct ip6_hdr *ip6, *ip6i; local 1565 struct ip6_hdr *ip6; local [all...] |
/freebsd-current/tests/sys/netinet6/frag6/ |
H A D | frag6_08.py | 40 ip6 = packet.getlayer(sp.IPv6) 41 if not ip6: 44 if ip6.dst != oip6.src: 59 ip6 = packet.getlayer(sp.IPv6) 60 if not ip6: 63 if ip6.dst != oip6.src:
|
H A D | frag6_07.py | 40 ip6 = packet.getlayer(sp.IPv6) 41 if not ip6: 44 if ip6.dst != oip6.src: 59 ip6 = packet.getlayer(sp.IPv6) 60 if not ip6: 63 if ip6.dst != oip6.src:
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | jail2.sh | 61 ip6 = 0x0 70 j.ip6 = 0;
|
H A D | jail3.sh | 61 ip6 = 0x0 70 j.ip6 = 0;
|
/freebsd-current/sys/netipsec/ |
H A D | udpencap.c | 46 #include <netinet/ip6.h> 161 struct ip6_hdr *ip6; local 164 ip6 = mtod(m, struct ip6_hdr *); 165 ip6->ip6_nxt = IPPROTO_ESP; 168 dst.sin6.sin6_addr = ip6->ip6_dst; 295 struct ip6_hdr *ip6; local 297 ip6 = mtod(m, struct ip6_hdr *); 298 KASSERT(ip6->ip6_nxt == IPPROTO_ESP, 299 ("unexpected next header type %d", ip6->ip6_nxt)); 300 ip6 388 struct ip6_hdr *ip6; local [all...] |
/freebsd-current/tests/sys/netinet6/ |
H A D | exthdr.py | 40 ip6 = packet.getlayer(sp.IPv6) 41 if not ip6: 44 if ip6.dst != oip6.src: 59 ip6 = packet.getlayer(sp.IPv6) 60 if not ip6: 63 if ip6.dst != oip6.src: 78 ip6 = packet.getlayer(sp.IPv6) 79 if not ip6: 82 if ip6.dst != oip6.src: 245 ip6 [all...] |
/freebsd-current/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 55 #include <netinet/ip6.h> 113 struct ip6_hdr *ip6; local 120 ip6 = mtodo(m, hlen); 121 hlen += sizeof(*ip6); 122 proto = ip6->ip6_nxt; 140 struct ip6_hdr *ip6; local 167 if (offset + sizeof(*ip6) > m->m_pkthdr.len) 169 if (offset + sizeof(*ip6) > m->m_len) 170 *mp = m = m_pullup(m, offset + sizeof(*ip6)); 173 ip6 231 struct ip6_hdr *ip6; local 289 struct ip6_hdr *ip6; local 350 struct ip6_hdr *ip6; local [all...] |
/freebsd-current/sys/netinet/ |
H A D | in_kdtrace.h | 90 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_total); 91 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_tooshort); 92 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_toosmall); 93 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragments); 94 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragdropped); 95 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragtimeout); 96 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_fragoverflow); 97 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_forward); 98 SDT_PROBE_DECLARE(mib, ip6, count, ip6s_cantforward); 99 SDT_PROBE_DECLARE(mib, ip6, coun [all...] |