Searched refs:tunnel (Results 1 - 15 of 15) sorted by relevance

/asus-wl-520gu-7.0.1.45/src/router/rp-l2tp/
H A Dtunnel.c3 * tunnel.c
5 * Functions for manipulating L2TP tunnel objects.
19 "$Id: tunnel.c,v 1.1.1.1 2008/10/15 03:31:00 james26_jang Exp $";
38 static void tunnel_free(l2tp_tunnel *tunnel);
39 static int tunnel_send_SCCRQ(l2tp_tunnel *tunnel);
43 static void tunnel_handle_SCCRP(l2tp_tunnel *tunnel,
45 static void tunnel_handle_SCCCN(l2tp_tunnel *tunnel,
47 static void tunnel_handle_ICRQ(l2tp_tunnel *tunnel,
49 static void tunnel_process_received_datagram(l2tp_tunnel *tunnel,
51 static void tunnel_schedule_ack(l2tp_tunnel *tunnel);
105 tunnel_set_state(l2tp_tunnel *tunnel, int state) argument
153 tunnel_flow_control_stats(l2tp_tunnel *tunnel) argument
173 tunnel_outstanding_frames(l2tp_tunnel *tunnel) argument
209 tunnel_enqueue_dgram(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
243 tunnel_dequeue_head(l2tp_tunnel *tunnel) argument
268 tunnel_xmit_queued_messages(l2tp_tunnel *tunnel) argument
337 l2tp_tunnel_xmit_control_message(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
447 l2tp_tunnel *tunnel = malloc(sizeof(l2tp_tunnel)); local
475 tunnel_free(l2tp_tunnel *tunnel) argument
516 l2tp_tunnel *tunnel; local
569 tunnel_send_SCCRQ(l2tp_tunnel *tunnel) argument
659 l2tp_tunnel *tunnel; local
775 l2tp_tunnel *tunnel = NULL; local
875 tunnel_schedule_ack(l2tp_tunnel *tunnel) argument
908 l2tp_tunnel *tunnel = (l2tp_tunnel *) data; local
938 tunnel_dequeue_acked_packets(l2tp_tunnel *tunnel) argument
988 l2tp_tunnel *tunnel = (l2tp_tunnel *) data; local
1050 tunnel_send_StopCCN(l2tp_tunnel *tunnel, int result_code, int error_code, char const *fmt, ...) argument
1107 tunnel_handle_StopCCN(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
1177 tunnel_process_received_datagram(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
1243 l2tp_tunnel *tunnel = (l2tp_tunnel *) data; local
1260 tunnel_schedule_destruction(l2tp_tunnel *tunnel) argument
1300 tunnel_send_ZLB(l2tp_tunnel *tunnel) argument
1325 tunnel_handle_SCCRP(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
1377 tunnel_set_params(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
1563 tunnel_setup_hello(l2tp_tunnel *tunnel) argument
1594 l2tp_tunnel *tunnel = (l2tp_tunnel *) data; local
1619 tunnel_handle_SCCCN(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
1676 l2tp_tunnel *tunnel; local
1708 l2tp_tunnel_find_session(l2tp_tunnel *tunnel, uint16_t sid) argument
1726 tunnel_tell_sessions_tunnel_open(l2tp_tunnel *tunnel) argument
1751 l2tp_tunnel *tunnel = ses->tunnel; local
1787 l2tp_tunnel *tunnel = ses->tunnel; local
1813 tunnel_handle_ICRQ(l2tp_tunnel *tunnel, l2tp_dgram *dgram) argument
1865 l2tp_tunnel *tunnel; local
1889 l2tp_tunnel_stop_tunnel(l2tp_tunnel *tunnel, char const *reason) argument
1947 l2tp_tunnel_state_name(l2tp_tunnel *tunnel) argument
1961 l2tp_tunnel_first_session(l2tp_tunnel *tunnel, void **cursor) argument
1975 l2tp_tunnel_next_session(l2tp_tunnel *tunnel, void **cursor) argument
[all...]
H A Dsession.c25 static uint16_t session_make_sid(l2tp_tunnel *tunnel);
38 "idle", "wait-tunnel", "wait-reply", "wait-connect", "established"
129 l2tp_tunnel *tunnel; local
131 /* Find a tunnel to the peer */
132 tunnel = l2tp_tunnel_find_for_peer(peer, es);
133 if (!tunnel) return NULL;
151 ses->tunnel = tunnel;
152 ses->my_id = session_make_sid(tunnel);
162 /* Add it to the tunnel */
176 session_make_sid(l2tp_tunnel *tunnel) argument
201 l2tp_tunnel *tunnel = ses->tunnel; local
337 l2tp_tunnel *tunnel = ses->tunnel; local
394 l2tp_session_lns_handle_incoming_call(l2tp_tunnel *tunnel, uint16_t sid, l2tp_dgram *dgram, char const *calling_number) argument
513 l2tp_tunnel *tunnel = ses->tunnel; local
603 l2tp_tunnel *tunnel = ses->tunnel; local
[all...]
H A Ddgram.c247 * tid -- tunnel ID
320 l2tp_tunnel *tunnel; local
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
584 l2tp_dgram_add_avp(l2tp_dgram *dgram, l2tp_tunnel *tunnel, int mandatory, uint16_t len, uint16_t vendor, uint16_t type, void *val) argument
684 l2tp_dgram_pull_avp(l2tp_dgram *dgram, l2tp_tunnel *tunnel, int *mandatory, int *hidden, uint16_t *len, uint16_t *vendor, uint16_t *type, int *err) argument
969 l2tp_dgram_search_avp(l2tp_dgram *dgram, l2tp_tunnel *tunnel, int *mandatory, int *hidden, uint16_t *len, uint16_t vendor, uint16_t type) argument
1019 l2tp_tunnel *tunnel = ses->tunnel; local
[all...]
H A Dl2tp.h93 int retain_tunnel; /* If true, keep tunnel after last session is
94 deleted. Otherwise, delete tunnel too. */
105 /* An L2TP tunnel */
107 hash_bucket hash_by_my_id; /* Hash bucket for tunnel hash table */
108 hash_bucket hash_by_peer; /* Hash bucket for tunnel-by-peer table */
109 hash_table sessions_by_my_id; /* Sessions in this tunnel */
110 uint16_t my_id; /* My tunnel ID */
139 /* A session within a tunnel */
142 l2tp_tunnel *tunnel; /* Tunnel we belong to */ member in struct:l2tp_session_t
174 /* Called when a PPP frame arrives over tunnel */
[all...]
H A DMakefile.in29 OBJS=auth.o debug.o dgram.o main.o md5.o network.o options.o peer.o session.o tunnel.o utils.o
H A Ddebug.c126 * tunnel
128 * A string representation of tunnel (my_id/assigned_id)
131 l2tp_debug_tunnel_to_str(l2tp_tunnel *tunnel) argument
134 sprintf(buf, "%d/%d", (int) tunnel->my_id, (int) tunnel->assigned_id);
150 (int) session->tunnel->my_id,
151 (int) session->tunnel->assigned_id,
H A DMakefile30 OBJS=auth.o debug.o dgram.o main.o md5.o network.o options.o peer.o session.o tunnel.o utils.o
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/
H A Dpppol2tp.c37 * zero, the socket is treated as a special tunnel management socket.
207 struct sock *tunnel_sock; /* Pointer to the tunnel UDP
210 struct pppol2tp_addr tunnel_addr; /* Description of tunnel */
212 struct pppol2tp_tunnel *tunnel; /* back pointer to tunnel member in struct:pppol2tp_session
239 /* The user_data field of the tunnel's UDP socket. It contains info to track
297 /* Macros to derive session/tunnel context pointers from a socket. */
310 #define SOCK_2_TUNNEL(sock, tunnel, err, errval, label, quiet) \
311 tunnel = (struct pppol2tp_tunnel *)((sock)->user_data); \
312 if (!tunnel || tunne
329 pppol2tp_session_id_hash(struct pppol2tp_tunnel *tunnel, u16 session_id) argument
338 pppol2tp_session_find(struct pppol2tp_tunnel *tunnel, u16 session_id) argument
406 struct pppol2tp_tunnel *tunnel = session->tunnel; local
540 struct pppol2tp_tunnel *tunnel; local
775 struct pppol2tp_tunnel *tunnel; local
808 struct pppol2tp_tunnel *tunnel; local
868 pppol2tp_udp_sock_send(struct pppol2tp_session *session, struct pppol2tp_tunnel *tunnel, struct msghdr *msg, int total_len) argument
975 struct pppol2tp_tunnel *tunnel; local
1085 struct pppol2tp_tunnel *tunnel; local
1181 pppol2tp_tunnel_closeall(struct pppol2tp_tunnel *tunnel) argument
1238 pppol2tp_tunnel_free(struct pppol2tp_tunnel *tunnel) argument
1270 struct pppol2tp_tunnel *tunnel; local
1296 struct pppol2tp_tunnel *tunnel; local
1349 struct pppol2tp_tunnel *tunnel; local
1476 struct pppol2tp_tunnel *tunnel; local
1656 struct pppol2tp_tunnel *tunnel; local
1983 pppol2tp_tunnel_ioctl(struct pppol2tp_tunnel *tunnel, unsigned int cmd, unsigned long arg) argument
2046 struct pppol2tp_tunnel *tunnel; local
2095 pppol2tp_tunnel_setsockopt(struct sock *sk, struct pppol2tp_tunnel *tunnel, int optname, int val) argument
2197 struct pppol2tp_tunnel *tunnel; local
2236 pppol2tp_tunnel_getsockopt(struct sock *sk, struct pppol2tp_tunnel *tunnel, int optname, int *val) argument
2313 struct pppol2tp_tunnel *tunnel; local
2413 struct pppol2tp_tunnel *tunnel = NULL; local
2445 struct pppol2tp_tunnel *tunnel = v; local
2471 struct pppol2tp_tunnel *tunnel = v; local
2483 struct pppol2tp_tunnel *tunnel = v; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/rp-l2tp/handlers/
H A Dcmd.c90 * tunnel -- an L2TP tunnel
95 * Dumps tunnel description into str
98 describe_tunnel(l2tp_tunnel *tunnel, argument
106 (int) tunnel->my_id, (int) tunnel->assigned_id);
108 sprintf(buf, " NumSessions %d", (int) hash_num_entries(&tunnel->sessions_by_my_id));
110 sprintf(buf, " PeerIP %s State %s\n", inet_ntoa(tunnel->peer_addr.sin_addr),
111 l2tp_tunnel_state_name(tunnel));
116 for (ses = l2tp_tunnel_first_session(tunnel,
379 l2tp_tunnel *tunnel; local
433 l2tp_tunnel *tunnel; local
[all...]
H A Dsync-pppd.c179 l2tp_tunnel *tunnel = ses->tunnel; local
194 if (may_reestablish && tunnel->peer->persist &&
195 (tunnel->peer->maxfail == 0 || tunnel->peer->fail++ < tunnel->peer->maxfail)) {
198 t.tv_sec = tunnel->peer->holdoff;
200 Event_AddTimerHandler(tunnel->es, t, l2tp_tunnel_reestablish, tunnel->peer);
230 l2tp_tunnel *tunnel local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/doc/
H A Dip-tunnels.tex30 to create tunnel. It does not work in 2.2.0!
34 ip tunnel add MY-TUNNEL mode ipip remote 193.233.7.65
36 will create tunnel device with name \verb|MY-TUNNEL|. Now you may configure
50 to tunnel net 10.0.0.0 via router 193.233.7.65. It does not
78 Q: In 2.0.36 I used to load \verb|tunnel| device module and \verb|ipip| module.
79 I cannot find any \verb|tunnel| in 2.2!
82 and for all IPIP tunnel devices.
85 Q: \verb|traceroute| does not work over tunnel! Well, stop... It works,
88 A: Yes. By default tunnel driver copies \verb|ttl| value from
94 tunnel loop
[all...]
H A Dip-cref.tex119 \item \verb|tunnel| --- tunnel over IP
2332 \section{{\tt ip tunnel} --- tunnel configuration}
2335 \paragraph{Abbreviations:} \verb|tunnel|, \verb|tunl|.
2337 \paragraph{Object:} \verb|tunnel| objects are tunnels, encapsulating
2344 over IP and the \verb|ip tunnel| command can be found in~\cite{IP-TUNNELS}.
2346 \subsection{{\tt ip tunnel add} --- add a new tunnel\\
2347 {\tt ip tunnel chang
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/
H A Dip_gre.c77 - traceroute does not work. I planned to relay ICMP from tunnel,
95 (branches, that exceed pmtu are pruned) and tunnel mtu
118 /* Fallback tunnel: no source, no destination, no key, no options */
141 it will match only tunnel with the same key; if it is not present,
142 it will match only keyless tunnel.
145 will match fallback tunnel.
160 /* Given src, dst and key, find approriate for input tunnel. */
567 struct ip_tunnel *tunnel; local
608 if ((tunnel = ipgre_tunnel_lookup(iph->saddr, iph->daddr, key)) != NULL) {
622 tunnel
676 struct ip_tunnel *tunnel = (struct ip_tunnel*)dev->priv; local
1034 struct ip_tunnel *tunnel = (struct ip_tunnel*)dev->priv; local
1164 struct ip_tunnel *tunnel; local
1238 struct ip_tunnel *tunnel = (struct ip_tunnel*)dev->priv; local
[all...]
H A Dipip.c29 /* tunnel.c: an IP tunnel driver
31 The purpose of this driver is to provide an IP tunnel through
32 which you can tunnel network traffic transparently across subnets.
43 Made the tunnels use dev->name not tunnel: when error reporting.
49 Changed to tunnel to destination gateway in addition to the
50 tunnel's pointopoint address
58 /* Things I wish I had known when writing the tunnel driver:
62 contains the tunnel device that _we_ are.
477 struct ip_tunnel *tunnel; local
529 struct ip_tunnel *tunnel = (struct ip_tunnel*)dev->priv; local
816 struct ip_tunnel *tunnel; local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/
H A Dsit.c2 * IPv6 over IPv4 tunnel device - Simple Internet Transition (SIT)
387 struct ip_tunnel *tunnel; local
395 if ((tunnel = ipip6_tunnel_lookup(iph->saddr, iph->daddr)) != NULL) {
401 tunnel->stat.rx_packets++;
402 tunnel->stat.rx_bytes += skb->len;
403 skb->dev = tunnel->dev;
454 struct ip_tunnel *tunnel = (struct ip_tunnel*)dev->priv; local
455 struct net_device_stats *stats = &tunnel->stat;
456 struct iphdr *tiph = &tunnel->parms.iph;
458 u8 tos = tunnel
771 struct ip_tunnel *tunnel; local
[all...]

Completed in 123 milliseconds