rdisc.c | 79 int rdisc_sock = -1; /* router-discovery raw socket */ variable in typeref:typename:int 160 if (rdisc_sock < 0) { 161 rdisc_sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); 162 if (rdisc_sock < 0) 163 BADERR(1,"rdisc_sock = socket()"); 164 fix_sock(rdisc_sock,"rdisc_sock"); 178 if (rdisc_sock < 0) { 212 if (setsockopt(rdisc_sock, IPPROTO_IP, 223 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_ADD_MEMBERSHIP [all...] |