Searched refs:disc_sock (Results 1 - 4 of 4) sorted by relevance

/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp/pppd/plugins/pppoe/
H A Dpppoe_client.c167 extern int disc_sock;
183 if( disc_sock < 0 ){
185 disc_sock = socket(PF_PACKET, SOCK_DGRAM, 0);
186 if( disc_sock < 0 ){
240 retval = bind( disc_sock ,
H A Dlibpppoe.c14 int disc_sock=-1; variable
217 if(disc_sock<0){
219 disc_sock = socket(PF_PACKET, SOCK_DGRAM, 0);
220 if( disc_sock < 0 ){
227 retval = ioctl( disc_sock , SIOCGIFINDEX, &ifr);
236 retval = ioctl (disc_sock, SIOCGIFHWADDR, &ifr);
353 err = sendto(disc_sock, buf, data_len, 0,
465 error = recvfrom( disc_sock, p->buf, 1500, 0,
588 FD_SET(disc_sock,&in);
591 ret = select(disc_sock
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/pppoecd/
H A Dpppoe2.c180 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 Dpppoe.c172 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 100 milliseconds