Searched refs:ospf_sock (Results 1 - 1 of 1) sorted by relevance
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/ospfd/ |
H A D | ospf_network.c | 151 int ospf_sock; local 154 ospf_sock = socket (AF_INET, SOCK_RAW, IPPROTO_OSPFIGP); 155 if (ospf_sock < 0) 164 ret = setsockopt (ospf_sock, IPPROTO_IP, IP_TOS, 168 zlog_warn ("can't set sockopt IP_TOS %d to socket %d", tos, ospf_sock); 169 close (ospf_sock); /* Prevent sd leak. */ 175 ret = setsockopt (ospf_sock, IPPROTO_IP, IP_HDRINCL, &hincl, sizeof (hincl)); 180 ret = setsockopt (ospf_sock, IPPROTO_IP, IP_PKTINFO, &hincl, sizeof (hincl)); 184 ret = setsockopt (ospf_sock, IPPROTO_IP, IP_RECVIF, &hincl, sizeof (hincl)); 191 return ospf_sock; [all...] |
Completed in 102 milliseconds