Home
last modified time | relevance | path

Searched refs:sockaddr_in (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dsocket-utils.h77 static __inline__ struct sockaddr_in *sa2sin (struct sockaddr *sa) in sa2sin()
79 return (struct sockaddr_in *) (void *) sa; in sa2sin()
91 static __inline__ struct sockaddr_in *ss2sin (struct sockaddr_storage *ss) in ss2sin()
93 return (struct sockaddr_in *) ss; in ss2sin()
102 #define sa2sin(S) ((struct sockaddr_in *)(S))
105 #define ss2sin(S) ((struct sockaddr_in *)(S))
115 …sockaddr_in6) : (X)->sa_family == AF_INET ? (socklen_t) sizeof (struct sockaddr_in) : (socklen_t) …
117 # define socklen(X) ((X)->sa_family == AF_INET ? (socklen_t) sizeof (struct sockaddr_in) : (so…
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbindresvport.c53 bindresvport(int sd, struct sockaddr_in *sin) in bindresvport()
55 struct sockaddr_in myaddr; in bindresvport()
56 struct sockaddr_in *bindaddr; in bindresvport()
62 if (bindaddr == (struct sockaddr_in *)0) { in bindresvport()
97 sizeof (struct sockaddr_in)); in bindresvport()
121 len = sizeof (struct sockaddr_in); in bindresvport()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/
H A DmDNSUNP.c310 struct sockaddr_in *sinptr; in select_src_ifi_info_solaris()
312 sinptr = (struct sockaddr_in *) &lifr->lifr_addr; in select_src_ifi_info_solaris()
380 struct sockaddr_in *sinptr; in get_ifi_info_solaris()
491 sinptr = (struct sockaddr_in *) &best_lifr->lifr_addr; in get_ifi_info_solaris()
492 ifi->ifi_addr = malloc(sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
496 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
509 ifi->ifi_netmask = malloc(sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
512 sinptr = (struct sockaddr_in *) &lifrcopy.lifr_addr; in get_ifi_info_solaris()
514 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
550 struct sockaddr_in *sinptr; in get_ifi_info()
[all …]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_settid.c38 static int do_ipv4_address(struct sockaddr_in *, struct sockaddr_in *);
68 rv = do_ipv4_address((struct sockaddr_in *)&peer, in audit_settid()
69 (struct sockaddr_in *)&sock); in audit_settid()
107 do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock) in do_ipv4_address()
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dinetutil.c90 addr1 = ((const struct sockaddr_in *)ssp1)->sin_addr; in sockaddrcmp()
91 addr2 = ((const struct sockaddr_in *)ssp2)->sin_addr; in sockaddrcmp()
119 bzero(mask, sizeof (struct sockaddr_in)); in plen2mask()
121 addr += offsetof(struct sockaddr_in, sin_addr); in plen2mask()
160 addr += offsetof(struct sockaddr_in, sin_addr); in mask2plen()
194 (void) memcpy(&data, ss, sizeof (struct sockaddr_in)); in sockaddrunspec()
195 return (((struct sockaddr_in *)&data)->sin_addr.s_addr == in sockaddrunspec()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_name_service.c126 struct sockaddr_in *si; in dapli_ns_create_gid_map()
154 si = (struct sockaddr_in *)addr->ai_addr; in dapli_ns_create_gid_map()
240 struct sockaddr_in *si; in dapls_ns_lookup_address()
244 si = (struct sockaddr_in *)remote_ia_address; in dapls_ns_lookup_address()
267 addr_ptr = (void *)&((struct sockaddr_in *)addr)->sin_addr; in dapls_inet_ntop()
306 IN struct sockaddr_in *addr,
317 struct sockaddr_in *addr);
338 (struct sockaddr_in *)sock, timeout, gid); in dapls_ns_lookup_address()
352 IN struct sockaddr_in *addr, in dapls_ns_lookup_v4()
357 struct sockaddr_in *sin; in dapls_ns_lookup_v4()
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dpmap.h39 caddr_t, xdrproc_t, caddr_t, int, int, struct sockaddr_in *,
40 struct sockaddr_in *, uint_t);
42 struct sockaddr_in *, struct sockaddr_in *);
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_soc.c64 int __rpc_bindresvport(int, struct sockaddr_in *, int *, int);
74 clnt_com_create(struct sockaddr_in *raddr, rpcprog_t prog, rpcvers_t vers, in clnt_com_create()
155 clntudp_bufcreate(struct sockaddr_in *raddr, rpcprog_t prog, rpcvers_t vers, in clntudp_bufcreate()
168 clntudp_create(struct sockaddr_in *raddr, rpcprog_t program, rpcvers_t version, in clntudp_create()
176 clnttcp_create(struct sockaddr_in *raddr, rpcprog_t prog, rpcvers_t vers, in clnttcp_create()
232 port = (((struct sockaddr_in *)svc->xp_ltaddr.buf)->sin_port); in svc_com_create()
314 sinport = &((struct sockaddr_in *)sin)->sin_port; in __rpc_bindresvport_ipv6()
366 __rpc_bindresvport(int fd, struct sockaddr_in *sin, int *portp, int qlen) in __rpc_bindresvport()
399 struct sockaddr_in *sin = (struct sockaddr_in *)addr; in get_myaddress_ipv6()
408 get_myaddress(struct sockaddr_in *addr) in get_myaddress()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Daddr_match.c45 const struct sockaddr_in *sin, in find_match()
56 struct sockaddr_in *s4; in find_match()
65 s4 = (struct sockaddr_in *)ai->ai_addr; in find_match()
67 addr2 = &((struct sockaddr_in *)sin)->sin_addr; in find_match()
87 const struct sockaddr_in *sin, in check_address()
H A Dkcmd.h70 ((struct sockaddr_in *)&(ss))->sin_port)
74 (void *)&((struct sockaddr_in *)&(ss))->sin_addr)
81 (((struct sockaddr_in *)&(ss))->sin_port = (port)))
88 (void) (((struct sockaddr_in *)&(ss))->sin_addr.s_addr = \
/illumos-gate/usr/src/uts/common/rpc/
H A Dclnt_soc.h86 extern CLIENT *clnttcp_create(struct sockaddr_in *, rpcprog_t, rpcvers_t,
116 extern CLIENT *clntudp_create(struct sockaddr_in *, rpcprog_t, rpcvers_t,
118 extern CLIENT *clntudp_bufcreate(struct sockaddr_in *, rpcprog_t, rpcvers_t,
146 extern void get_myaddress(struct sockaddr_in *);
H A Dpmap_clnt.h77 extern struct pmaplist *pmap_getmaps(struct sockaddr_in *);
78 extern ushort_t pmap_getport(struct sockaddr_in *, rpcprog_t, rpcvers_t,
83 enum clnt_stat pmap_rmtcall(struct sockaddr_in *, rpcprog_t, rpcvers_t,
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c133 static void solicitor(struct sockaddr_in *sin);
134 static void advertise(struct sockaddr_in *sin);
149 struct sockaddr_in *sin);
151 struct sockaddr_in *sin, struct logint *li);
153 static int ismulticast(struct sockaddr_in *sin);
154 static int isbroadcast(struct sockaddr_in *sin);
175 struct sockaddr_in *joinaddr);
177 struct sockaddr_in *joinaddr);
179 struct sockaddr_in *joinaddr);
181 static int initifs(int s, struct sockaddr_in *joinaddr, int preference);
[all …]
/illumos-gate/usr/src/lib/libdscp/
H A Dlibdscp.c54 static int convert_ipv4(struct sockaddr_in *,
69 struct sockaddr_in addr; in dscpBind()
178 struct sockaddr_in *sin; in dscpAuth()
204 sin = (struct sockaddr_in *)saddr; in dscpAuth()
222 sin = (struct sockaddr_in *)&daddr; in dscpAuth()
308 (void) memcpy(saddr, &lifr.lifr_addr, sizeof (struct sockaddr_in)); in dscpAddr()
309 *lenp = sizeof (struct sockaddr_in); in dscpAddr()
504 convert_ipv4(struct sockaddr_in *addr, struct sockaddr_in6 *addr6, int *lenp) in convert_ipv4()
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c42 struct sockaddr_in *sin = NULL; in kivoid_to_sock()
49 sin = (struct sockaddr_in *)dest; in kivoid_to_sock()
70 struct sockaddr_in sin; in kdlifconfig()
73 struct sockaddr_in *rt_sin; in kdlifconfig()
147 rt_sin = (struct sockaddr_in *)&route.rt_dst; in kdlifconfig()
150 rt_sin = (struct sockaddr_in *)&route.rt_gateway; in kdlifconfig()
186 if (nbuf->len != sizeof (struct sockaddr_in) && in kifioctl()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dctl.c49 struct sockaddr_in daemon_addr = { AF_INET };
50 struct sockaddr_in ctl_addr = { AF_INET };
51 struct sockaddr_in my_addr = { AF_INET };
122 struct sockaddr_in addr; in print_addr()
H A Dtalk_ctl.h46 extern struct sockaddr_in daemon_addr;
47 extern struct sockaddr_in ctl_addr;
48 extern struct sockaddr_in my_addr;
H A Dctl.h80 struct sockaddr_in addr;
92 struct sockaddr_in addr;
93 struct sockaddr_in ctl_addr;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rwhod.c104 static struct sockaddr_in multicast_addr = { AF_INET };
113 static struct sockaddr_in sin = { AF_INET };
148 struct sockaddr_in from; in main()
457 &(((struct sockaddr_in *)np->n_addr)->sin_addr), in onalrm()
501 struct sockaddr_in *sin; in configure()
590 if (((struct sockaddr_in *)np->n_addr)->sin_family == AF_INET && in configure()
592 sin = (struct sockaddr_in *)np->n_addr; in configure()
595 ((struct sockaddr_in *)&ifreq.ifr_addr)-> in configure()
626 ((struct sockaddr_in *)np->n_addr)->sin_addr.s_addr; in configure()
676 sin = (struct sockaddr_in *)np->n_addr; in configure()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dserver.c84 struct sockaddr_in *sinp = (struct sockaddr_in *)ssp; in isns_connection()
169 struct sockaddr_in *sinp = in isns_connection()
170 (struct sockaddr_in *)ssp; in isns_connection()
229 struct sockaddr_in sin; in isns_port_watcher()
230 struct sockaddr_in *sinp; in isns_port_watcher()
300 sinp = (struct sockaddr_in *)ssp; in isns_port_watcher()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c131 struct sockaddr_in *sa; /* our internal format */ in __inet_taddr2uaddr()
142 sa = (struct sockaddr_in *)(addr->buf); in __inet_taddr2uaddr()
181 struct sockaddr_in *sa; in ip_uaddr2taddr()
202 result->maxlen = sizeof (struct sockaddr_in); in ip_uaddr2taddr()
203 result->len = sizeof (struct sockaddr_in); in ip_uaddr2taddr()
398 ((struct sockaddr_in *)&lifr->lifr_addr)->sin_addr; in get_if_info()
411 ((struct sockaddr_in *)&lifr->lifr_addr)->sin_addr; in get_if_info()
652 struct sockaddr_in *sin; in select_server_addr()
664 sin = (struct sockaddr_in *)sock; in select_server_addr()
668 sock_len = sizeof (struct sockaddr_in); in select_server_addr()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dctl.h96 struct sockaddr_in addr;
108 struct sockaddr_in addr;
109 struct sockaddr_in ctl_addr;
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_net.c78 struct sockaddr_in *sin;
88 static void udp_make_msghdr(struct sockaddr_in *, struct iovec *, int,
91 struct sockaddr_in *, char *,
104 struct sockaddr_in *, unsigned short);
109 static int add2pr_list(slp_msg_t *, struct sockaddr_in *, void **);
192 struct sockaddr_in *sin; in slp_uc_udp_send()
215 sin = (struct sockaddr_in *)slp_get_target_sin(ctarg); in slp_uc_udp_send()
335 struct sockaddr_in sin[1]; in slp_mc_send()
468 struct sockaddr_in *sin; in tcp_thread()
506 sin = (struct sockaddr_in *)slp_get_target_sin(ctarg); in tcp_thread()
[all …]
H A Dslp_net_utils.c42 struct sockaddr_in addr;
43 struct sockaddr_in netmask;
44 struct sockaddr_in bc_addr;
72 struct sockaddr_in *bc_addrs[], in slp_broadcast_addrs()
332 SLPError slp_surl2sin(SLPSrvURL *surl, struct sockaddr_in *sa) { in slp_surl2sin()
333 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in slp_surl2sin()
/illumos-gate/usr/src/stand/lib/sock/
H A Dsocket.c162 if (*namelen < sizeof (struct sockaddr_in)) { in getsockname()
168 *((struct sockaddr_in *)name) = sockets[i].bind; in getsockname()
169 *namelen = sizeof (struct sockaddr_in); in getsockname()
545 socket_write(int s, const void *buf, size_t nbyte, struct sockaddr_in *addr) in socket_write()
555 struct sockaddr_in *in_addr = (struct sockaddr_in *)addr; in bind_check()
591 sizeof (struct sockaddr_in)); in bind()
596 if (namelen != sizeof (struct sockaddr_in) || name == NULL) { in bind()
637 struct sockaddr_in addr; in quickbind()
657 sizeof (struct sockaddr_in)); in quickbind()
762 sizeof (struct sockaddr_in)); in connect()
[all …]

12345678910>>...17