Home
last modified time | relevance | path

Searched refs:sock_fd (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/vntsd/
H A Dauth.c83 socket_peer_euid(int sock_fd) in socket_peer_euid() argument
90 rc = getpeerucred(sock_fd, &ucredp); in socket_peer_euid()
196 auth_check_fd(int sock_fd, char *group_name) in auth_check_fd() argument
201 peer_euid = socket_peer_euid(sock_fd); in auth_check_fd()
H A Dvntsd.h476 boolean_t auth_check_fd(int sock_fd, char *group_name);
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c793 int n_ifs, i, sock_fd; in get_ifnames() local
797 sock_fd = socket(AF_INET, SOCK_DGRAM, 0); in get_ifnames()
798 if (sock_fd == -1) in get_ifnames()
801 if ((ioctl(sock_fd, SIOCGIFNUM, &n_ifs) == -1) || (n_ifs <= 0)) { in get_ifnames()
802 (void) close(sock_fd); in get_ifnames()
811 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) == -1) { in get_ifnames()
812 (void) close(sock_fd); in get_ifnames()
820 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifc.ifc_req[i]) == 0) in get_ifnames()
833 (void) close(sock_fd); in get_ifnames()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c3809 int n_ifs, i, sock_fd; in dhcp_walk_interfaces() local
3811 sock_fd = socket(af, SOCK_DGRAM, 0); in dhcp_walk_interfaces()
3812 if (sock_fd == -1) in dhcp_walk_interfaces()
3823 if (ioctl(sock_fd, SIOCGLIFNUM, &lifn) == -1) in dhcp_walk_interfaces()
3835 if (ioctl(sock_fd, SIOCGLIFCONF, &lifc) == -1) { in dhcp_walk_interfaces()
3836 (void) close(sock_fd); in dhcp_walk_interfaces()
3849 (void) close(sock_fd); in dhcp_walk_interfaces()