Home
last modified time | relevance | path

Searched refs:netfd (Results 1 – 9 of 9) sorted by relevance

/titanic_50/usr/src/lib/libshell/common/scripts/
H A Dshtinyurl.sh112 integer netfd # http stream number
126 redirect {netfd}<> "/dev/tcp/${url_host}/80"
132 } >&${netfd}
135 parse_http_response httpresponse <&${netfd}
136 response="${ cat_http_body "${httpresponse.transfer_encoding}" <&${netfd} ; }"
139 redirect {netfd}<&-
158 integer netfd # http stream number
172 redirect {netfd}<> "/dev/tcp/${url_host}/80"
178 } >&${netfd}
181 parse_http_response httpresponse <&${netfd}
[all …]
H A Dtest_net_sctp.sh38 integer netfd
46 redirect {netfd}<> /dev/sctp/www.sctp.org/80
47 print "sctp fd=${netfd}"
54 print -u${netfd} -n -- "${request}\r\n"
57 cat <&${netfd}
60 redirect {netfd}<&-
H A Dshnote.sh214 integer netfd # http stream number
254 redirect {netfd}<> "/dev/tcp/${url_host}/80"
261 } >&${netfd}
264 parse_http_response httpresponse <&${netfd}
265 response="$(cat_http_body "${httpresponse.transfer_encoding}" <&${netfd})"
268 redirect {netfd}<&-
297 integer netfd # http stream number
323 redirect {netfd}<> "/dev/tcp/${url_host}/80"
331 print -u${netfd} -- "${request}\r\n"
334 parse_http_response httpresponse <&${netfd}
[all …]
H A Drssread.sh64 compound netfd=(
156 if (( _.netfd.in != -1 )) ; then
157 redirect {_.netfd.in}<&-
158 (( _.netfd.in=-1 ))
161 if (( _.netfd.in != _.netfd.out && _.netfd.out != -1 )) ; then
162 redirect {_.netfd.out}<&-
163 (( _.netfd.out=-1 ))
H A Dcrawlsrccomments.sh723 integer netfd
780 redirect {netfd}<> "/dev/tcp/${host}/${port}"
788 print -n -- "${request}\r\n" >&${netfd}
791 parse_http_response httpresponse <&${netfd}
792 cat_http_body "${httpresponse.transfer_encoding}" <&${netfd}
795 redirect {netfd}<&-
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_capture.c177 int netfd; in init_datalink() local
214 netfd = dlpi_fd(dh); in init_datalink()
220 if (ioctl(netfd, I_PUSH, "pfmod") < 0) in init_datalink()
223 if (strioctl(netfd, PFIOCSETF, -1, sizeof (*fp), in init_datalink()
228 if (ioctl(netfd, I_PUSH, "bufmod") < 0) in init_datalink()
231 if (strioctl(netfd, SBIOCSTIME, -1, sizeof (struct timeval), in init_datalink()
235 if (strioctl(netfd, SBIOCSCHUNK, -1, sizeof (uint_t), in init_datalink()
239 if (strioctl(netfd, SBIOCSSNAP, -1, sizeof (uint_t), in init_datalink()
247 if (ioctl(netfd, I_FLUSH, FLUSHR) < 0) in init_datalink()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c1338 int netfd; /* fd of logindmux connected to netf */ in protocol() local
1360 if ((netfd = open("/dev/logindmux", O_RDWR)) == -1) in protocol()
1366 if (ioctl(netfd, I_LINK, f) < 0) in protocol()
1384 if (ioctl(netfd, I_STR, &rloginmod) < 0) in protocol()
1385 fatal(netfd, "ioctl LOGDMX_IOC_QEXCHANGE of netfd failed\n"); in protocol()
1391 if (fstat(netfd, &buf)) in protocol()
1403 fatal(netfd, "ioctl LOGDMXZ_IOC_QEXCHANGE of ptmfd failed\n"); in protocol()
1421 if (ioctl(netfd, I_STR, &rloginmod) < 0) in protocol()
1422 fatal(netfd, "ioctl RL_IOC_ENABLE of netfd failed\n"); in protocol()
H A Din.telnetd.c2744 int netfd; /* fd of logindmux connected to netf */ in doit() local
2996 if ((netfd = open("/dev/logindmux", O_RDWR)) == -1) { in doit()
3002 if (ioctl(netfd, I_LINK, f) < 0) in doit()
3020 if (ioctl(netfd, I_STR, &telnetmod) < 0) in doit()
3021 fatal(netfd, "ioctl LOGDMX_IOC_QEXCHANGE of netfd failed\n"); in doit()
3027 if (fstat(netfd, &buf) < 0) { in doit()
3039 fatal(netfd, "ioctl LOGDMX_IOC_QEXCHANGE of ptmfd failed\n"); in doit()
3041 net = netfd; in doit()
3043 cryptmod_fd = netfd; in doit()
3101 fatalperror(netfd, "fork", errno); in doit()
[all …]
/titanic_50/usr/src/cmd/listen/
H A Dlisten.c1322 start_server(netfd, dbp) in start_server() argument
1323 int netfd; in start_server()
1413 if (pushmod(netfd, dbp->dbf_modules)) {