Searched refs:soc (Results 1 – 1 of 1) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | rtquery.c | 118 int ch, bsize, soc; in main() local 281 soc = socket(PF_INET, SOCK_DGRAM, 0); in main() 282 if (soc < 0) { in main() 288 if (setsockopt(soc, IPPROTO_IP, IP_RECVIF, &on, sizeof (on))) in main() 293 if (setsockopt(soc, SOL_SOCKET, SO_RCVBUF, in main() 303 trace_loop(argv, soc); in main() 305 query_loop(argv, argc, soc); in main() 327 trace_loop(char *argv[], int soc) in trace_loop() argument 341 if (setsockopt(soc, IPPROTO_UDP, UDP_ANONPRIVBIND, in trace_loop() 347 if (bind(soc, (struct sockaddr *)&myaddr, sizeof (myaddr)) < 0) { in trace_loop() [all …]
|