Searched refs:peer (Results 1 - 25 of 48) sorted by relevance

12

/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_settid.c44 struct sockaddr_in6 peer; local
46 int peerlen = sizeof (peer);
54 /* get peer name */
55 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen)
66 if (peer.sin6_family == AF_INET6)
67 rv = do_ipv6_address(&peer, &sock);
69 rv = do_ipv4_address((struct sockaddr_in *)&peer,
76 do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock) argument
96 ai.ai_termid.at_port = ((peer->sin6_port<<16) | (sock->sin6_port));
98 bcopy(&peer
108 do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock) argument
[all...]
H A Dadt.c592 adt_do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock, argument
596 termid->at_port = ((peer->sin6_port<<16) | (sock->sin6_port));
598 (void) memcpy(termid->at_addr, &peer->sin6_addr, 4 * sizeof (uint_t));
602 adt_do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock, argument
606 termid->at_port = ((peer->sin_port<<16) | (sock->sin_port));
609 termid->at_addr[0] = (uint32_t)peer->sin_addr.s_addr;
625 struct sockaddr_in6 peer; local
627 int peerlen = sizeof (peer);
630 /* get peer name if its a socket, else assume local terminal */
632 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_
[all...]
H A Dadt_token.c911 struct sockaddr_in6 peer; local
912 int peerlen = sizeof (peer);
926 if (getpeername(sock, (struct sockaddr *)&peer, (socklen_t *)&peerlen)
932 if (peer.sin6_family == AF_INET6) {
934 au_to_in_addr_ex(&(peer.sin6_addr)));
936 au_to_iport((ushort_t)peer.sin6_port));
939 au_to_in_addr(&(((struct sockaddr_in *)&peer)->sin_addr)));
942 (ushort_t)(((struct sockaddr_in *)&peer)->sin_port)));
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dstandalone.h42 int separatePort(char *peer, char **name, uint16_t *port);
H A Dstandalone.c62 separatePort(char *peer, char **name, uint16_t *port) argument
66 chr = strchr(peer, '[');
71 chr = strchr(peer, ']');
87 chr = strchr(peer, ']');
95 chr = strchr(peer, ':');
101 *name = peer;
/illumos-gate/usr/src/lib/print/libipp-listener/common/
H A Dprint-job.c105 "peer-socket", &fp);
108 struct sockaddr_in peer; local
109 socklen_t peer_len = sizeof (peer);
111 /* who is our peer ? */
112 if (getpeername(fp, (struct sockaddr *)&peer,
121 if ((he = getipnodebyaddr((const char *)&peer.sin_addr,
122 sizeof (peer.sin_addr), peer.sin_family,
129 (char *)inet_ntop(peer.sin_family,
130 &peer
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dasppp2pppd382 local($peer,$intf);
388 $peer = $$options{"peer_system_name"};
389 warn("Discarded path with no peer system name.\n"), return
390 unless defined($peer);
392 warn("Missing interface on path to peer \"$peer\".\n"), return
394 warn("Bad interface $intf on path to peer \"$peer\".\n"), return
396 warn("Missing peer IP address for point-to-multipoint path to \"",
397 $peer, "\"
[all...]
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_subr.c613 * Remove each peer node, working our way backwards from the
614 * last peer node to the first peer node.
616 if (dp->peer != NULL) {
617 for (np = dp->peer; np->peer; np = dp->peer) {
618 for (/* empty */; np->peer; np = np->peer)
620 fc_remove_subtree(np->peer);
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/logindmux/
H A Dlogindmux.c34 * Print our peer's upper queue pointer, and our lower queue pointer.
40 uintptr_t peer, lower; local
50 * Now read in the lower's peer, and follow that to up to our peer.
54 peer = (uintptr_t)tmx.rdq;
56 (void) mdb_snprintf(buf, nbytes, "peer rq : %p\nlower wq : %p",
57 peer, lower);
61 * Print our peer's lower queue pointer, and our upper queue pointer.
69 (void) mdb_snprintf(buf, nbytes, "peer wq : %p\nupper rq : %p",
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c81 nb_sockaddr(struct sockaddr *peer, struct nb_name *np, argument
89 if (peer && (peer->sa_family != AF_INET))
105 if (peer) {
107 sin = (struct sockaddr_in *)peer;
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/mib/
H A Dtst.tcp.ksh112 my \$peer = sockaddr_in($port, INADDR_ANY);
117 connect(S, \$peer) or die "connect failed: \$!";
/illumos-gate/usr/src/uts/sun4v/promif/
H A Dpromif_stree.c356 pnode_t peer; local
360 peer = prom_nextnode(node);
361 if (peer == 0)
363 if (prom_getproplen(peer, "name") <= 0) {
364 node = peer;
367 pnp = create_node(np->pn_parent, peer);
369 create_children(pnp, peer);
371 node = peer;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c102 static int peer; variable
362 "Unknown address Family on peer connection %d",
399 "Unknown address Family on peer connection");
402 peer = socket(addrfmly, SOCK_DGRAM, 0);
403 if (peer < 0) {
414 (void) setsockopt(peer, SOL_SOCKET, SO_DEBUG,
418 if (bind(peer, (struct sockaddr *)&client, fromplen) < 0) {
440 if (getsockname(peer, (struct sockaddr *)&client,
452 (void) close(peer);
507 peer
[all...]
/illumos-gate/usr/src/head/rpcsvc/
H A Dyp.x87 peername peer;
123 peername peer;
/illumos-gate/usr/src/lib/efcode/engine/
H A Dpackage.c208 CHECK_DEPTH(env, 1, "peer");
210 REVERT_PHANDLE(env, TOS, d->peer);
217 device_t *peer; local
226 /* Insert new child at end of peer list */
227 for (peer = parent->child; peer->peer; peer = peer->peer)
[all...]
/illumos-gate/usr/src/lib/libfru/include/
H A Dlibfruds.h58 fru_errno_t (*get_peer)(fru_treehdl_t sibling, fru_treehdl_t *peer);
H A Dlibfru.h237 fru_errno_t fru_get_peer(fru_nodehdl_t handle, fru_nodehdl_t *peer);
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Din.lpd.c66 struct sockaddr_in6 peer; local
67 socklen_t peer_len = sizeof (peer);
73 /* who is our peer ? */
74 if (getpeername(fd, (struct sockaddr *)&peer, &peer_len) < 0) {
82 if ((hp = getipnodebyaddr((const char *)&peer.sin6_addr,
85 return (strdup(inet_ntop(peer.sin6_family,
86 &peer.sin6_addr, tmp_buf, sizeof (tmp_buf))));
/illumos-gate/usr/src/uts/common/inet/nca/
H A Dncadoorhdr.h241 nca_offset_t peer; /* offset into meta data area */ member in struct:nca_io2_s
256 * Following this structure is optional meta data, peer and local
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c339 struct sockaddr_storage peer; local
355 peerlen = sizeof(peer);
357 (struct sockaddr *)&peer, &peerlen) < 0) {
361 if (!sock_eq((struct sockaddr *)&peer,
632 struct sockaddr_storage peer; local
633 ISC_SOCKLEN_T size = sizeof peer;
636 (struct sockaddr *)&peer, &size) < 0 ||
637 !sock_eq((struct sockaddr *)&peer, nsap)) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/
H A Dpicllibdevinfo.c785 di_node_t rnode, curr, peer; local
807 peer = di_child_node(rnode);
808 while (peer != DI_NODE_NIL) {
809 curr = peer;
810 peer = di_sibling_node(curr);
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_getname.c49 struct t_bind *boundaddr, struct t_bind *peer);
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c75 {"peer", no_argument, 0, 'P'},
570 vrrp_peer_t *peer = &qinfo->show_vp; local
619 VRRPADDR2STR(conf->vvc_af, &peer->vp_addr,
623 (void) snprintf(buf, bufsize, "%d", peer->vp_prio);
626 (void) snprintf(buf, bufsize, "%d", peer->vp_adver_int);
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/
H A Dcvcd.c151 * If there is no /etc/ssphostname disable peer check after
585 struct sockaddr_in *peer; local
631 * peer since we cant do gethostbyname.
643 * Verify peer is from specified host by comparing the
663 peer = (struct sockaddr_in *)addr;
666 if (memcmp(&peer->sin_addr.s_addr, &tmpaddr,
676 inet_ntoa(peer->sin_addr));
/illumos-gate/usr/src/cmd/iscsiadm/
H A Discsiadm.h180 IMA_ADDRESS_KEY peer; member in struct:_SUN_IMA_CONN_PROPERTIES

Completed in 96 milliseconds

12