/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_osfp.c | 39 #include <netinet/ip6.h> 74 struct ip6_hdr *ip6; local 83 ip6 = (struct ip6_hdr *)NULL; 86 ip6 = mtod(m, struct ip6_hdr *); 91 return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr)); 95 pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp) argument 123 else if (ip6) { 125 fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); 126 fp.fp_ttl = ip6->ip6_hlim; 129 ip6_sprintf(srcname, (const struct in6_addr *)&ip6 [all...] |
/freebsd-11-stable/sys/netinet6/ |
H A D | mld6.c | 92 #include <netinet/ip6.h> 627 mld_v1_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6, argument 652 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 654 ip6_sprintf(ip6tbuf, &ip6->ip6_src), 670 dst = ip6->ip6_dst; 805 mld_v2_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6, argument 824 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { 826 ip6_sprintf(ip6tbuf, &ip6->ip6_src), 1091 mld_v1_input_report(struct ifnet *ifp, const struct ip6_hdr *ip6, argument 1115 src = ip6 1243 struct ip6_hdr *ip6; local 1784 struct ip6_hdr *ip6; local 3057 struct ip6_hdr *ip6; local 3165 struct ip6_hdr *ip6; local [all...] |
H A D | dest6.c | 55 #include <netinet/ip6.h>
|
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_rcmd_pxy.c | 159 ip6_t *ip6; local 172 ip6 = (ip6_t *)fin->fin_ip; 263 slen = ip6->ip6_plen; 264 ip6->ip6_plen = htons(sizeof(*tcp)); 318 ip6->ip6_plen = slen;
|
/freebsd-11-stable/sys/netipsec/ |
H A D | xform_ah.c | 60 #include <netinet/ip6.h> 111 static unsigned char ipseczeroes[256]; /* larger than an ip6 extension hdr */ 288 struct ip6_hdr ip6; local 420 m_copydata(m, 0, sizeof(ip6), (caddr_t) &ip6); 423 if (ip6.ip6_plen == 0) { 429 ip6.ip6_flow = 0; 430 ip6.ip6_hlim = 0; 431 ip6.ip6_vfc &= ~IPV6_VERSION_MASK; 432 ip6 [all...] |
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | dn_sched_fq_codel.c | 53 #include <netinet/ip6.h> 223 struct ip6_hdr *ip6; local 228 ip6 = (struct ip6_hdr *)ip; 229 *((uint8_t *) &tuple[0]) = ip6->ip6_nxt; 231 memcpy(&tuple[5], ip6->ip6_src.s6_addr, 16); 232 memcpy(&tuple[21], ip6->ip6_dst.s6_addr, 16); 234 switch (ip6->ip6_nxt) { 236 th = (struct tcphdr *)(ip6 + 1); 242 uh = (struct udphdr *)(ip6 + 1);
|
/freebsd-11-stable/sys/netinet/ |
H A D | tcp_hostcache.c | 95 #include <netinet/ip6.h> 178 #define HOSTCACHE_HASH6(ip6) \ 179 (((ip6)->s6_addr32[0] ^ \ 180 (ip6)->s6_addr32[1] ^ \ 181 (ip6)->s6_addr32[2] ^ \ 182 (ip6)->s6_addr32[3]) & \ 315 if (memcmp(&inc->inc6_faddr, &hc_entry->ip6, 410 hc_entry->ip6 = inc->inc6_faddr; 666 ip6_sprintf(ip6buf, &hc_entry->ip6),
|
H A D | tcp_timewait.c | 72 #include <netinet/ip6.h> 561 struct ip6_hdr *ip6 = NULL; local 580 ip6 = mtod(m, struct ip6_hdr *); 581 th = (struct tcphdr *)(ip6 + 1); 582 tcpip_fillheaders(inp, ip6, th); 624 th->th_sum = in6_cksum_pseudo(ip6, 626 ip6->ip6_hlim = in6_selecthlim(inp, NULL); 627 TCP_PROBE5(send, NULL, NULL, ip6, NULL, th);
|
H A D | ip_carp.c | 80 #include <netinet/ip6.h> 540 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local 561 if (ip6->ip6_hlim != CARP_DFLTTL) { 564 ip6->ip6_hlim, m->m_pkthdr.rcvif->if_xname); 883 struct ip6_hdr *ip6; local 890 len = sizeof(*ip6) + sizeof(ch); 896 ip6 = mtod(m, struct ip6_hdr *); 897 bzero(ip6, sizeof(*ip6)); 898 ip6 [all...] |
H A D | ip_ecn.c | 52 #include <netinet/ip6.h>
|
H A D | ip_encap.c | 41 * mobile-ip6 (uses RFC2473) 87 #include <netinet/ip6.h> 206 struct ip6_hdr *ip6; local 213 ip6 = mtod(m, struct ip6_hdr *); 218 s.sin6_addr = ip6->ip6_src; 222 d.sin6_addr = ip6->ip6_dst;
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-sctp.c | 48 #include "ip6.h" 501 const struct ip6_hdr *ip6; local 523 ip6 = (const struct ip6_hdr *)bp2; 525 ip6 = NULL; 527 if (ip6) { 529 ip6addr_string(ndo, &ip6->ip6_src), 531 ip6addr_string(ndo, &ip6->ip6_dst),
|
H A D | print-nfs.c | 41 #include "ip6.h" 206 const struct ip6_hdr *ip6; local 217 ip6 = (const struct ip6_hdr *)bp; 218 strlcpy(srcaddr, ip6addr_string(ndo, &ip6->ip6_src), 220 strlcpy(dstaddr, ip6addr_string(ndo, &ip6->ip6_dst), 870 const struct ip6_hdr *ip6 = NULL; local 880 ip6 = (const struct ip6_hdr *)bp; 897 else if (ip6) { 899 UNALIGNED_MEMCPY(&xmep->client, &ip6->ip6_src, sizeof(ip6 919 const struct ip6_hdr *ip6 = (const struct ip6_hdr *)bp; local [all...] |
/freebsd-11-stable/sys/netgraph/netflow/ |
H A D | ng_netflow.c | 60 #include <netinet/ip6.h> 595 struct ip6_hdr *ip6 = NULL; local 719 ip6 = (struct ip6_hdr *)(eh + 1); 740 ip6 = (struct ip6_hdr *)(evh + 1); 762 ip6 = mtod(m, struct ip6_hdr *); 813 } else if (ip6 != NULL) { 814 int cur = ip6->ip6_nxt, hdr_off = 0; 825 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) 906 else if (ip6 != NULL) 907 ip6 [all...] |
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/ |
H A D | t_icmp6_redirect.sh | 81 net.inet6.ip6.forwarding=1 105 net.inet6.ip6.forwarding=1
|
/freebsd-11-stable/contrib/netbsd-tests/net/net/ |
H A D | t_mtudisc6.sh | 119 atf_check -s exit:0 rump.sysctl -w -q net.inet6.ip6.forwarding=1 147 rump.sysctl -w -q net.inet6.ip6.maxfragpackets=0
|
/freebsd-11-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.h | 155 void nat64_embed_ip4(struct in6_addr *ip6, int plen, in_addr_t ia); 156 in_addr_t nat64_extract_ip4(const struct in6_addr *ip6, int plen);
|
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_checksum.c | 49 #include <netinet/ip6.h> 419 struct ip6_hdr *ip6; local 429 ip6 = (struct ip6_hdr *) mtodo(m, l3_offset); 431 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) 435 plen = ntohs(ip6->ip6_plen) + hlen; 440 nxt = ip6->ip6_nxt; 487 th->th_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); 507 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0);
|
/freebsd-11-stable/sys/net/altq/ |
H A D | altq_subr.c | 57 #include <netinet/ip6.h> 811 struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr; local 814 flowlabel = ntohl(ip6->ip6_flow); 871 struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr; local 874 flowlabel = ntohl(ip6->ip6_flow); 878 ip6->ip6_flow = htonl(flowlabel); 1097 struct ip6_hdr *ip6; local 1099 ip6 = mtod(m, struct ip6_hdr *); 1106 fin6->fi6_proto = ip6->ip6_nxt; 1107 fin6->fi6_tclass = (ntohl(ip6 [all...] |
H A D | altq_red.c | 91 #include <netinet/ip6.h> 578 struct ip6_hdr *ip6 = hdr; local 581 flowlabel = ntohl(ip6->ip6_flow); 594 ip6->ip6_flow = htonl(flowlabel); 1161 struct ip6_hdr *ip6; local 1194 ip6 = (struct ip6_hdr *)pktattr->pattr_hdr; 1204 &ip6->ip6_src) && 1206 &ip6->ip6_dst)) 1229 struct ip6_hdr *ip6; local 1246 ip6 [all...] |
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ncpaddr.h | 46 } ip6; member in union:ncprange::__anon8882
|
/freebsd-11-stable/sys/net/ |
H A D | if_gif.c | 83 #include <netinet/ip6.h> 343 struct ip6_hdr *ip6; local 403 ip6 = mtod(m, struct ip6_hdr *); 405 ECN_NOCARE, &t, &ip6->ip6_flow); 518 struct ip6_hdr *ip6; local 558 ip6 = mtod(m, struct ip6_hdr *); 560 ECN_NOCARE, &t, &ip6->ip6_flow) == 0) { 962 struct ip6_hdr *ip6; local 1011 hdr = ip6 = malloc(sizeof(struct ip6_hdr), M_GIF, 1013 ip6 [all...] |
H A D | flowtable.c | 73 #include <netinet/ip6.h> 296 struct ip6_hdr *ip6; local 309 ip6 = mtod(m, struct ip6_hdr *); 310 if (in6_localaddr(&ip6->ip6_dst)) 317 proto = ip6->ip6_nxt; 328 ulp = ip6; 386 bcopy(&ip6->ip6_dst, &key[0], sizeof(struct in6_addr)); 387 bcopy(&ip6->ip6_src, &key[4], sizeof(struct in6_addr)); 394 bcopy(&ip6->ip6_dst, &key[0], sizeof(struct in6_addr)); 405 bcopy(&ip6 [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | routing | 289 ${SYSCTL} net.inet6.ip6.use_defaultzone=1 > /dev/null 386 ${SYSCTL} net.inet6.ip6.forwarding=1 > /dev/null 388 ${SYSCTL} net.inet6.ip6.forwarding=0 > /dev/null
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_rx.c | 133 struct ip6_hdr *ip6 = NULL; local 156 ip6 = (struct ip6_hdr *)(eh + 1); 157 th = (struct tcphdr *)(ip6 + 1); 203 ip6->ip6_hlim = cqe->lro_min_ttl; 204 ip6->ip6_plen = cpu_to_be16(tot_len -
|