• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/rp-l2tp/

Lines Matching defs:tunnel

247 *  tid -- tunnel ID
320 l2tp_tunnel *tunnel;
387 /* Get tunnel, session ID */
395 tunnel = l2tp_tunnel_find_by_my_id(tid);
396 if (!tunnel) {
397 l2tp_set_errmsg("Unknown tunnel %d", (int) tid);
400 if (tunnel->state != TUNNEL_ESTABLISHED) {
401 /* Drop frame if tunnel in wrong state */
405 ses = l2tp_tunnel_find_session(tunnel, sid);
407 l2tp_set_errmsg("Unknown session %d in tunnel %d",
571 * tunnel -- the tunnel it will be sent on (for secret for hiding)
585 l2tp_tunnel *tunnel,
604 if (tunnel &&
605 tunnel->peer &&
606 tunnel->peer->hide_avps &&
608 tunnel->peer->secret_len &&
620 dgram_do_hide(type, len, val, (unsigned char *) tunnel->peer->secret,
621 tunnel->peer->secret_len,
670 * tunnel -- the tunnel it was received on (for secret for hiding)
685 l2tp_tunnel *tunnel,
752 if (!tunnel) {
762 if (!tunnel->peer) {
766 if (!tunnel->peer->secret_len) {
789 (unsigned char *) tunnel->peer->secret,
790 tunnel->peer->secret_len,
810 * secret -- shared tunnel secret
878 * secret -- shared tunnel secret
957 * tunnel -- associated tunnel
970 l2tp_tunnel *tunnel,
983 val = l2tp_dgram_pull_avp(dgram, tunnel, mandatory, hidden, len,
1019 l2tp_tunnel *tunnel = ses->tunnel;
1021 /* Drop frame if tunnel and/or session in wrong state */
1022 if (!tunnel ||
1023 tunnel->state != TUNNEL_ESTABLISHED ||
1028 /* If there is a pending ack on the tunnel, cancel and ack now */
1029 if (tunnel->ack_handler) {
1030 Event_DelHandler(tunnel->es, tunnel->ack_handler);
1031 tunnel->ack_handler = NULL;
1032 tunnel_send_ZLB(tunnel);
1037 real_buf[2] = (tunnel->assigned_id >> 8);
1038 real_buf[3] = tunnel->assigned_id & 0xFF;
1044 (struct sockaddr const *) &tunnel->peer_addr,