Searched refs:rdisc_sock (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | rdisc.c | 81 int rdisc_sock = -1; /* router-discovery raw socket */ variable 160 if (rdisc_sock < 0) { in get_rdisc_sock() 164 rdisc_sock = socket(PF_INET, SOCK_RAW, IPPROTO_ICMP); in get_rdisc_sock() 165 if (rdisc_sock < 0) in get_rdisc_sock() 167 fix_sock(rdisc_sock, "rdisc_sock"); in get_rdisc_sock() 169 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_RECVIF, &on, in get_rdisc_sock() 173 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_MULTICAST_TTL, in get_rdisc_sock() 220 if (rdisc_sock < 0) { in set_rdisc_mg() 246 if (setsockopt(rdisc_sock, IPPROTO_IP, in set_rdisc_mg() 256 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, in set_rdisc_mg() [all …]
|
H A D | main.c | 599 if (rdisc_sock >= 0 && FD_ISSET(rdisc_sock, &ibits)) { in main() 664 if (rdisc_sock >= 0) { in fix_select() 665 FD_SET(rdisc_sock, &fdbits); in fix_select() 666 if (sock_max <= rdisc_sock) in fix_select() 667 sock_max = rdisc_sock+1; in fix_select()
|
H A D | defs.h | 580 extern int rdisc_sock; /* router-discovery raw socket */
|