Home
last modified time | relevance | path

Searched refs:sotype (Results 1 – 11 of 11) sorted by relevance

/freebsd/sys/nfs/
H A Dnfs_diskless.c123 nd->sotype = SOCK_STREAM; in nfs_parse_options()
125 nd->sotype = SOCK_DGRAM; in nfs_parse_options()
265 nd3->root_args.sotype = SOCK_STREAM; in nfs_setup_diskless()
304 nd->root_args.sotype = SOCK_STREAM; in nfs_setup_diskless()
330 args.sotype = nd->root_args.sotype; in nfs_setup_diskless()
335 nd->root_args.sotype = args.sotype; in nfs_setup_diskless()
H A Dnfsdiskless.h76 int sotype; /* Socket type */ member
H A Dbootp_subr.c1110 args->sotype = SOCK_DGRAM; in mountopts()
/freebsd/sbin/mount_nfs/
H A Dmount_nfs.c77 int sotype; member
133 static const char *netidbytype(int af, int sotype);
764 int doconnect, nfsvers, mntvers, sotype; in nfs_tryproto() local
768 sotype = 0; in nfs_tryproto()
774 sotype = SOCK_STREAM; in nfs_tryproto()
776 sotype = SOCK_DGRAM; in nfs_tryproto()
778 if ((netid = netidbytype(ai->ai_family, sotype)) == NULL) { in nfs_tryproto()
780 "af %d sotype %d not supported", ai->ai_family, sotype); in nfs_tryproto()
851 if (sotype == SOCK_DGRAM && noconn == 0) { in nfs_tryproto()
1049 netidbytype(int af, int sotype) in netidbytype() argument
[all …]
/freebsd/sys/security/audit/
H A Daudit.h112 void audit_arg_socket(int sodomain, int sotype, int soprotocol);
297 #define AUDIT_ARG_SOCKET(sodomain, sotype, soprotocol) do { \ argument
299 audit_arg_socket((sodomain), (sotype), (soprotocol)); \
451 #define AUDIT_ARG_SOCKET(sodomain, sotype, soprotocol) argument
H A Daudit_arg.c435 audit_arg_socket(int sodomain, int sotype, int soprotocol) in audit_arg_socket() argument
444 ar->k_ar.ar_arg_sockinfo.so_type = sotype; in audit_arg_socket()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clvfsops.c241 args->sotype = oargs->sotype; in nfs_convert_oargs()
461 error = socreate(nd->myif.ifra_addr.sa_family, &so, nd->root_args.sotype, 0, in nfs_mountroot()
629 if (argp->sotype == SOCK_STREAM) { in nfs_decode_args()
738 adjsock |= ((nmp->nm_sotype != argp->sotype) || in nfs_decode_args()
753 nmp->nm_sotype = argp->sotype; in nfs_decode_args()
763 nmp->nm_sotype = argp->sotype; in nfs_decode_args()
905 .sotype = SOCK_STREAM, in nfs_mount()
1005 args.sotype = SOCK_DGRAM; in nfs_mount()
1007 args.sotype = SOCK_DGRAM; in nfs_mount()
1009 args.sotype = SOCK_STREAM; in nfs_mount()
[all …]
/freebsd/lib/libnv/tests/
H A Dnvlist_send_recv_test.c340 nvlist_send_recv__send_nvlist(short sotype) in nvlist_send_recv__send_nvlist() argument
345 ATF_REQUIRE(socketpair(PF_UNIX, sotype, 0, socks) == 0); in nvlist_send_recv__send_nvlist()
364 nvlist_send_recv__send_closed_fd(short sotype) in nvlist_send_recv__send_closed_fd() argument
369 ATF_REQUIRE(socketpair(PF_UNIX, sotype, 0, socks) == 0); in nvlist_send_recv__send_closed_fd()
431 nvlist_send_recv__send_many_fds(short sotype) in nvlist_send_recv__send_many_fds() argument
438 ATF_REQUIRE(socketpair(PF_UNIX, sotype, 0, socks) == 0); in nvlist_send_recv__send_many_fds()
/freebsd/tools/regression/netinet/ipsockopt/
H A Dipsockopt.c645 int sotype; in test_ip_multicast_membership() local
648 sotypelen = sizeof(sotype); in test_ip_multicast_membership()
649 if (getsockopt(sock, SOL_SOCKET, SO_TYPE, &sotype, &sotypelen) < 0) in test_ip_multicast_membership()
656 if (sotype == SOCK_STREAM) in test_ip_multicast_membership()
/freebsd/sys/nfsclient/
H A Dnfsargs.h46 int sotype; /* Socket type */ member
/freebsd/sys/contrib/libnv/
H A Dnvlist.c1278 int *fds, soflags, sotype; in nvlist_recv() local
1281 solen = sizeof(sotype); in nvlist_recv()
1282 if (getsockopt(sock, SOL_SOCKET, SO_TYPE, &sotype, &solen) != 0) in nvlist_recv()
1285 soflags = sotype == SOCK_DGRAM ? MSG_PEEK : 0; in nvlist_recv()
1302 if (sotype == SOCK_DGRAM) in nvlist_recv()