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

123456789

/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-ip6.c26 "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.52 2007-09-21 07:05:33 hannes Exp $";
46 #include "ip6.h"
53 nextproto6_cksum(const struct ip6_hdr *ip6, const u_int8_t *data, argument
67 ph.ph_src = ip6->ip6_src;
68 ph.ph_dst = ip6->ip6_dst;
86 register const struct ip6_hdr *ip6; local
96 ip6 = (const struct ip6_hdr *)bp;
98 TCHECK(*ip6);
100 (void)ND_PRINT((ndo, "truncated-ip6 %u", length));
107 payload_len = EXTRACT_16BITS(&ip6
[all...]
H A Dprint-frag6.c37 #include "ip6.h"
47 register const struct ip6_hdr *ip6; local
50 ip6 = (const struct ip6_hdr *)bp2;
58 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
63 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) -
H A Dprint-tcp.c51 #include "ip6.h"
150 register const struct ip6_hdr *ip6; local
157 ip6 = (struct ip6_hdr *)bp2;
159 ip6 = NULL;
211 if (ip6) {
212 if (ip6->ip6_nxt == IPPROTO_TCP) {
214 ip6addr_string(&ip6->ip6_src),
216 ip6addr_string(&ip6->ip6_dst),
275 if (ip6) {
276 src = &ip6
742 struct ip6_hdr *ip6; local
[all...]
H A Dprint-sunrpc.c66 #include "ip6.h"
93 register const struct ip6_hdr *ip6; local
119 ip6 = (struct ip6_hdr *)bp2;
121 ip6addr_string(&ip6->ip6_src), srcid,
122 ip6addr_string(&ip6->ip6_dst), dstid, length);
H A Dprint-udp.c51 #include "ip6.h"
296 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, argument
299 return (nextproto6_cksum(ip6, (const u_int8_t *)(void *)up, len,
308 const struct ip6_hdr *ip6; local
311 ip6 = (const struct ip6_hdr *)ip;
313 ip6 = NULL;
315 if (ip6) {
316 if (ip6->ip6_nxt == IPPROTO_UDP) {
319 ip6addr_string(&ip6->ip6_src),
320 ip6addr_string(&ip6
370 register const struct ip6_hdr *ip6; local
[all...]
H A Dprint-dccp.c31 #include "ip6.h"
81 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) argument
83 return nextproto6_cksum(ip6, (const u_int8_t *)(void *)dh,
173 const struct ip6_hdr *ip6; local
185 ip6 = (const struct ip6_hdr *)data2;
187 ip6 = NULL;
206 if (ip6) {
208 ip6addr_string(&ip6->ip6_src), sport,
209 ip6addr_string(&ip6->ip6_dst), dport);
243 sum = dccp6_cksum(ip6, d
[all...]
/freebsd-9.3-release/etc/rc.d/
H A Drtsold22 sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1))
H A Dnetoptions98 ${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
H A Dfaith24 ${SYSCTL} net.inet6.ip6.keepfaith=1
51 ${SYSCTL} net.inet6.ip6.keepfaith=0
H A Dipfw80 if ! ${SYSCTL} net.inet6.ip6.fw.enable=1 1>/dev/null 2>&1
95 ${SYSCTL} net.inet6.ip6.fw.enable=0
/freebsd-9.3-release/sys/netinet6/
H A Droute6.c48 #include <netinet/ip6.h>
61 struct ip6_hdr *ip6; local
81 ip6 = mtod(m, struct ip6_hdr *);
82 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off);
84 ip6 = mtod(m, struct ip6_hdr *);
105 (caddr_t)&rh->ip6r_type - (caddr_t)ip6);
H A Din6_gif.c61 #include <netinet/ip6.h>
105 struct ip6_hdr *ip6; local
139 struct ip6_hdr *ip6; local
141 if (m->m_len < sizeof(*ip6)) {
142 m = m_pullup(m, sizeof(*ip6));
146 ip6 = mtod(m, struct ip6_hdr *);
147 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
211 ip6 = mtod(m, struct ip6_hdr *);
212 ip6->ip6_flow = 0;
213 ip6
295 struct ip6_hdr *ip6; local
344 struct ip6_hdr *ip6; local
379 gif_validate6(const struct ip6_hdr *ip6, struct gif_softc *sc, struct ifnet *ifp) argument
436 struct ip6_hdr ip6; local
[all...]
H A Dip6_input.c102 #include <netinet/ip6.h>
131 .nh_name = "ip6",
167 TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal",
169 TUNABLE_INT_FETCH("net.inet6.ip6.accept_rtadv", &V_ip6_accept_rtadv);
170 TUNABLE_INT_FETCH("net.inet6.ip6.no_radr", &V_ip6_no_radr);
187 if (TUNABLE_INT_FETCH("net.inet6.ip6.output_flowtable_size",
338 struct ip6_hdr *ip6; local
349 ip6 = mtod(m, struct ip6_hdr *);
356 if (ip6->ip6_plen == 0 && *plen == 0) {
367 (caddr_t)&ip6
414 struct ip6_hdr *ip6; local
1137 struct ip6_hdr *ip6; local
1269 struct ip6_hdr *ip6; local
1316 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
1425 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
1710 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
1749 struct ip6_hdr ip6; local
[all...]
H A Dip6_forward.c64 #include <netinet/ip6.h>
95 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
136 IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
137 IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) {
145 ip6_sprintf(ip6bufs, &ip6->ip6_src),
146 ip6_sprintf(ip6bufd, &ip6->ip6_dst),
147 ip6->ip6_nxt,
157 if (ip6->ip6_hlim <= IPV6_HLIMDEC) {
163 ip6->ip6_hlim -= IPV6_HLIMDEC;
334 if ((m != NULL) && (ip6 !
[all...]
H A Dsend.c50 #include <netinet/ip6.h>
111 struct ip6_hdr *ip6; local
139 ip6 = mtod(m, struct ip6_hdr *);
140 icmp6 = (struct icmp6_hdr *)(ip6 + 1);
174 ip6 = mtod(m, struct ip6_hdr *);
175 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst))
181 dst.sin6_addr = ip6->ip6_dst;
254 struct ip6_hdr *ip6; local
268 ip6 = mtod(m, struct ip6_hdr *);
269 in6_clearscope(&ip6
[all...]
H A Din6_cksum.c70 #include <netinet/ip6.h>
84 _in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument
111 scope = in6_getscope(&ip6->ip6_src);
112 w = (u_int16_t *)&ip6->ip6_src;
119 scope = in6_getscope(&ip6->ip6_dst);
120 w = (u_int16_t *)&ip6->ip6_dst;
130 in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum) argument
138 sum = _in6_cksum_pseudo(ip6, len, nxt, csum);
152 struct ip6_hdr *ip6; local
188 ip6
[all...]
H A Dnd6_nbr.c70 #include <netinet/ip6.h>
106 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
108 struct in6_addr saddr6 = ip6->ip6_src;
109 struct in6_addr daddr6 = ip6->ip6_dst;
127 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off);
135 ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */
140 if (ip6->ip6_hlim != 255) {
143 ip6->ip6_hlim, ip6_sprintf(ip6bufs, &ip6->ip6_src),
144 ip6_sprintf(ip6bufd, &ip6
400 struct ip6_hdr *ip6; local
625 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
969 struct ip6_hdr *ip6; local
[all...]
H A Dudp6_usrreq.c103 #include <netinet/ip6.h>
178 struct ip6_hdr *ip6; local
189 ip6 = mtod(m, struct ip6_hdr *);
191 if (faithprefix_p != NULL && (*faithprefix_p)(&ip6->ip6_dst)) {
199 ip6 = mtod(m, struct ip6_hdr *);
200 uh = (struct udphdr *)((caddr_t)ip6 + off);
215 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6);
235 uh_sum = in6_cksum_pseudo(ip6, ulen,
252 if (IN6_IS_ADDR_MULTICAST(&ip6
482 struct ip6_hdr *ip6; local
595 struct ip6_hdr *ip6; local
[all...]
H A Dfrag6.c53 #include <netinet/ip6.h>
80 static VNET_DEFINE(struct ip6q, ip6q); /* ip6 reassemble queue */
158 struct ip6_hdr *ip6; local
174 ip6 = mtod(m, struct ip6_hdr *);
177 ip6f = (struct ip6_frag *)((caddr_t)ip6 + offset);
198 if (ip6->ip6_plen == 0) {
211 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
250 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &q6->ip6q_src) &&
251 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &q6->ip6q_dst)
297 q6->ip6q_src = ip6
649 struct ip6_hdr *ip6; local
[all...]
H A Dicmp6.c97 #include <netinet/ip6.h>
225 struct ip6_hdr *ip6; local
240 ip6 = mtod(m, struct ip6_hdr *);
242 if (in6_setscope(&ip6->ip6_src, ifp, NULL) != 0)
244 if (in6_setscope(&ip6->ip6_dst, ifp, NULL) != 0)
412 struct ip6_hdr *ip6, *nip6; local
432 ip6 = mtod(m, struct ip6_hdr *);
433 ip6len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
443 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
446 inm = in6m_lookup(ifp, &ip6
1281 struct ip6_hdr *ip6; local
1998 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
2157 struct ip6_hdr *ip6; local
2351 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); local
2554 struct ip6_hdr *ip6; /* m as struct ip6_hdr */ local
[all...]
/freebsd-9.3-release/sys/netinet/
H A Dtcp_lro.c51 #include <netinet/ip6.h>
148 struct ip6_hdr *ip6; local
150 ip6 = (struct ip6_hdr *)l3hdr;
152 cs = ip6->ip6_plen;
156 cx = ntohs(ip6->ip6_plen);
157 cs = in6_cksum_pseudo(ip6, cx, ip6->ip6_nxt, 0);
209 struct ip6_hdr *ip6; local
211 ip6 = le->le_ip6;
212 ip6
291 tcp_lro_rx_ipv6(struct lro_ctrl *lc, struct mbuf *m, struct ip6_hdr *ip6, struct tcphdr **th) argument
355 struct ip6_hdr *ip6 = NULL; /* Keep compiler happy. */ local
[all...]
H A Dtcp_debug.h50 struct ip6_hdr ip6; member in struct:tcp_debug::__anon9977
H A Dtcp_lro.h40 struct ip6_hdr *ip6; member in union:lro_entry::__anon9978
66 #define le_ip6 leip.ip6
H A Din_gif.c64 #include <netinet/ip6.h>
134 struct ip6_hdr *ip6; local
136 if (m->m_len < sizeof(*ip6)) {
137 m = m_pullup(m, sizeof(*ip6));
141 ip6 = mtod(m, struct ip6_hdr *);
142 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
326 struct ip6_hdr *ip6; local
330 if (m->m_len < sizeof(*ip6)) {
331 m = m_pullup(m, sizeof(*ip6));
335 ip6
[all...]
/freebsd-9.3-release/sys/netipsec/
H A Dxform_ipip.c74 #include <netinet/ip6.h>
157 struct ip6_hdr *ip6 = NULL; local
269 ip6 = (struct ip6_hdr *) ipo;
270 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
272 ip6->ip6_flow &= ~htonl(0xff << 20);
273 ip6->ip6_flow |= htonl((u_int32_t) itos << 20);
294 in6_localip(&ip6->ip6_src) != 0) {
377 struct ip6_hdr *ip6, *ip6o; local
486 ip6 = mtod(m, struct ip6_hdr *);
487 if (IN6_IS_SCOPE_LINKLOCAL(&ip6
[all...]

Completed in 201 milliseconds

123456789