Searched refs:disc_sock (Results 1 - 4 of 4) sorted by relevance
/netgear-R7000-V1.0.7.12_1.2.5/src/router/ppp/pppd/plugins/pppoe/ |
H A D | libpppoe.c | 26 int disc_sock=-1; variable 210 if(disc_sock<0){ 212 disc_sock = socket(PF_PACKET, SOCK_DGRAM, 0); 213 if( disc_sock < 0 ){ 220 retval = ioctl( disc_sock , SIOCGIFINDEX, &ifr); 229 retval = ioctl (disc_sock, SIOCGIFHWADDR, &ifr); 340 err = sendto(disc_sock, buf, data_len, 0, 427 error = recvfrom( disc_sock, p->buf, 1500, 0, 490 FD_SET(disc_sock,&in); 493 ret = select(disc_sock [all...] |
H A D | pppoe_client.c | 145 extern int disc_sock; 161 if( disc_sock < 0 ){ 163 disc_sock = socket(PF_PACKET, SOCK_DGRAM, 0); 164 if( disc_sock < 0 ){ 218 retval = bind( disc_sock ,
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/pppoecd/ |
H A D | pppoe2.c | 180 int disc_sock = 0, sess_sock = 0; /* PPPoE sockets */ variable 1285 if (disc_sock > 0) 1286 close(disc_sock); 1304 close(disc_sock); 1324 /* if (disc_sock >= 0 && (pppd_listen >= 0)) { */ 1325 if (disc_sock > 0) { 1338 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) { 1372 /* if (disc_sock && (pppd_listen > 0)) { */ 1373 if (disc_sock > 0) { 1384 if (send_packet(disc_sock, packe [all...] |
H A D | pppoe.c | 172 int disc_sock = 0, sess_sock = 0; /* PPPoE sockets */ variable 1423 close(disc_sock); 1457 if (disc_sock && (pppd_listen > 0)) { 1467 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) { 1507 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) { 1850 if ((disc_sock = open_interface(if_name,ETH_P_PPPOE_DISC,src_addr)) < 0) 1901 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) { 1929 if (send_packet(disc_sock, packet, pkt_size, if_name) < 0) { 1936 while ((ret_sock = read_packet(disc_sock, packet, &pkt_size)) != disc_sock || [all...] |
Completed in 54 milliseconds