Home
last modified time | relevance | path

Searched refs:ip6 (Results 1 – 25 of 80) sorted by relevance

1234

/dragonfly/sys/netinet6/
H A Din6_gif.c104 struct ip6_hdr *ip6; in in6_gif_output() local
135 struct ip6_hdr *ip6; in in6_gif_output() local
166 ip6->ip6_flow = 0; in in6_gif_output()
168 ip6->ip6_vfc |= IPV6_VERSION; in in6_gif_output()
170 ip6->ip6_nxt = proto; in in6_gif_output()
171 ip6->ip6_hlim = ip6_gif_hlim; in in6_gif_output()
238 struct ip6_hdr *ip6; in in6_gif_input() local
252 otos = ip6->ip6_flow; in in6_gif_input()
279 struct ip6_hdr *ip6; in in6_gif_input() local
362 struct ip6_hdr ip6; in gif_encapcheck6() local
[all …]
H A Dip6_forward.c112 ip6_sprintf(&ip6->ip6_src), in ip6_forward()
113 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
114 ip6->ip6_nxt, in ip6_forward()
127 ip6->ip6_hlim -= IPV6_HLIMDEC; in ip6_forward()
172 dst->sin6_addr = ip6->ip6_dst; in ip6_forward()
207 ip6_sprintf(&ip6->ip6_src), in ip6_forward()
209 ip6->ip6_nxt, in ip6_forward()
304 ip6_sprintf(&ip6->ip6_src), in ip6_forward()
305 ip6_sprintf(&ip6->ip6_dst), in ip6_forward()
319 in6_clearscope(&ip6->ip6_src); in ip6_forward()
[all …]
H A Dip6_input.c206 struct ip6_hdr *ip6; in ip6_input() local
293 odst = ip6->ip6_dst; in ip6_input()
585 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); in ip6_input()
622 nxt = ip6->ip6_nxt; in ip6_input()
884 struct ip6_hdr *ip6; in ip6_process_hopopts() local
1016 struct ip6_hdr *ip6; in ip6_unknown_opt() local
1143 ip6->ip6_nxt); in ip6_savecontrol()
1431 nxt = ip6->ip6_nxt; in ip6_get_prevhdr()
1462 struct ip6_hdr ip6; in ip6_nexthdr() local
1476 m_copydata(m, off, sizeof(ip6), &ip6); in ip6_nexthdr()
[all …]
H A Dnd6_nbr.c143 ip6->ip6_hlim, ip6_sprintf(&ip6->ip6_src), in nd6_ns_input()
412 struct ip6_hdr *ip6; in nd6_ns_output() local
452 ip6->ip6_flow = 0; in nd6_ns_output()
457 ip6->ip6_hlim = 255; in nd6_ns_output()
459 ip6->ip6_dst = *daddr6; in nd6_ns_output()
511 bzero(&ip6->ip6_src, sizeof(ip6->ip6_src)); in nd6_ns_output()
594 ip6->ip6_hlim, ip6_sprintf(&ip6->ip6_src), in nd6_na_input()
889 struct ip6_hdr *ip6; in nd6_na_output() local
926 ip6->ip6_flow = 0; in nd6_na_output()
930 ip6->ip6_hlim = 255; in nd6_na_output()
[all …]
H A Dfrag6.c157 struct ip6_hdr *ip6; in frag6_input() local
194 dst->sin6_addr = ip6->ip6_dst; in frag6_input()
206 if (ip6->ip6_plen == 0) { in frag6_input()
283 q6->ip6q_src = ip6->ip6_src; in frag6_input()
284 q6->ip6q_dst = ip6->ip6_dst; in frag6_input()
471 ip6->ip6_src = q6->ip6q_src; in frag6_input()
472 ip6->ip6_dst = q6->ip6q_dst; in frag6_input()
482 bcopy((caddr_t)ip6, (caddr_t)ip6 + sizeof(struct ip6_frag), in frag6_input()
564 struct ip6_hdr *ip6; in frag6_freef() local
570 ip6->ip6_src = q6->ip6q_src; in frag6_freef()
[all …]
H A Dip6_mroute.c955 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst), in ip6_mforward()
963 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) || in ip6_mforward()
966 ip6->ip6_hlim--; in ip6_mforward()
984 ip6->ip6_nxt, in ip6_mforward()
994 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt); in ip6_mforward()
1050 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst); in ip6_mforward()
1437 &ip6->ip6_dst, in ip6_mdq()
1440 &ip6->ip6_src, in ip6_mdq()
1451 MC6_SEND(ip6, mifp, m); in ip6_mdq()
1576 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst)); in register_send()
[all …]
H A Dudp6_output.c118 struct ip6_hdr *ip6; in udp6_output() local
235 ip6 = mtod(m, struct ip6_hdr *); in udp6_output()
236 ip6->ip6_flow = in6p->in6p_flowinfo & IPV6_FLOWINFO_MASK; in udp6_output()
237 ip6->ip6_vfc &= ~IPV6_VERSION_MASK; in udp6_output()
238 ip6->ip6_vfc |= IPV6_VERSION; in udp6_output()
240 ip6->ip6_plen = htons((u_short)plen); in udp6_output()
242 ip6->ip6_nxt = IPPROTO_UDP; in udp6_output()
243 ip6->ip6_hlim = in6_selecthlim(in6p, in udp6_output()
246 ip6->ip6_src = *laddr; in udp6_output()
247 ip6->ip6_dst = *faddr; in udp6_output()
H A Draw_ip6.c151 if (in6_cksum(m, ip6->ip6_nxt, *offp, in rip6_input()
275 struct ip6_hdr *ip6; in rip6_output() local
326 M_PREPEND(m, sizeof(*ip6), M_WAITOK); in rip6_output()
327 ip6 = mtod(m, struct ip6_hdr *); in rip6_output()
332 ip6->ip6_dst = *dst; in rip6_output()
362 ip6->ip6_dst.s6_addr16[1] = in rip6_output()
380 ip6->ip6_src = *in6a; in rip6_output()
384 ip6->ip6_flow = (ip6->ip6_flow & ~IPV6_FLOWINFO_MASK) | in rip6_output()
386 ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) | in rip6_output()
389 ip6->ip6_nxt = in6p->in6p_ip6_nxt; in rip6_output()
[all …]
H A Dicmp6.c404 struct ip6_hdr *ip6, *nip6; in icmp6_input() local
1118 struct ip6_hdr *ip6; in ni6_input() local
1916 struct ip6_hdr *ip6; in icmp6_reflect() local
1974 t = ip6->ip6_dst; in icmp6_reflect()
1979 ip6->ip6_dst = ip6->ip6_src; in icmp6_reflect()
2077 ip6->ip6_src = *src; in icmp6_reflect()
2079 ip6->ip6_flow = 0; in icmp6_reflect()
2211 if (ip6->ip6_hlim != 255) { in icmp6_redirect_input()
2446 ip6->ip6_flow = 0; in icmp6_redirect_output()
2451 ip6->ip6_hlim = 255; in icmp6_redirect_output()
[all …]
H A Dudp6_usrreq.c139 struct ip6_hdr *ip6; in udp6_input() local
151 ip6 = mtod(m, struct ip6_hdr *); in udp6_input()
155 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); in udp6_input()
235 &ip6->ip6_dst) && in udp6_input()
242 &ip6->ip6_src) || in udp6_input()
263 ip6, n); in udp6_input()
331 &ip6->ip6_dst, uh->uh_dport, 1, in udp6_input()
390 struct ip6_hdr *ip6; in udp6_ctlinput() local
418 ip6 = ip6cp->ip6c_ip6; in udp6_ctlinput()
423 ip6 = NULL; in udp6_ctlinput()
[all …]
H A Dmld6.c181 struct ip6_hdr *ip6; in mld6_input() local
204 if (!IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src)) { in mld6_input()
208 ip6_sprintf(&ip6->ip6_src), in mld6_input()
411 struct ip6_hdr *ip6; in mld6_sendpkt() local
446 ip6 = mtod(mh, struct ip6_hdr *); in mld6_sendpkt()
447 ip6->ip6_flow = 0; in mld6_sendpkt()
448 ip6->ip6_vfc &= ~IPV6_VERSION_MASK; in mld6_sendpkt()
449 ip6->ip6_vfc |= IPV6_VERSION; in mld6_sendpkt()
451 ip6->ip6_nxt = IPPROTO_ICMPV6; in mld6_sendpkt()
453 ip6->ip6_src = ia->ia_addr.sin6_addr; in mld6_sendpkt()
[all …]
H A Droute6.c55 struct ip6_hdr *ip6; in route6_input() local
62 ip6 = mtod(m, struct ip6_hdr *); in route6_input()
63 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); in route6_input()
65 ip6 = mtod(m, struct ip6_hdr *); in route6_input()
82 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); in route6_input()
H A Dip6_output.c144 struct ip6_hdr *ip6, *mhip6; in ip6_output() local
224 ip6->ip6_plen = 0; in ip6_output()
226 ip6->ip6_plen = htons(plen); in ip6_output()
239 nexthdrp = &ip6->ip6_nxt; in ip6_output()
291 finaldst = ip6->ip6_dst; in ip6_output()
342 dst->sin6_addr = ip6->ip6_dst; in ip6_output()
601 in6_clearscope(&ip6->ip6_src); in ip6_output()
602 in6_clearscope(&ip6->ip6_dst); in ip6_output()
788 nextproto = ip6->ip6_nxt; in ip6_output()
811 *mhip6 = *ip6; in ip6_output()
[all …]
/dragonfly/contrib/tcpdump/
H A Dprint-ip6.c48 const struct ip6_hdr *ip6) in ip6_finddst() argument
60 cp = (const u_char *)ip6; in ip6_finddst()
62 nh = GET_U_1(ip6->ip6_nxt); in ip6_finddst()
63 dst_addr = (const void *)ip6->ip6_dst; in ip6_finddst()
190 nh = GET_U_1(ip6->ip6_nxt); in nextproto6_cksum()
228 const struct ip6_hdr *ip6; in ip6_print() local
241 ip6 = (const struct ip6_hdr *)bp; in ip6_print()
243 ND_TCHECK_SIZE(ip6); in ip6_print()
252 if (IP6_VERSION(ip6) != 6) { in ip6_print()
288 nh = GET_U_1(ip6->ip6_nxt); in ip6_print()
[all …]
H A Dprint-tcp.c151 const struct ip6_hdr *ip6, in tcp6_cksum() argument
174 const struct ip6_hdr *ip6; in tcp_print() local
181 ip6 = (const struct ip6_hdr *)bp2; in tcp_print()
183 ip6 = NULL; in tcp_print()
186 if (ip6) { in tcp_print()
202 if (ip6) { in tcp_print()
261 if (ip6) { in tcp_print()
901 const struct ip6_hdr *ip6; in tcp_verify_signature() local
930 ip6 = (const struct ip6_hdr *)ip; in tcp_verify_signature()
931 MD5_Update(&ctx, (const char *)&ip6->ip6_src, sizeof(ip6->ip6_src)); in tcp_verify_signature()
[all …]
H A Dprint-frag6.c39 const struct ip6_hdr *ip6; in frag6_print() local
43 ip6 = (const struct ip6_hdr *)bp2; in frag6_print()
49 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) - in frag6_print()
54 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) - in frag6_print()
H A Dprint-udp.c317 const struct ip6_hdr *ip6; in udpipaddr_print() local
320 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
322 ip6 = NULL; in udpipaddr_print()
324 if (ip6) { in udpipaddr_print()
328 GET_IP6ADDR_STRING(ip6->ip6_src), in udpipaddr_print()
332 GET_IP6ADDR_STRING(ip6->ip6_src), in udpipaddr_print()
377 const struct ip6_hdr *ip6; in udp_print() local
383 ip6 = (const struct ip6_hdr *)bp2; in udp_print()
385 ip6 = NULL; in udp_print()
483 ip6 != NULL); in udp_print()
[all …]
/dragonfly/sys/net/ip6fw/
H A Dip6_fw.c246 struct ip6_hdr *ip6 = *pip6; in ip6opts_match() local
253 *nxt = ip6->ip6_nxt; in ip6opts_match()
417 ip6_sprintf(&ip6->ip6_src)); in ip6fw_report()
503 struct ip6_hdr *ip6 = *pip6; in ip6_fw_chk() local
778 struct ip6_hdr ip6; in ip6_fw_chk() member
787 ti.ip6 = *ip6; in ip6_fw_chk()
791 ti.ip6.ip6_nxt = IPPROTO_TCP; in ip6_fw_chk()
801 } else if (ip6->ip6_plen) { in ip6_fw_chk()
802 ack += ntohs(ip6->ip6_plen) + sizeof(*ip6) in ip6_fw_chk()
812 bcopy(&ti, ip6, sizeof(ti)); in ip6_fw_chk()
[all …]
/dragonfly/sys/netinet/
H A Din_gif.c134 struct ip6_hdr *ip6; in in_gif_output() local
136 if (m->m_len < sizeof *ip6) { in in_gif_output()
137 m = m_pullup(m, sizeof *ip6); in in_gif_output()
141 ip6 = mtod(m, struct ip6_hdr *); in in_gif_output()
142 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in in_gif_output()
267 struct ip6_hdr *ip6; in in_gif_input() local
270 if (m->m_len < sizeof *ip6) { in in_gif_input()
271 m = m_pullup(m, sizeof *ip6); in in_gif_input()
275 ip6 = mtod(m, struct ip6_hdr *); in in_gif_input()
276 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in in_gif_input()
[all …]
H A Dtcp_subr.c471 struct ip6_hdr *ip6; in tcp_fillheaders() local
474 ip6->ip6_flow = (ip6->ip6_flow & ~IPV6_FLOWINFO_MASK) | in tcp_fillheaders()
476 ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) | in tcp_fillheaders()
632 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr); in tcp_respond()
651 ip6->ip6_flow = 0; in tcp_respond()
1556 struct ip6_hdr *ip6; in tcp6_ctlinput() local
1609 ip6 = NULL; in tcp6_ctlinput()
1614 if (ip6 != NULL) { in tcp6_ctlinput()
2214 struct ip6_hdr *ip6; in tcpsignature_compute() local
2288 in6 = ip6->ip6_src; in tcpsignature_compute()
[all …]
/dragonfly/sys/kern/
H A Dkern_jail.c379 struct sockaddr_in6 *ip6; in prison_ipcache_init() local
399 ip6 = (struct sockaddr_in6 *)&jis->ip; in prison_ipcache_init()
403 pr->local_ip6 = ip6; in prison_ipcache_init()
407 pr->nonlocal_ip6 = ip6; in prison_ipcache_init()
511 sizeof(ip6->sin6_addr)) == 0) { in prison_local_ip()
512 bcopy(&sin6_localhost, &ip6->sin6_addr, sizeof(ip6->sin6_addr)); in prison_local_ip()
575 if (ip6 != NULL && pr->local_ip6 != NULL) in prison_get_local()
576 ip6->sin6_addr = pr->local_ip6->sin6_addr; in prison_get_local()
590 const struct sockaddr_in6 *jip6, *ip6; in jailed_ip() local
595 ip6 = (const struct sockaddr_in6 *)ip; in jailed_ip()
[all …]
/dragonfly/sys/net/stf/
H A Dif_stf.c339 struct ip6_hdr *ip6; in stf_output_serialized() local
366 if (m->m_len < sizeof(*ip6)) { in stf_output_serialized()
367 m = m_pullup(m, sizeof(*ip6)); in stf_output_serialized()
371 ip6 = mtod(m, struct ip6_hdr *); in stf_output_serialized()
378 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) in stf_output_serialized()
379 in4 = GET_V4(&ip6->ip6_dst); in stf_output_serialized()
548 struct ip6_hdr *ip6; in in_stf_input() local
586 if (m->m_len < sizeof(*ip6)) { in in_stf_input()
587 m = m_pullup(m, sizeof(*ip6)); in in_stf_input()
591 ip6 = mtod(m, struct ip6_hdr *); in in_stf_input()
[all …]
/dragonfly/etc/rc.d/
H A Dnetwork_ipv660 ${SYSCTL_W} net.inet6.ip6.forwarding=1
61 ${SYSCTL_W} net.inet6.ip6.accept_rtadv=0
67 sleep `${SYSCTL_N} net.inet6.ip6.dad_count`
73 ${SYSCTL_W} net.inet6.ip6.forwarding=0
81 sleep `${SYSCTL_N} net.inet6.ip6.dad_count`
/dragonfly/contrib/ldns/
H A Dhigher.c33 uint8_t ip6; in ldns_get_rr_list_addr_by_name() local
46 ip6 = ldns_resolver_ip6(res); /* we use INET_ANY here, save in ldns_get_rr_list_addr_by_name()
84 ldns_resolver_set_ip6(res, ip6); in ldns_get_rr_list_addr_by_name()
159 bool ip6; in ldns_get_rr_list_hosts_frm_fp_l() local
166 ip6 = false; in ldns_get_rr_list_hosts_frm_fp_l()
205 ip6 = true; in ldns_get_rr_list_hosts_frm_fp_l()
211 ip6 = false; in ldns_get_rr_list_hosts_frm_fp_l()
223 if (ip6) { in ldns_get_rr_list_hosts_frm_fp_l()
/dragonfly/sys/net/wg/selftest/
H A Dallowedips.c122 mask->ip6[cidr / 32] = in horrible_cidr_to_mask()
129 return (bitcount32(mask->ip6[0]) + in horrible_mask_to_cidr()
130 bitcount32(mask->ip6[1]) + in horrible_mask_to_cidr()
131 bitcount32(mask->ip6[2]) + in horrible_mask_to_cidr()
132 bitcount32(mask->ip6[3])); in horrible_mask_to_cidr()
143 node->ip.ip6[0] &= node->mask.ip6[0]; in horrible_mask_self()
144 node->ip.ip6[1] &= node->mask.ip6[1]; in horrible_mask_self()
145 node->ip.ip6[2] &= node->mask.ip6[2]; in horrible_mask_self()
146 node->ip.ip6[3] &= node->mask.ip6[3]; in horrible_mask_self()
162 ((ip->__u6_addr.__u6_addr32[n] & node->mask.ip6[n]) \ in horrible_match_v6()
[all …]

1234