• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/pppoecd/

Lines Matching refs:disc_sock

180 int disc_sock = 0, sess_sock = 0; /* PPPoE sockets */
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, packet, pkt_size+14, if_name) < 0) {
1435 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) {
1450 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) {
1948 if ((disc_sock = open_interface(if_name,ETH_P_PPPOE_DISC,src_addr)) < 0)
2016 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) {
2057 if (send_packet(disc_sock, packet, pkt_size, if_name) < 0) {
2064 while ((ret_sock = read_packet(disc_sock, packet, &pkt_size)) != disc_sock ||
2071 if (ret_sock == disc_sock &&
2087 if (send_packet(disc_sock, packet, pkt_size, if_name) < 0) {
2106 while( read_packet(disc_sock, packet2, &pkt2_size) == disc_sock )
2172 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) {
2188 while ((ret_sock=read_packet(disc_sock, packet, &pkt_size)) != disc_sock ||
2192 while (read_packet(disc_sock, packet, &pkt_size) != disc_sock ||
2199 if (ret_sock != disc_sock) {
2237 if (send_packet(disc_sock, packet, pkt_size+14, if_name) < 0) {
2401 FD_SET(disc_sock, &allfdset);
2403 if (select((sess_sock>disc_sock?sess_sock:disc_sock) + 1, &allfdset,
2407 if (FD_ISSET(disc_sock, &allfdset)) {
2409 if (read_packet_nowait(disc_sock, packet, &pkt_size) == disc_sock) {
2422 if ((read_packet2(disc_sock, packet, &pkt_size) == disc_sock) &&