Home
last modified time | relevance | path

Searched refs:lsock (Results 1 – 2 of 2) sorted by relevance

/xnu-11417.121.6/tests/skywalk/
H A Dskt_flowswitch_ns_reserve.c119 int error, lsock, wsock; in skt_flowswitch_ns_bsd() local
147 lsock = socket(pf, stype, proto); in skt_flowswitch_ns_bsd()
148 assert(lsock >= 0); in skt_flowswitch_ns_bsd()
150 error = bind(lsock, &saddr.sa, saddr.sa.sa_len); in skt_flowswitch_ns_bsd()
154 error = getsockname(lsock, &saddr.sa, &len); in skt_flowswitch_ns_bsd()
159 error = listen(lsock, 1); in skt_flowswitch_ns_bsd()
164 ta.ta_sock = lsock; in skt_flowswitch_ns_bsd()
232 close(lsock); in skt_flowswitch_ns_bsd()
239 int error, lsock; in skt_flowswitch_ns_sky() local
327 lsock = socket(pf, stype, proto); in skt_flowswitch_ns_sky()
[all …]
H A Dskt_utunloop.c951 int tsock1, tsock2, lsock; // listening socket in skt_tunloop_common() local
953 lsock = makesocket(SOCK_STREAM, utun2addr); in skt_tunloop_common()
954 error = listen(lsock, 1); in skt_tunloop_common()
956 connectsocks(tsock1, lsock, false); in skt_tunloop_common()
957 tsock2 = acceptsock(lsock); in skt_tunloop_common()
958 error = close(lsock); in skt_tunloop_common()
964 lsock = makesocket(SOCK_STREAM, utun1addr); in skt_tunloop_common()
965 error = listen(lsock, 1); in skt_tunloop_common()
967 connectsocks(tsock3, lsock, false); in skt_tunloop_common()
968 tsock4 = acceptsock(lsock); in skt_tunloop_common()
[all …]