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

Lines Matching defs:to

195      * which needs to be done, like prepare response
196 * packets to go back. This is essentially the
212 char dummy_buf[128] = "/var/l2tp/"; /* jz: needed to read /etc/ppp/var.options - just kick it if you dont like */
227 * We need to initiate a connection.
241 /* This is an attempt to bring up the tunnel */
266 /* We generate the challenge and make a note that we plan to
381 "%s: Denied connection to unauthorized peer %s\n",
399 /* FIXME: Do we need to be sure they specified a version number?
401 * to actually *do* anything with it, so...why check at this point?
402 * We shouldn't be requiring a bearer capabilities avp to be present in
432 * to use the same tid
480 /* We already know what to expect back */
512 /* FIXME: Do we need to be sure they specified a version number?
514 * to actually *do* anything with it, so...why check at this point?
515 * We shouldn't be requiring a bearer capabilities avp to be present in
571 log (LOG_WARN, "%s: No secret for authenticating to '%s'\n",
581 struct l2tp_tunnel_opts to;
582 to.ourtid = t->ourtid;
583 ioctl (server_socket, L2TPIOCGETTUNOPTS, &to);
584 to.tid = t->tid;
585 ioctl (server_socket, L2TPIOCSETTUNOPTS, &to);
614 "%s: Connection established to %s, %d. Local: %d, Remote: %d.\n",
619 /* This is part of a LAC, so we want to go ahead
641 struct l2tp_tunnel_opts to;
642 to.ourtid = t->ourtid;
643 ioctl (server_socket, L2TPIOCGETTUNOPTS, &to);
644 to.tid = t->tid;
645 ioctl (server_socket, L2TPIOCSETTUNOPTS, &to);
650 "%s: Connection established to %s, %d. Local: %d, Remote: %d. LNS session is '%s'\n",
667 "%s: Peer tried to disconnect without specifying tunnel ID\n",
675 "%s: Peer tried to disconnect with invalid TID (%d != %d)\n",
686 "%s: Peer tried to disconnect without specifying result code.\n",
691 "%s: Connection closed to %s, port %d (%s), Local: %d, Remote: %d\n",
716 "%s: Peer tried to initiate call without call ID\n",
718 /* Here it doesn't make sense to use the needclose flag because
741 * number avp is included in the ICRQ at all which its required to be.
743 * isn't a big deal, but it would be nice to have *some* sort of check
798 "%s: Peer tried to negotiate ICRP without specifying call ID\n",
876 /* Connect to the PPPOL2TP device */
883 /* Try to get PPP channel from PPPoL2TP device */
891 /* Attach to PPP channel */
893 log (LOG_DEBUG, "Couldn't attach channel to ppp device\n");
896 log (LOG_DEBUG, "Couldn't set /dev/ppp (channel) to nonblock\n");
1046 case OCRP: /* jz: nothing to do for OCRP, waiting for OCCN */
1048 case OCCN: /* jz: get OCCN, so the only thing we must do is to start the pppd */
1112 "%s: Peer tried to disconnect without specifying call ID\n",
1125 "%s: Unable to determine call to be disconnected.\n",
1136 "%s: Peer tried to disconnect with invalid CID (%d != %d)\n",
1146 "%s: Peer tried to disconnect without specifying result code.\n",
1151 "%s: Connection closed to %s, serial %d (%s)\n", __FUNCTION__,
1164 "%s: Don't know how to finish a message of type %d\n",
1321 log (LOG_DEBUG, "%s: Aempted to send payload on tunnel\n",
1328 /* has to be at least MIN_PAYLOAD_HDR_LEN
1332 log (LOG_DEBUG, "%s:Recieved to small of packet\n", __FUNCTION__);
1421 _u16 *r = (_u16 *) h; /* Nice to have raw word pointers */
1442 log (LOG_WARN, "%s: not enough space to decompress frame\n",
1523 /* Disable seq number check, to avoid L2TP disconnect in heavy traffic */
1537 /* Disable seq number check, to avoid L2TP disconnect in heavy traffic */
1558 * Check to see what the last thing
1640 directly to the tty */
1643 /*Foxconn, by MJ., I use STDOUT to replace the fd for writting.*/
1644 //log (LOG_DEBUG, "write %d bytes to tty:%d\n", err,c->fd);
1708 //log (LOG_DEBUG, "write %d bytes to ttyfd:%d\n", x, c->fd);
1734 * on a call which doesn't exist in our tunnel. We want to
1735 * send back a ZLB to keep the tunnel alive, on that particular
1736 * call if it was a CDN, otherwise, send a CDN to notify them
1745 but we need to stop any scheduled events (like Hello's in
1760 /* FIXME: If I'm not a CDN, I need to send a CDN */
1850 * Assuming we wrote to the ppp driver okay, we should
1857 We've received enough to fill our receive window. At
1869 We need to schedule sending a ZLB. FIXME: Should
1917 log (LOG_DEBUG, "%s: unable to expand payload!\n",
1944 ; /* cprintf(LOG_DEBUG, "Couldn't connect channel to ppp0\n"); */