Searched refs:ip6 (Results 51 - 75 of 264) sorted by relevance

1234567891011

/freebsd-11-stable/sys/netpfil/pf/
H A Dpf_osfp.c39 #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 Dmld6.c92 #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 Ddest6.c55 #include <netinet/ip6.h>
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_rcmd_pxy.c159 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 Dxform_ah.c60 #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 Ddn_sched_fq_codel.c53 #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 Dtcp_hostcache.c95 #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 Dtcp_timewait.c72 #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 Dip_carp.c80 #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 Dip_ecn.c52 #include <netinet/ip6.h>
H A Dip_encap.c41 * 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 Dprint-sctp.c48 #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 Dprint-nfs.c41 #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 Dng_netflow.c60 #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 Dt_icmp6_redirect.sh81 net.inet6.ip6.forwarding=1
105 net.inet6.ip6.forwarding=1
/freebsd-11-stable/contrib/netbsd-tests/net/net/
H A Dt_mtudisc6.sh119 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 Dnat64_translate.h155 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 Dng_checksum.c49 #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 Daltq_subr.c57 #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 Daltq_red.c91 #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 Dncpaddr.h46 } ip6; member in union:ncprange::__anon8882
/freebsd-11-stable/sys/net/
H A Dif_gif.c83 #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 Dflowtable.c73 #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 Drouting289 ${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 Dmlx5_en_rx.c133 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 -

Completed in 170 milliseconds

1234567891011