Searched refs:ip6 (Results 1 - 25 of 159) sorted by relevance

1234567

/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/
H A Dprint-ip6.c26 "@(#) Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.52 2007-09-21 07:05:33 hannes Exp";
49 #include "ip6.h"
56 nextproto6_cksum(const struct ip6_hdr *ip6, const u_short *data, argument
65 phu.ph.ph_src = ip6->ip6_src;
66 phu.ph.ph_dst = ip6->ip6_dst;
83 register const struct ip6_hdr *ip6; local
93 ip6 = (const struct ip6_hdr *)bp;
95 TCHECK(*ip6);
97 (void)printf("truncated-ip6 %u", length);
104 payload_len = EXTRACT_16BITS(&ip6
[all...]
H A Dprint-frag6.c42 #include "ip6.h"
52 register const struct ip6_hdr *ip6; local
55 ip6 = (const struct ip6_hdr *)bp2;
63 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
68 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
H A Dprint-tcp.c54 #include "ip6.h"
176 register const struct ip6_hdr *ip6; local
183 ip6 = (struct ip6_hdr *)bp2;
185 ip6 = NULL;
237 if (ip6) {
238 if (ip6->ip6_nxt == IPPROTO_TCP) {
240 ip6addr_string(&ip6->ip6_src),
242 ip6addr_string(&ip6->ip6_dst),
302 if (ip6) {
303 src = &ip6
731 struct ip6_hdr *ip6; local
[all...]
H A Dprint-sunrpc.c69 #include "ip6.h"
96 register const struct ip6_hdr *ip6; local
122 ip6 = (struct ip6_hdr *)bp2;
124 ip6addr_string(&ip6->ip6_src), srcid,
125 ip6addr_string(&ip6->ip6_dst), dstid, length);
/netbsd-6-1-5-RELEASE/sys/netinet6/
H A Dip6_flow.c64 #include <netinet/ip6.h>
124 ip6flow_hash(const struct ip6_hdr *ip6) argument
130 src_sum = ip6->ip6_src.s6_addr32[0] + ip6->ip6_src.s6_addr32[1]
131 + ip6->ip6_src.s6_addr32[2] + ip6->ip6_src.s6_addr32[3];
132 dst_sum = ip6->ip6_dst.s6_addr32[0] + ip6->ip6_dst.s6_addr32[1]
133 + ip6->ip6_dst.s6_addr32[2] + ip6
147 ip6flow_lookup(const struct ip6_hdr *ip6) argument
214 struct ip6_hdr *ip6; local
446 const struct ip6_hdr *ip6; local
[all...]
H A Droute6.c46 #include <netinet/ip6.h>
60 struct ip6_hdr *ip6; local
65 ip6 = mtod(m, struct ip6_hdr *);
104 if (ip6_rthdr0(m, ip6, (struct ip6_rthdr0 *)rh))
116 (char *)&rh->ip6r_type - (char *)ip6);
132 ip6_rthdr0(struct mbuf *m, struct ip6_hdr *ip6,
154 (char *)&rh0->ip6r0_len - (char *)ip6);
161 (char *)&rh0->ip6r0_segleft - (char *)ip6);
181 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
182 IN6_IS_ADDR_UNSPECIFIED(&ip6
[all...]
H A Din6_gif.c61 #include <netinet/ip6.h>
94 struct ip6_hdr *ip6; local
130 if (m->m_len < sizeof(*ip6)) {
131 m = m_pullup(m, sizeof(*ip6));
135 ip6 = mtod(m, struct ip6_hdr *);
136 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
162 ip6 = mtod(m, struct ip6_hdr *);
163 ip6->ip6_flow = 0;
164 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
165 ip6
217 struct ip6_hdr *ip6; local
299 gif_validate6(const struct ip6_hdr *ip6, struct gif_softc *sc, struct ifnet *ifp) argument
349 struct ip6_hdr ip6; local
407 struct ip6_hdr *ip6; local
[all...]
H A Din6_cksum.c38 #include <netinet/ip6.h>
58 const struct ip6_hdr *ip6; local
73 * struct ip6_hdr_pseudo ip6;
75 * bzero(sizeof(*ip6));
76 * ip6.ip6ph_nxt = nxt;
77 * ip6.ip6ph_len = htonl(len);
79 * in6_clearscope(&ip6->ip6ph_src);
81 * in6_clearscope(&ip6->ip6ph_dst);
82 * sum = one_add(&ip6);
92 ip6
[all...]
H A Dip6_etherip.c86 #include <netinet/ip6.h>
104 struct ip6_hdr *ip6; /* capsule IP header, host byte ordered */ local
150 ip6 = mtod(m, struct ip6_hdr *);
151 ip6->ip6_flow = 0;
152 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
153 ip6->ip6_vfc |= IPV6_VERSION;
154 ip6->ip6_nxt = proto;
155 ip6->ip6_hlim = ETHERIP_TTL;
156 ip6->ip6_src = sin6_src->sin6_addr;
160 ip6
194 const struct ip6_hdr *ip6; local
[all...]
H A Dnd6_nbr.c63 #include <netinet/ip6.h>
103 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
105 struct in6_addr saddr6 = ip6->ip6_src;
106 struct in6_addr daddr6 = ip6->ip6_dst;
123 ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */
128 if (ip6->ip6_hlim != 255) {
131 ip6->ip6_hlim, ip6_sprintf(&ip6->ip6_src),
132 ip6_sprintf(&ip6->ip6_dst), if_name(ifp)));
146 "(wrong ip6 ds
357 struct ip6_hdr *ip6; local
554 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
849 struct ip6_hdr *ip6; local
[all...]
H A Dip6_forward.c58 #include <netinet/ip6.h>
106 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
151 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
152 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) {
160 ip6_sprintf(&ip6->ip6_src),
161 ip6_sprintf(&ip6->ip6_dst),
162 ip6->ip6_nxt,
169 if (ip6->ip6_hlim <= IPV6_HLIMDEC) {
175 ip6->ip6_hlim -= IPV6_HLIMDEC;
333 if (ip6 !
[all...]
H A Draw_ip6.c88 #include <netinet/ip6.h>
153 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
163 if (faithprefix(&ip6->ip6_dst)) {
171 if (IN6_IS_ADDR_V4MAPPED(&ip6->ip6_src) ||
172 IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
178 sockaddr_in6_init(&rip6src, &ip6->ip6_src, 0, 0, 0);
193 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
196 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src))
226 ip6_savecontrol(last, &opts, ip6, n);
270 ip6_savecontrol(last, &opts, ip6,
302 struct ip6_hdr *ip6; local
403 struct ip6_hdr *ip6; local
[all...]
H A Dfrag6.c54 #include <netinet/ip6.h>
71 struct ip6q ip6q; /* ip6 reassemble queue */
122 struct ip6_hdr *ip6; local
136 ip6 = mtod(m, struct ip6_hdr *);
143 sockaddr_in6_init(&u.dst6, &ip6->ip6_dst, 0, 0, 0);
148 if (ip6->ip6_plen == 0) {
161 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
202 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &q6->ip6q_src) &&
203 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst))
239 q6->ip6q_src = ip6
519 struct ip6_hdr *ip6; local
[all...]
H A Desp_input.c70 #include <netinet/ip6.h>
546 struct ip6_hdr *ip6; local
571 ip6 = mtod(m, struct ip6_hdr *);
573 if (ntohs(ip6->ip6_plen) == 0) {
584 (void *)&ip6->ip6_src, (void *)&ip6->ip6_dst,
615 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
637 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
668 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
675 ipsec6_logpacketstr(ip6, sp
905 struct ip6_hdr *ip6; local
[all...]
H A Dip6_input.c105 #include <netinet/ip6.h>
264 struct ip6_hdr *ip6; local
347 ip6 = mtod(m, struct ip6_hdr *);
349 if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) {
388 odst = ip6->ip6_dst;
394 ip6 = mtod(m, struct ip6_hdr *);
395 srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst);
399 IP6_STATINC(IP6_STAT_NXTHIST + ip6->ip6_nxt);
411 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_src) ||
412 IN6_IS_ADDR_UNSPECIFIED(&ip6
935 struct ip6_hdr *ip6; local
1067 struct ip6_hdr *ip6; local
1107 ip6_savecontrol(struct in6pcb *in6p, struct mbuf **mp, struct ip6_hdr *ip6, struct mbuf *m) argument
1436 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
1475 struct ip6_hdr ip6; local
[all...]
H A Dudp6_output.c96 #include <netinet/ip6.h>
122 struct ip6_hdr *ip6; local
354 ip6 = mtod(m, struct ip6_hdr *);
355 ip6->ip6_flow = in6p->in6p_flowinfo & IPV6_FLOWINFO_MASK;
356 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
357 ip6->ip6_vfc |= IPV6_VERSION;
359 ip6->ip6_plen = htons((u_int16_t)plen);
361 ip6->ip6_nxt = IPPROTO_UDP;
362 ip6->ip6_hlim = in6_selecthlim(in6p,
365 ip6
[all...]
H A Dah_input.c69 #include <netinet/ip6.h>
581 struct ip6_hdr *ip6; local
599 ip6 = mtod(m, struct ip6_hdr *);
605 if (ntohs(ip6->ip6_plen) == 0) {
613 (void *)&ip6->ip6_src, (void *)&ip6->ip6_dst,
660 ipsec6_logpacketstr(ip6, spi)));
668 ipsec6_logpacketstr(ip6, spi)));
674 ipsec6_logpacketstr(ip6, spi)));
699 ipsec6_logpacketstr(ip6, sp
930 struct ip6_hdr *ip6; local
[all...]
/netbsd-6-1-5-RELEASE/sys/netinet/
H A Dtcp_debug.h50 struct ip6_hdr ip6; member in struct:tcp_debug::__anon9295
H A Din_gif.c63 #include <netinet/ip6.h>
130 const struct ip6_hdr *ip6; local
132 if (m->m_len < sizeof(*ip6)) {
133 m = m_pullup(m, sizeof(*ip6));
137 ip6 = mtod(m, const struct ip6_hdr *);
138 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
257 struct ip6_hdr *ip6; local
260 if (M_UNWRITABLE(m, sizeof(*ip6))) {
261 if ((m = m_pullup(m, sizeof(*ip6))) == NULL)
264 ip6
[all...]
/netbsd-6-1-5-RELEASE/sys/net/agr/
H A Dif_agrether_hash.c46 #include <netinet/ip6.h>
129 const struct ip6_hdr *ip6; local
132 ip6 = agr_m_extract(m, off, sizeof(*ip6), &ip6_store);
133 if (ip6 == NULL) {
137 hash = HASH(&ip6->ip6_src, sizeof(ip6->ip6_src), hash);
138 hash = HASH(&ip6->ip6_dst, sizeof(ip6->ip6_dst), hash);
139 /* hash = HASH(&ip6
[all...]
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/racoon/
H A Ddump.c44 #include <netinet/ip6.h>
133 struct ip6_hdr ip6; local
173 sf_hdr.caplen = sf_hdr.len = sizeof(ip6);
198 memset(&ip6, 0, sizeof(ip6));
199 ip6.ip6_vfc = IPV6_VERSION;
201 ip6.ip6_src = ((struct sockaddr_in6 *)from)->sin6_addr;
203 ip6.ip6_dst = ((struct sockaddr_in6 *)my)->sin6_addr;
204 ip6.ip6_nxt = IPPROTO_UDP;
205 ip6
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/tests/system/lwresd/
H A Dtests.sh29 ip6.int ip6.arpa
/netbsd-6-1-5-RELEASE/sys/net/npf/
H A Dnpf_sendpkt.c48 #include <netinet/ip6.h>
71 struct ip6_hdr *ip6 = NULL; local
124 ip6 = mtod(m, struct ip6_hdr *);
125 memset(ip6, 0, len);
127 ip6->ip6_nxt = IPPROTO_TCP;
128 ip6->ip6_hlim = IPV6_DEFHLIM;
129 memcpy(&ip6->ip6_src, &oip->ip6_dst, sizeof(struct in6_addr));
130 memcpy(&ip6->ip6_dst, &oip->ip6_src, sizeof(struct in6_addr));
131 ip6->ip6_plen = htons(len);
132 ip6
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_mbuf_subr.c102 struct ip6_hdr *ip6; local
107 ip6 = mtod(m, struct ip6_hdr *);
109 ip6->ip6_vfc = IPV6_VERSION;
110 ip6->ip6_nxt = proto;
111 ip6->ip6_hlim = 64;
114 l4data = (void *)(ip6 + 1);
116 ip6->ip6_plen = htons(size);
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/tests/system/v6synth/
H A Dtests.sh39 $DIG $DIGOPTS f.f.$i.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.5.4.3.2.1.ip6.int. PTR @10.53.0.3 -p 5300
62 f.f.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.5.4.3.2.1.ip6.int. 0 IN PTR foo.
64 f.f.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.5.4.3.2.1.ip6.int. 0 IN PTR bar.

Completed in 321 milliseconds

1234567