/netbsd-6-1-5-RELEASE/sys/netinet6/ |
H A D | in6_pcb.c | 163 struct in6pcb *in6p; local 170 in6p = pool_get(&in6pcb_pool, PR_NOWAIT); 172 if (in6p == NULL) 174 memset((void *)in6p, 0, sizeof(*in6p)); 175 in6p->in6p_af = AF_INET6; 176 in6p->in6p_table = table; 177 in6p->in6p_socket = so; 178 in6p->in6p_hops = -1; /* use kernel default */ 179 in6p 208 in6_pcbbind_addr(struct in6pcb *in6p, struct sockaddr_in6 *sin6, struct lwp *l) argument 278 in6_pcbbind_port(struct in6pcb *in6p, struct sockaddr_in6 *sin6, struct lwp *l) argument 373 struct in6pcb *in6p = v; local 436 struct in6pcb *in6p = v; local 578 in6_pcbdisconnect(struct in6pcb *in6p) argument 592 in6_pcbdetach(struct in6pcb *in6p) argument 624 in6_setsockaddr(struct in6pcb *in6p, struct mbuf *nam) argument 638 in6_setpeeraddr(struct in6pcb *in6p, struct mbuf *nam) argument 671 struct in6pcb *in6p, *nin6p; local 814 struct in6pcb *in6p, *nin6p; local 856 struct in6pcb *in6p, *nin6p; local 877 in6_losing(struct in6pcb *in6p) argument 909 in6_rtchange(struct in6pcb *in6p, int errno) argument 927 struct in6pcb *in6p, *match = 0; local 1064 in6_pcbrtentry(struct in6pcb *in6p) argument 1136 struct in6pcb *in6p; local 1182 struct in6pcb *in6p; local 1259 in6_pcbstate(struct in6pcb *in6p, int state) argument [all...] |
H A D | udp6_output.c | 115 udp6_output(struct in6pcb * const in6p, struct mbuf *m, argument 172 in6p->in6p_outputopts, l->l_cred, IPPROTO_UDP)) != 0) 176 optp = in6p->in6p_outputopts; 192 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr)) { 203 if ((in6p->in6p_flags & IN6P_IPV6_V6ONLY)) 218 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) 219 && !IN6_IS_ADDR_V4MAPPED(&in6p->in6p_laddr)) { 235 in6p->in6p_moptions, 236 &in6p->in6p_route, 237 &in6p [all...] |
H A D | raw_ip6.c | 155 struct in6pcb *in6p; local 186 in6p = (struct in6pcb *)inph; 187 if (in6p->in6p_af != AF_INET6) 189 if (in6p->in6p_ip6.ip6_nxt && 190 in6p->in6p_ip6.ip6_nxt != proto) 192 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) && 193 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst)) 195 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr) && 196 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src)) 198 if (in6p 341 struct in6pcb *in6p; local 404 struct in6pcb *in6p; local 616 struct in6pcb *in6p = sotoin6pcb(so); local [all...] |
H A D | udp6_usrreq.c | 134 udp6_notify(struct in6pcb *in6p, int errno) argument 136 in6p->in6p_socket->so_error = errno; 137 sorwakeup(in6p->in6p_socket); 138 sowwakeup(in6p->in6p_socket); 333 struct in6pcb *in6p = sotoin6pcb(so); local 362 else if (in6p == NULL) { 374 if (in6p != NULL) { 386 in6p = sotoin6pcb(so); 387 in6p->in6p_cksum = -1; /* just to be sure */ 391 in6_pcbdetach(in6p); [all...] |
H A D | ip6_output.c | 1455 struct in6pcb *in6p = sotoin6pcb(so); local 1475 error = ip6_pcbopts(&in6p->in6p_outputopts, so, sopt); 1519 in6p->in6p_hops = optval; 1525 in6p->in6p_flags |= (bit); \ 1527 in6p->in6p_flags &= ~(bit); \ 1533 in6p->in6p_flags |= IN6P_RFC2292; \ 1535 in6p->in6p_flags |= (bit); \ 1537 in6p->in6p_flags &= ~(bit); \ 1541 #define OPTBIT(bit) (in6p->in6p_flags & (bit) ? 1 : 0) 1565 optp = &in6p 2039 struct in6pcb *in6p = sotoin6pcb(so); local 3295 ip6_optlen(struct in6pcb *in6p) argument [all...] |
H A D | in6_src.c | 787 in6_selecthlim(struct in6pcb *in6p, struct ifnet *ifp) argument 789 if (in6p && in6p->in6p_hops >= 0) 790 return (in6p->in6p_hops); 801 in6_pcbsetport(struct sockaddr_in6 *sin6, struct in6pcb *in6p, struct lwp *l) argument 803 struct socket *so = in6p->in6p_socket; 804 struct inpcbtable *table = in6p->in6p_table; 809 if (in6p->in6p_flags & IN6P_LOWPORT) { 831 error = rfc6056_randport(&lport, &in6p->in6p_head, l->l_cred); 835 in6p [all...] |
H A D | ip6_input.c | 1107 ip6_savecontrol(struct in6pcb *in6p, struct mbuf **mp, argument 1111 #define IS2292(x, y) ((in6p->in6p_flags & IN6P_RFC2292) ? (x) : (y)) 1116 if (in6p->in6p_socket->so_options & SO_TIMESTAMP 1118 || in6p->in6p_socket->so_options & SO_OTIMESTAMP 1125 if (in6p->in6p_socket->so_options & SO_OTIMESTAMP) { 1143 if ((in6p->in6p_flags & IN6P_PKTINFO) != 0) { 1157 if (in6p->in6p_flags & IN6P_HOPLIMIT) { 1166 if ((in6p->in6p_flags & IN6P_TCLASS) != 0) { 1188 if ((in6p->in6p_flags & IN6P_HOPOPTS) != 0) { 1232 if (in6p 1333 ip6_notify_pmtu(struct in6pcb *in6p, const struct sockaddr_in6 *dst, uint32_t *mtu) argument [all...] |
H A D | ipsec.c | 1535 ipsec6_set_policy(struct in6pcb *in6p, int optname, void *request, argument 1542 if (in6p == NULL || request == NULL) 1551 spp = &in6p->in6p_sp->sp_in; 1554 spp = &in6p->in6p_sp->sp_out; 1562 ipsec_invalpcbcache(in6p->in6p_sp, IPSEC_DIR_ANY); 1567 ipsec6_get_policy(struct in6pcb *in6p, void *request, size_t len, argument 1574 if (in6p == NULL || request == NULL || mp == NULL) 1576 if (in6p->in6p_sp == NULL) 1585 sp = in6p->in6p_sp->sp_in; 1588 sp = in6p 1600 ipsec6_delete_pcbpolicy(struct in6pcb *in6p) argument 1893 ipsec6_in_reject(struct mbuf *m, struct in6pcb *in6p) argument 2025 ipsec6_hdrsiz(struct mbuf *m, u_int dir, struct in6pcb *in6p) argument [all...] |
H A D | icmp6.c | 1864 struct in6pcb *in6p; local 1887 in6p = (struct in6pcb *)inph; 1888 if (in6p->in6p_af != AF_INET6) 1890 if (in6p->in6p_ip6.ip6_nxt != IPPROTO_ICMPV6) 1892 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) && 1893 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst)) 1895 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr) && 1896 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src)) 1898 if (in6p->in6p_icmp6filt 1900 in6p 2599 struct in6pcb *in6p = sotoin6pcb(so); local [all...] |
/netbsd-6-1-5-RELEASE/sys/netinet/ |
H A D | rfc6056.c | 183 struct in6pcb *in6p = (struct in6pcb *)(void *)inp_hdr; local 184 struct inpcbtable *table = in6p->in6p_table; 188 if (in6p->in6p_flags & IN6P_LOWPORT) { 293 struct in6pcb *in6p = (struct in6pcb *)(void *)inp_hdr; local 294 table = in6p->in6p_table; 299 if (in6p->in6p_flags & IN6P_LOWPORT) { 309 sin6.sin6_addr = in6p->in6p_laddr; 310 so = in6p->in6p_socket; 539 const struct in6pcb *in6p = local 541 MD5Update(&f_ctx, (const u_char *)&in6p 571 struct in6pcb *in6p; local 807 struct in6pcb *in6p = (struct in6pcb *)(void *)inp_hdr; local [all...] |
H A D | tcp_usrreq.c | 176 struct in6pcb *in6p; local 242 in6p = NULL; 249 in6p = sotoin6pcb(so); 259 if (inp && in6p) 260 panic("tcp_usrreq: both inp and in6p set to non-NULL"); 272 && in6p == 0 292 if (in6p) { 293 tp = in6totcpcb(in6p); 314 if (inp != 0 || in6p != 0) 347 error = in6_pcbbind(in6p, na 647 struct in6pcb *in6p; local 854 struct in6pcb *in6p; local 1229 struct in6pcb *in6p; local 1401 const struct in6pcb *in6p; local [all...] |
H A D | tcp_subr.c | 451 struct in6pcb *in6p = tp->t_in6pcb; local 463 if (in6p) { 465 if (IN6_IS_ADDR_V4MAPPED(&in6p->in6p_laddr) 466 && IN6_IS_ADDR_V4MAPPED(&in6p->in6p_faddr)) 474 if (in6p) { 527 else if (in6p) { 529 bcopy(&in6p->in6p_laddr.s6_addr32[3], &ipov->ih_src, 531 bcopy(&in6p->in6p_faddr.s6_addr32[3], &ipov->ih_dst, 555 ip6->ip6_src = in6p->in6p_laddr; 556 ip6->ip6_dst = in6p 1048 struct in6pcb *in6p = (struct in6pcb *)aux; local 1136 struct in6pcb *in6p; local 1405 tcp6_notify(struct in6pcb *in6p, int error) argument 1559 struct in6pcb *in6p; local 1712 tcp6_quench(struct in6pcb *in6p, int errno) argument 1806 tcp6_mtudisc(struct in6pcb *in6p, int errno) argument 2339 struct in6pcb *in6p; local [all...] |
H A D | udp_usrreq.c | 679 struct in6pcb *in6p = NULL; local 685 in6p = sotoin6pcb(so); 699 if (in6p && (in6p->in6p_flags & IN6P_CONTROLOPTS 701 || in6p->in6p_socket->so_options & SO_OTIMESTAMP 703 || in6p->in6p_socket->so_options & SO_TIMESTAMP)) { 705 ip6_savecontrol(in6p, &opts, ip6, n); 868 struct in6pcb *in6p; local 915 in6p = (struct in6pcb *)inph; 916 if (in6p [all...] |
H A D | tcp_input.c | 1214 struct in6pcb *in6p; local 1409 in6p = NULL; 1432 in6p = in6_pcblookup_connect(&tcbtable, &s, 1435 if (in6p == 0 && !vestige.valid) { 1437 in6p = in6_pcblookup_bind(&tcbtable, &d, 1445 if (inp == 0 && in6p == 0 && !vestige.valid) 1463 else if (in6p && 1464 (in6p->in6p_socket->so_options & SO_ACCEPTCONN) == 0 && 1465 ipsec6_in_reject_so(m, in6p->in6p_socket)) { 1483 in6p 3951 struct in6pcb *in6p = NULL; local [all...] |
H A D | tcp_output.c | 251 struct in6pcb *in6p = tp->t_in6pcb; local 290 if (in6p) { 291 rt = in6_pcbrtentry(in6p); 292 so = in6p->in6p_socket; 305 if (in6p && rt->rt_rmx.rmx_mtu < IPV6_MMTU) { 327 else if (in6p) { 329 if (IN6_IS_ADDR_V4MAPPED(&in6p->in6p_faddr)) { 332 bcopy(&in6p->in6p_faddr.s6_addr32[3], &d, sizeof(d)); 369 if (in6p && tp->t_family == AF_INET) { 371 if (! IPSEC_PCB_SKIP_IPSEC(in6p [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/bind9/ |
H A D | getaddresses.c | 220 struct in6_addr *in6p; local 221 in6p = (struct in6_addr *)(he->h_addr_list[i]); 222 if (in6p == NULL) 224 isc_sockaddr_fromin6(&addrs[i], in6p, port);
|
/netbsd-6-1-5-RELEASE/sys/netipsec/ |
H A D | ipsec.c | 556 struct in6pcb *in6p = PCB_TO_IN6PCB(inp); local 558 *error = ipsec6_setspidx_in6pcb(m, in6p); 559 pcbsp = in6p->in6p_sp; 739 struct in6pcb *in6p) 747 if (in6p == NULL || in6p->in6p_socket == NULL) { 750 sp = ipsec_getpolicybysock(m, dir, IN6PCB_TO_PCB(in6p), error); 1448 ipsec6_set_policy(struct in6pcb *in6p, int optname, const void *request, argument 1455 if (in6p == NULL || request == NULL) 1464 pcb_sp = &in6p 738 ipsec6_checkpolicy(struct mbuf *m, u_int dir, u_int flag, int *error, struct in6pcb *in6p) argument 1479 ipsec6_get_policy(struct in6pcb *in6p, const void *request, size_t len, struct mbuf **mp) argument 1511 ipsec6_delete_pcbpolicy(struct in6pcb *in6p) argument 1758 ipsec6_in_reject(struct mbuf *m, struct in6pcb *in6p) argument 1895 ipsec6_hdrsiz(struct mbuf *m, u_int dir, struct in6pcb *in6p) argument 2198 struct in6pcb *in6p = NULL; local [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/systat/ |
H A D | netcmds.c | 252 checkport6(struct in6pcb *in6p) argument 258 if (p->port == in6p->in6p_lport || p->port == in6p->in6p_fport) 361 checkhost6(struct in6pcb *in6p) argument 371 if (IN6_ARE_ADDR_EQUAL(&sin6->sin6_addr, &in6p->in6p_laddr) || 372 IN6_ARE_ADDR_EQUAL(&sin6->sin6_addr, &in6p->in6p_faddr))
|
H A D | netstat.c | 347 enter6(struct in6pcb *in6p, struct socket *so, int state, const char *proto) argument 363 if (p->ni_lport != in6p->in6p_lport || 364 !IN6_ARE_ADDR_EQUAL(&p->ni_laddr6, &in6p->in6p_laddr)) 366 if (IN6_ARE_ADDR_EQUAL(&p->ni_faddr6, &in6p->in6p_faddr) && 367 p->ni_fport == in6p->in6p_fport) 380 p->ni_laddr6 = in6p->in6p_laddr; 381 p->ni_lport = in6p->in6p_lport; 382 p->ni_faddr6 = in6p->in6p_faddr; 383 p->ni_fport = in6p->in6p_fport;
|
/netbsd-6-1-5-RELEASE/usr.bin/netstat/ |
H A D | inet6.c | 1385 inet6name(const struct in6_addr *in6p) argument 1405 if (!numeric_addr && !IN6_IS_ADDR_UNSPECIFIED(in6p)) { 1406 hp = gethostbyaddr((const char *)in6p, sizeof(*in6p), AF_INET6); 1414 if (IN6_IS_ADDR_UNSPECIFIED(in6p)) 1422 sin6.sin6_addr = *in6p; 1424 if (IN6_IS_ADDR_LINKLOCAL(in6p) || 1425 IN6_IS_ADDR_MC_LINKLOCAL(in6p)) { 1427 ntohs(*(const u_int16_t *)&in6p->s6_addr[2]);
|
/netbsd-6-1-5-RELEASE/external/bsd/libbind/dist/resolv/ |
H A D | res_send.c | 166 const struct sockaddr_in6 *in6p, *srv6; local 184 in6p = (const struct sockaddr_in6 *)sa; 187 if (srv6->sin6_family == in6p->sin6_family && 188 srv6->sin6_port == in6p->sin6_port && 191 srv6->sin6_scope_id == in6p->sin6_scope_id) && 194 IN6_ARE_ADDR_EQUAL(&srv6->sin6_addr, &in6p->sin6_addr)))
|
/netbsd-6-1-5-RELEASE/lib/libc/resolv/ |
H A D | res_send.c | 199 const struct sockaddr_in6 *in6p, *srv6; local 217 in6p = (const struct sockaddr_in6 *)(const void *)sa; 220 if (srv6->sin6_family == in6p->sin6_family && 221 srv6->sin6_port == in6p->sin6_port && 224 srv6->sin6_scope_id == in6p->sin6_scope_id) && 227 IN6_ARE_ADDR_EQUAL(&srv6->sin6_addr, &in6p->sin6_addr)))
|
/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/ |
H A D | print-icmp6.c | 705 struct in6_addr in6, *in6p; local 793 in6p = (struct in6_addr *)(opri + 1); 798 TCHECK2(*in6p, 8); 802 TCHECK(*in6p);
|
/netbsd-6-1-5-RELEASE/sys/dist/pf/net/ |
H A D | pf.c | 2758 struct in6pcb *in6p = NULL; local 2760 #define in6p inp macro 2824 in6p = in6_pcbhashlookup(tb, &saddr->v6, sport, &daddr->v6, 2827 in6p = in6_pcblookup_listen(tb, &daddr->v6, dport, 0); 2848 so = in6p->in6p_socket;
|