Home
last modified time | relevance | path

Searched refs:peer (Results 1 – 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_settid.c43 struct sockaddr_in6 peer; in audit_settid() local
45 int peerlen = sizeof (peer); in audit_settid()
54 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen) in audit_settid()
65 if (peer.sin6_family == AF_INET6) in audit_settid()
66 rv = do_ipv6_address(&peer, &sock); in audit_settid()
68 rv = do_ipv4_address((struct sockaddr_in *)&peer, in audit_settid()
75 do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock) in do_ipv6_address() argument
95 ai.ai_termid.at_port = ((peer->sin6_port<<16) | (sock->sin6_port)); in do_ipv6_address()
97 bcopy(&peer->sin6_addr, ai.ai_termid.at_addr, 16); in do_ipv6_address()
107 do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock) in do_ipv4_address() argument
[all …]
H A Dadt_token.c911 struct sockaddr_in6 peer; in adt_to_in_peer() local
912 int peerlen = sizeof (peer); in adt_to_in_peer()
926 if (getpeername(sock, (struct sockaddr *)&peer, (socklen_t *)&peerlen) in adt_to_in_peer()
932 if (peer.sin6_family == AF_INET6) { in adt_to_in_peer()
934 au_to_in_addr_ex(&(peer.sin6_addr))); in adt_to_in_peer()
936 au_to_iport((ushort_t)peer.sin6_port)); in adt_to_in_peer()
939 au_to_in_addr(&(((struct sockaddr_in *)&peer)->sin_addr))); in adt_to_in_peer()
942 (ushort_t)(((struct sockaddr_in *)&peer)->sin_port))); in adt_to_in_peer()
H A Dadt.c646 adt_do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock, in adt_do_ipv6_address() argument
650 adt_ports_to_at_port(peer->sin6_port, sock->sin6_port); in adt_do_ipv6_address()
652 (void) memcpy(termid->at_addr, &peer->sin6_addr, 4 * sizeof (uint_t)); in adt_do_ipv6_address()
656 adt_do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock, in adt_do_ipv4_address() argument
659 termid->at_port = adt_ports_to_at_port(peer->sin_port, sock->sin_port); in adt_do_ipv4_address()
661 termid->at_addr[0] = (uint32_t)peer->sin_addr.s_addr; in adt_do_ipv4_address()
677 struct sockaddr_in6 peer; in adt_load_termid() local
679 int peerlen = sizeof (peer); in adt_load_termid()
684 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen) in adt_load_termid()
702 if (peer.sin6_family == AF_INET6) { in adt_load_termid()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dasppp2pppd382 local($peer,$intf);
388 $peer = $$options{"peer_system_name"};
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
397 $peer, "\".\n"), return
399 warn "Multiple definitions of path to peer \"$peer\".\n",
400 if defined($paths{$peer});
402 " encountered in path to peer \"", $peer, "\" (ignored).\n"
404 $paths{$peer} = $options;
[all …]
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_subr.c616 if (dp->peer != NULL) { in fc_remove_subtree()
617 for (np = dp->peer; np->peer; np = dp->peer) { in fc_remove_subtree()
618 for (/* empty */; np->peer; np = np->peer) in fc_remove_subtree()
620 fc_remove_subtree(np->peer); in fc_remove_subtree()
621 np->peer = NULL; in fc_remove_subtree()
623 fc_remove_subtree(dp->peer) in fc_remove_subtree()
624 dp->peer = NULL; in fc_remove_subtree()
627 ASSERT((dp->child == NULL) && (dp->peer == NULL)); in fc_remove_subtree()
653 if (dp->peer) in fc_remove_device_tree()
654 fc_remove_device_tree(&dp->peer); in fc_remove_device_tree()
[all …]
/illumos-gate/usr/src/lib/print/libipp-listener/common/
H A Dprint-job.c108 struct sockaddr_in peer; in ipp_print_job() local
109 socklen_t peer_len = sizeof (peer); in ipp_print_job()
112 if (getpeername(fp, (struct sockaddr *)&peer, in ipp_print_job()
121 if ((he = getipnodebyaddr((const char *)&peer.sin_addr, in ipp_print_job()
122 sizeof (peer.sin_addr), peer.sin_family, in ipp_print_job()
129 (char *)inet_ntop(peer.sin_family, in ipp_print_job()
130 &peer.sin_addr, tmp_buf, in ipp_print_job()
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dstandalone.c60 separatePort(char *peer, char **name, uint16_t *port) in separatePort() argument
64 chr = strchr(peer, '['); in separatePort()
69 chr = strchr(peer, ']'); in separatePort()
85 chr = strchr(peer, ']'); in separatePort()
93 chr = strchr(peer, ':'); in separatePort()
99 *name = peer; in separatePort()
H A Dstandalone.h40 int separatePort(char *peer, char **name, uint16_t *port);
/illumos-gate/usr/src/cmd/cmd-inet/etc/ppp/
H A Dchap-secrets32 # When authenticating to a peer (so-called "client mode;" as when dialing
34 # "server" will use the remote peer's name. CHAP does specify an
36 # a peer name, and the "remotename <name>" option should then be used.
39 # When authenticating a peer (so-called "server mode;" as when allowing
40 # dial-up access to this system), the remote peer's name is the "client"
43 # <name>" option cannot be used. The remote peer's name comes from the
44 # CHAP messages the peer sends.
47 # valid IP addresses for the peer appears. This must be present when
49 # addresses are given in the options. If a given dial-in peer has an
52 # to the peer as a hint.
H A Dpap-secrets32 # When authenticating to a peer (so-called "client mode;" as when dialing
34 # "server" will use the remote peer's name. PAP does not specify an
38 # When authenticating a peer (so-called "server mode;" as when allowing
39 # dial-up access to this system), the remote peer's name is the "client"
42 # <name>" option cannot be used. The remote peer's name comes from the PAP
43 # messages the peer sends.
46 # as a server, a list of valid IP addresses for the peer appears. This
49 # peer has an allocated IP address ("static IP addressing"), then this
51 # be sent to the peer as a hint.
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c103 static int peer; variable
403 peer = socket(addrfmly, SOCK_DGRAM, 0); in main()
404 if (peer < 0) { in main()
415 (void) setsockopt(peer, SOL_SOCKET, SO_DEBUG, in main()
419 if (bind(peer, (struct sockaddr *)&client, fromplen) < 0) { in main()
441 if (getsockname(peer, (struct sockaddr *)&client, in main()
453 (void) close(peer); in main()
508 peer = socket(addrfmly, SOCK_DGRAM, 0); in delayed_responder()
509 if (peer == -1) { in delayed_responder()
519 (void) setsockopt(peer, SOL_SOCKET, SO_DEBUG, in delayed_responder()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c81 nb_sockaddr(struct sockaddr *peer, struct nb_name *np, in nb_sockaddr() argument
89 if (peer && (peer->sa_family != AF_INET)) in nb_sockaddr()
105 if (peer) { in nb_sockaddr()
107 sin = (struct sockaddr_in *)peer; in nb_sockaddr()
/illumos-gate/usr/src/uts/sun4v/promif/
H A Dpromif_stree.c356 pnode_t peer; in create_peers() local
360 peer = prom_nextnode(node); in create_peers()
361 if (peer == 0) in create_peers()
363 if (prom_getproplen(peer, "name") <= 0) { in create_peers()
364 node = peer; in create_peers()
367 pnp = create_node(np->pn_parent, peer); in create_peers()
369 create_children(pnp, peer); in create_peers()
371 node = peer; in create_peers()
/illumos-gate/usr/src/cmd/mdb/common/modules/logindmux/
H A Dlogindmux.c38 uintptr_t peer, lower; in logdmux_uqinfo() local
52 peer = (uintptr_t)tmx.rdq; in logdmux_uqinfo()
55 peer, lower); in logdmux_uqinfo()
/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/cmd/print/bsd-sysv-commands/
H A Din.lpd.c66 struct sockaddr_in6 peer; in remote_host_name() local
67 socklen_t peer_len = sizeof (peer); in remote_host_name()
74 if (getpeername(fd, (struct sockaddr *)&peer, &peer_len) < 0) { in remote_host_name()
82 if ((hp = getipnodebyaddr((const char *)&peer.sin6_addr, in remote_host_name()
85 return (strdup(inet_ntop(peer.sin6_family, in remote_host_name()
86 &peer.sin6_addr, tmp_buf, sizeof (tmp_buf)))); in remote_host_name()
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c334 struct sockaddr_storage peer; in res_nsend() local
350 peerlen = sizeof(peer); in res_nsend()
352 (struct sockaddr *)&peer, &peerlen) < 0) { in res_nsend()
356 if (!sock_eq((struct sockaddr *)&peer, in res_nsend()
627 struct sockaddr_storage peer; in send_vc() local
628 ISC_SOCKLEN_T size = sizeof peer; in send_vc()
631 (struct sockaddr *)&peer, &size) < 0 || in send_vc()
632 !sock_eq((struct sockaddr *)&peer, nsap)) { in send_vc()
/illumos-gate/usr/src/head/rpcsvc/
H A Dyp.x85 peername peer; member
121 peername peer; member
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_stub_vnops.c2149 nfs4_ephemeral_t *peer; in nfs4_record_ephemeral_mount() local
2270 eph->ne_peer = peer = net->net_root; in nfs4_record_ephemeral_mount()
2271 ASSERT(peer != NULL); in nfs4_record_ephemeral_mount()
2274 peer->ne_prior = eph; in nfs4_record_ephemeral_mount()
2293 nfs4_ephemeral_t *peer; in nfs4_ephemeral_umount_cleanup() local
2296 peer = eph->ne_peer; in nfs4_ephemeral_umount_cleanup()
2305 prior->ne_child = peer; in nfs4_ephemeral_umount_cleanup()
2307 prior->ne_peer = peer; in nfs4_ephemeral_umount_cleanup()
2310 if (peer) in nfs4_ephemeral_umount_cleanup()
2311 peer->ne_prior = prior; in nfs4_ephemeral_umount_cleanup()
[all …]
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c570 vrrp_peer_t *peer = &qinfo->show_vp; in sfunc_vrrp_conf() local
619 VRRPADDR2STR(conf->vvc_af, &peer->vp_addr, in sfunc_vrrp_conf()
623 (void) snprintf(buf, bufsize, "%d", peer->vp_prio); in sfunc_vrrp_conf()
626 (void) snprintf(buf, bufsize, "%d", peer->vp_adver_int); in sfunc_vrrp_conf()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcpv6.c81 in6_addr_t link, peer; in interpret_dhcpv6() local
98 (void) memcpy(&peer, d6r.d6r_peeraddr, sizeof (peer)); in interpret_dhcpv6()
103 inet_ntop(AF_INET6, &peer, peerstr, in interpret_dhcpv6()
/illumos-gate/usr/src/common/smbios/
H A Dsmb_info.c894 smbios_slot_peer_t *peer) in smbios_info_slot_peers_free() argument
899 ASSERT3P(peer, ==, NULL); in smbios_info_slot_peers_free()
903 smb_free(peer, sz); in smbios_info_slot_peers_free()
912 smbios_slot_peer_t *peer; in smbios_info_slot_peers() local
941 if ((peer = smb_alloc(slotp->smbsl_npeers * in smbios_info_slot_peers()
947 peer[i].smblp_group = slotp->smbsl_peers[i].smbspb_group_no; in smbios_info_slot_peers()
948 peer[i].smblp_bus = slotp->smbsl_peers[i].smbspb_bus; in smbios_info_slot_peers()
949 peer[i].smblp_device = slotp->smbsl_peers[i].smbspb_df >> 3; in smbios_info_slot_peers()
950 peer[i].smblp_function = slotp->smbsl_peers[i].smbspb_df & 0x7; in smbios_info_slot_peers()
951 peer[i].smblp_data_width = slotp->smbsl_peers[i].smbspb_width; in smbios_info_slot_peers()
[all …]
/illumos-gate/usr/src/lib/libfru/include/
H A Dlibfruds.h56 fru_errno_t (*get_peer)(fru_treehdl_t sibling, fru_treehdl_t *peer);
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_sbd.c1222 char *peer; in mem_info() local
1240 peer = logid; in mem_info()
1242 peer = physid; in mem_info()
1245 info += snprintf(info, end - info, p[MI_TARGET], peer); in mem_info()
1250 info += snprintf(info, end - info, p[MI_SOURCE], peer); in mem_info()
/illumos-gate/usr/src/cmd/iscsiadm/
H A Discsiadm.h180 IMA_ADDRESS_KEY peer; member

123