/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/ |
H A D | socket-utils.h | 82 static __inline__ struct sockaddr_in6 *sa2sin6 (struct sockaddr *sa) in sa2sin6() 84 return (struct sockaddr_in6 *) (void *) sa; in sa2sin6() 96 static __inline__ struct sockaddr_in6 *ss2sin6 (struct sockaddr_storage *ss) in ss2sin6() 98 return (struct sockaddr_in6 *) ss; in ss2sin6() 103 #define sa2sin6(S) ((struct sockaddr_in6 *)(S)) 106 #define ss2sin6(S) ((struct sockaddr_in6 *)(S)) 115 # define socklen(X) ((X)->sa_family == AF_INET6 ? (socklen_t) sizeof (struct sockaddr_in6) : (…
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_settid.c | 37 static int do_ipv6_address(struct sockaddr_in6 *, struct sockaddr_in6 *); 43 struct sockaddr_in6 peer; in audit_settid() 44 struct sockaddr_in6 sock; in audit_settid() 75 do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock) in do_ipv6_address()
|
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | inetutil.c | 94 addr6p1 = &((const struct sockaddr_in6 *)ssp1)->sin6_addr; in sockaddrcmp() 95 addr6p2 = &((const struct sockaddr_in6 *)ssp2)->sin6_addr; in sockaddrcmp() 125 bzero(mask, sizeof (struct sockaddr_in6)); in plen2mask() 127 addr += offsetof(struct sockaddr_in6, sin6_addr); in plen2mask() 164 addr += offsetof(struct sockaddr_in6, sin6_addr); in mask2plen() 198 (void) memcpy(&data, ss, sizeof (struct sockaddr_in6)); in sockaddrunspec() 200 &((struct sockaddr_in6 *)&data)->sin6_addr)); in sockaddrunspec()
|
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_radiuspacket.c | 62 struct sockaddr_in6 s_in6; in iscsit_snd_radius_request() 154 sizeof (struct sockaddr_in6)); in iscsit_snd_radius_request() 314 struct sockaddr_in6 l_addr, f_addr; in iscsit_net_recvmsg() 318 bzero(&l_addr, sizeof (struct sockaddr_in6)); in iscsit_net_recvmsg() 319 bzero(&f_addr, sizeof (struct sockaddr_in6)); in iscsit_net_recvmsg() 320 l_addrlen = sizeof (struct sockaddr_in6); in iscsit_net_recvmsg() 321 f_addrlen = sizeof (struct sockaddr_in6); in iscsit_net_recvmsg() 343 struct sockaddr_in6 *lin6 = (struct sockaddr_in6 *) in iscsit_net_recvmsg() 345 struct sockaddr_in6 *fin6 = (struct sockaddr_in6 *) in iscsit_net_recvmsg()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | trace.h | 44 struct sockaddr_in6 ift_who; /* from/to */ 85 dumppacket(stdout, "from", (struct sockaddr_in6 *)(src), \ 95 dumppacket(stdout, "to", (struct sockaddr_in6 *)(dst), \ 100 extern void dumppacket(FILE *, char *, struct sockaddr_in6 *, char *, int); 101 extern void trace(struct ifdebug *, struct sockaddr_in6 *, char *, int,
|
H A D | defs.h | 126 extern struct sockaddr_in6 allrouters; 150 extern void sendpacket(struct sockaddr_in6 *, struct interface *, 153 extern void solicitall(struct sockaddr_in6 *); 154 extern void supply(struct sockaddr_in6 *, struct interface *, 156 extern void supplyall(struct sockaddr_in6 *, int,
|
H A D | output.c | 47 supplyall(struct sockaddr_in6 *sin6, int rtstate, struct interface *skipif, in supplyall() 76 solicit(struct sockaddr_in6 *sin6, struct interface *ifp) in solicit() 87 solicitall(struct sockaddr_in6 *sin6) in solicitall() 116 sendpacket(struct sockaddr_in6 *sin6, struct interface *ifp, int size, in sendpacket() 133 supply(struct sockaddr_in6 *sin6, struct interface *ifp, int rtstate, in supply()
|
H A D | tables.c | 49 sizeof (struct sockaddr_in6) + \ 50 sizeof (struct sockaddr_in6) + \ 51 sizeof (struct sockaddr_in6) + \ 57 static struct sockaddr_in6 *rta_dst; /* RTA_DST sockaddr */ 58 static struct sockaddr_in6 *rta_gateway; /* RTA_GATEWAY sockaddr */ 59 static struct sockaddr_in6 *rta_netmask; /* RTA_NETMASK sockaddr */ 672 rta_dst = (struct sockaddr_in6 *)cp; in setup_rtsock() 678 cp += sizeof (struct sockaddr_in6); in setup_rtsock() 679 rta_gateway = (struct sockaddr_in6 *)cp; in setup_rtsock() 685 cp += sizeof (struct sockaddr_in6); in setup_rtsock() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | getnameinfo.c | 80 {PF_INET6, sizeof(struct in6_addr), sizeof(struct sockaddr_in6), 81 offsetof(struct sockaddr_in6, sin6_addr)}, 96 static int ip6_sa2str __P((const struct sockaddr_in6 *, char *, size_t, int)); 121 const struct sockaddr_in6 *sin6; 171 sin6 = (const struct sockaddr_in6 *)sa; 259 if (((const struct sockaddr_in6 *)sa)->sin6_scope_id) { in ip6_parsenumeric() 264 scopelen = ip6_sa2str((const struct sockaddr_in6 *)sa, in ip6_parsenumeric() 284 ip6_sa2str(const struct sockaddr_in6 *sa6, char *buf, in ip6_sa2str()
|
/illumos-gate/usr/src/cmd/cmd-inet/common/ |
H A D | addr_match.c | 46 const struct sockaddr_in6 *sin6) in find_match() 57 struct sockaddr_in6 *s6; in find_match() 71 s6 = (struct sockaddr_in6 *)ai->ai_addr; in find_match() 73 addr2 = &((struct sockaddr_in6 *)sin6)->sin6_addr; in find_match() 88 const struct sockaddr_in6 *sin6, in check_address()
|
H A D | kcmd.h | 69 ((struct sockaddr_in6 *)&(ss))->sin6_port : \ 73 (void *)&((struct sockaddr_in6 *)&(ss))->sin6_addr : \ 80 (((struct sockaddr_in6 *)&(ss))->sin6_port = (port)) : \ 87 (void) (((struct sockaddr_in6 *)&(ss))->sin6_addr = in6addr_any) : \
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_name_service.c | 270 addr_ptr = (void *)&((struct sockaddr_in6 *)addr)->sin6_addr; in dapls_inet_ntop() 312 IN struct sockaddr_in6 *addr, 319 struct sockaddr_in6 *addr); 321 static int dapls_ns_send_packet_v6(int s, struct sockaddr_in6 *addr); 342 (struct sockaddr_in6 *)sock, timeout, gid); in dapls_ns_lookup_address() 445 IN struct sockaddr_in6 *addr, in dapls_ns_lookup_v6() 531 dapls_ns_send_packet_v6(int s, struct sockaddr_in6 *addr) in dapls_ns_send_packet_v6() 587 dapls_ns_subnet_match_v6(int s, DAPL_IA *ia_ptr, struct sockaddr_in6 *addr) in dapls_ns_subnet_match_v6() 590 struct sockaddr_in6 netmask_sock; in dapls_ns_subnet_match_v6() 619 local_addr = (uchar_t *)&((struct sockaddr_in6 *)&lifreq.lifr_addr)-> in dapls_ns_subnet_match_v6() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/rdma/ |
H A D | rdma_user_cm.h | 112 struct sockaddr_in6 addr; 118 struct sockaddr_in6 src_addr; 119 struct sockaddr_in6 dst_addr; 138 struct sockaddr_in6 src_addr; 139 struct sockaddr_in6 dst_addr; 212 struct sockaddr_in6 addr;
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/ |
H A D | mDNSUNP.c | 157 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 161 memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 166 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 171 ((struct sockaddr_in6 *)ifi->ifi_netmask)->sin6_family=AF_INET6; in get_ifi_info_linuxv6() 172 ((struct sockaddr_in6 *)ifi->ifi_netmask)->sin6_scope_id=scope; in get_ifi_info_linuxv6() 173 inet_pton(AF_INET6, ipv6addr, &((struct sockaddr_in6 *)ifi->ifi_netmask)->sin6_addr); in get_ifi_info_linuxv6() 387 struct sockaddr_in6 *sinptr6; in get_ifi_info_solaris() 474 sinptr6 = (struct sockaddr_in6 *) &best_lifr->lifr_addr; in get_ifi_info_solaris() 475 ifi->ifi_addr = malloc(sizeof(struct sockaddr_in6)); in get_ifi_info_solaris() 478 memcpy(ifi->ifi_addr, sinptr6, sizeof(struct sockaddr_in6)); in get_ifi_info_solaris() [all …]
|
/illumos-gate/usr/src/lib/libdscp/ |
H A D | libdscp.c | 53 static int convert_ipv6(struct sockaddr_in6 *, uint32_t *); 55 struct sockaddr_in6 *, int *); 70 struct sockaddr_in6 addr6; in dscpBind() 179 struct sockaddr_in6 *sin6; in dscpAuth() 209 sin6 = (struct sockaddr_in6 *)saddr; in dscpAuth() 461 convert_ipv6(struct sockaddr_in6 *addr6, uint32_t *addrp) in convert_ipv6() 504 convert_ipv4(struct sockaddr_in *addr, struct sockaddr_in6 *addr6, int *lenp) in convert_ipv4() 537 *lenp = sizeof (struct sockaddr_in6); in convert_ipv4()
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/sol_ucma/ |
H A D | sol_rdma_user_cm.h | 66 struct sockaddr_in6 addr; 72 struct sockaddr_in6 addr; 80 struct sockaddr_in6 addr; 87 struct sockaddr_in6 addr;
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 132 struct sockaddr_in6 *sa6; /* our internal format */ in __inet_taddr2uaddr() 147 sa6 = (struct sockaddr_in6 *)(addr->buf); in __inet_taddr2uaddr() 229 struct sockaddr_in6 *sa; in ipv6_uaddr2taddr() 242 sa = calloc(1, sizeof (struct sockaddr_in6)); in ipv6_uaddr2taddr() 249 result->maxlen = sizeof (struct sockaddr_in6); in ipv6_uaddr2taddr() 250 result->len = sizeof (struct sockaddr_in6); in ipv6_uaddr2taddr() 614 is_myself(struct sockaddr_in6 *sa6) in is_myself() 653 struct sockaddr_in6 *sin6; in select_server_addr() 657 sock = calloc(1, sizeof (struct sockaddr_in6)); in select_server_addr() 671 sin6 = (struct sockaddr_in6 *)sock; in select_server_addr() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getnameinfo.c | 43 #define sa2sin6(x) ((struct sockaddr_in6 *)(x)) 48 static int addzoneid(const struct sockaddr_in6 *sa, char *host, 50 static size_t getzonestr(const struct sockaddr_in6 *sa, char *zonestr, 121 slen = sizeof (struct sockaddr_in6); in getnameinfo() 276 addzoneid(const struct sockaddr_in6 *sa, char *host, size_t hostlen) in addzoneid() 311 getzonestr(const struct sockaddr_in6 *sa, char *zonestr, size_t zonelen) in getzonestr()
|
H A D | rcmd.c | 106 struct sockaddr_in6 *sin6; in rcmd_af() 209 struct sockaddr_in6 *in6addr; in rcmd_af() 212 in6addr = (struct sockaddr_in6 *)&caddr; in rcmd_af() 215 addrlen = sizeof (struct sockaddr_in6); in rcmd_af() 233 addr = (char *)&((struct sockaddr_in6 *) in rcmd_af() 246 addr = (char *)&((struct sockaddr_in6 *) in rcmd_af() 344 sin6 = (struct sockaddr_in6 *)&faddr; in rcmd_af() 421 struct sockaddr_in6 *sin6; in _rresvport_addr() 431 sin6 = (struct sockaddr_in6 *)addr; in _rresvport_addr() 432 len = sizeof (struct sockaddr_in6); in _rresvport_addr() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | ndp.c | 40 struct phyint *pi, struct sockaddr_in6 *from); 43 int len, struct sockaddr_in6 *from); 46 int len, struct sockaddr_in6 *from, boolean_t loopback); 48 struct sockaddr_in6 *from, boolean_t loopback); 54 uchar_t *opt, struct sockaddr_in6 *from, 58 struct sockaddr_in6 *from, boolean_t loopback, 61 struct sockaddr_in6 *from); 63 struct sockaddr_in6 *from, int isrouter); 67 int len, struct sockaddr_in6 *from); 74 const struct sockaddr_in6 *from, int isrouter); [all …]
|
/illumos-gate/usr/src/lib/udapl/libdat/include/dat/ |
H A D | dat_platform_specific.h | 127 typedef struct sockaddr_in6 DAT_SOCK_ADDR6; /* Socket address header */ 158 typedef struct sockaddr_in6 DAT_SOCK_ADDR6; /* Socket address header */ 180 typedef struct sockaddr_in6 DAT_SOCK_ADDR6; /* Socket address header */
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ctl_p.c | 107 const struct sockaddr_in6 *in6 = in ctl_sa_ntop() 108 (const struct sockaddr_in6 *) sa; in ctl_sa_ntop() 165 *((struct sockaddr_in6 *)dst) = in ctl_sa_copy() 166 *((const struct sockaddr_in6 *)src); in ctl_sa_copy()
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_ndpd.c | 56 static void i_ipadm_make_linklocal(struct sockaddr_in6 *, 150 struct sockaddr_in6 *sin6; in i_ipadm_create_linklocal() 175 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal() 217 struct sockaddr_in6 *sin6; in i_ipadm_create_linklocal() 219 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal() 234 i_ipadm_make_linklocal(struct sockaddr_in6 *sin6, const struct in6_addr *intfid) in i_ipadm_make_linklocal()
|
/illumos-gate/usr/src/boot/include/netinet6/ |
H A D | in6.h | 123 struct sockaddr_in6 { struct 148 extern const struct sockaddr_in6 sa6_any; argument 381 struct sockaddr_in6 ro_dst; 546 struct sockaddr_in6 ip6m_addr; /* or sockaddr_storage? */ 664 struct sockaddr_in6 *sin6); 666 struct sockaddr_in6 *sin6); 671 #define satosin6(sa) ((struct sockaddr_in6 *)(sa))
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/ |
H A D | ilb_probe.c | 250 struct sockaddr_in6 *v6_addr; in set_sockaddr() 273 v6_addr = (struct sockaddr_in6 *)addr; in set_sockaddr() 295 struct sockaddr_in6 *nh_addr; in set_sockaddr() 343 next_hop, sizeof (struct sockaddr_in6)) < 0) { in tcp_query() 589 struct sockaddr_in6 v6_from; in wait_icmp_reply() 591 from_len = sizeof (struct sockaddr_in6); in wait_icmp_reply() 599 &((struct sockaddr_in6 *)exp_from)->sin6_addr)) { in wait_icmp_reply() 624 *lport = ((struct sockaddr_in6 *)&addr)->sin6_port; in get_lport() 669 next_hop, sizeof (struct sockaddr_in6)) < 0) { in udp_query() 789 next_hop, sizeof (struct sockaddr_in6)) < 0) { in ping_query()
|