/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/l2tpd-0.69/ |
H A D | avp.h | 29 int (*handler) (struct tunnel *, struct call *, void *, int); 31 taking a tunnel, call, the data, 38 extern int handle_avps (struct buffer *buf, struct tunnel *t, struct call *c); 85 extern void encrypt_avp (struct buffer *, _u16, struct tunnel *); 86 extern int decrypt_avp (char *, struct tunnel *); 87 extern int message_type_avp (struct tunnel *, struct call *, void *, int); 88 extern int protocol_version_avp (struct tunnel *, struct call *, void *, int); 89 extern int framing_caps_avp (struct tunnel *, struct call *, void *, int); 90 extern int bearer_caps_avp (struct tunnel *, struct call *, void *, int); 91 extern int firmware_rev_avp (struct tunnel *, struc [all...] |
H A D | control.h | 55 extern int handle_packet (struct buffer *, struct tunnel *, struct call *); 56 extern struct buffer *new_outgoing (struct tunnel *); 57 extern void add_control_hdr (struct tunnel *t, struct call *c, 59 extern int control_finish (struct tunnel *t, struct call *c); 60 extern void control_zlb (struct buffer *, struct tunnel *, struct call *);
|
H A D | aaa.h | 48 extern struct lns *get_lns (struct tunnel *); 54 extern int handle_challenge (struct tunnel *, struct challenge *);
|
H A D | misc.h | 18 struct tunnel; 33 struct tunnel *tunnel; /* Who owns this packet, if it's a control */ member in struct:buffer
|
H A D | l2tp.h | 116 struct tunnel struct 119 struct tunnel *next; /* Allows us to be linked easily */ 129 int tid; /* Peer's tunnel identifier */ 130 int ourtid; /* Our tunnel identifier */ 142 int state; /* State of tunnel */ 163 struct tunnel *head; 192 extern void tunnel_close (struct tunnel *t); 202 extern struct tunnel *new_tunnel (); 204 extern void destroy_tunnel (struct tunnel *); 207 extern void add_payload_hdr (struct tunnel *, struc [all...] |
H A D | network.c | 113 inline void extract (void *buf, int *tunnel, int *call) argument 116 * Extract the tunnel and call #'s, and fix the order of the 123 *tunnel = p->tid; 128 *tunnel = p->length; 178 struct tunnel *t; 188 t = buf->tunnel; 205 * Too many retries. Either kill the tunnel, or 206 * if there is no tunnel, just stop retransmitting. 213 "%s: Unable to deliver closing message for tunnel %d. Destroying anyway.\n", 225 "%s: Maximum retries exceeded for tunnel 272 int tunnel, call; /* Tunnel and call */ local [all...] |
H A D | call.h | 70 struct tunnel *container; /* Tunnel we belong to */ 102 extern struct call *new_call (struct tunnel *);
|
H A D | avp.c | 131 int message_type_avp (struct tunnel *t, struct call *c, void *data, 172 "%s: attempting to negotiate tunnel inside a call!\n", 237 "%s: attempting to negotiate ICRP on tunnel!=SCCCN\n", 275 "%s: attempting to negotiate OCRP on tunnel!=SCCCN\n", 337 int rand_vector_avp (struct tunnel *t, struct call *c, void *data, 370 int ignore_avp (struct tunnel *t, struct call *c, void *data, int datalen) 391 int seq_reqd_avp (struct tunnel *t, struct call *c, void *data, int datalen) 427 int result_code_avp (struct tunnel *t, struct call *c, void *data, 507 int protocol_version_avp (struct tunnel *t, struct call *c, void *data, 554 int framing_caps_avp (struct tunnel * [all...] |
H A D | call.c | 50 void add_payload_hdr (struct tunnel *t, struct call *c, struct buffer *buf) 220 * entire tunnel 224 for this tunnel. That means Hello's and any reminaing 232 if ((((struct buffer *) se->data)->tunnel == c->container) 233 || ((struct tunnel *) se->data == c->container)) 241 if ((struct tunnel *) se->data != c->container) 249 if ((struct tunnel *) se->data != c->container) 264 /* Really close this tunnel, as our 267 log (LOG_DEBUG, "%s: Actually closing tunnel %d\n", __FUNCTION__, 303 log (LOG_DEBUG, "%s: enqueing close message for tunnel\ 570 get_tunnel(int tunnel, unsigned int addr, int port) argument 587 get_call(int tunnel, int call, unsigned int addr, int port) argument [all...] |
H A D | file.h | 62 int exclusive; /* Only one tunnel per host? */ 65 int tun_rws; /* Receive window size (tunnel) */ 92 struct tunnel *t; /* Tunnel of this, if it's ready */ 100 int tun_rws; /* Receive window size (tunnel) */ 127 struct tunnel *t; /* Our tunnel */
|
H A D | l2tpd.c | 69 struct tunnel *t; 88 t = (struct tunnel *) se->data; 194 struct tunnel *t; 235 * we call call_close on each tunnel twice to get a StopCCN out 239 struct tunnel *st, *st2; 251 /* Disconnect the call (send CDN) tear down tunnel (StopCCN) */ 393 struct tunnel *st; 454 void destroy_tunnel (struct tunnel *t) 457 * Immediately destroy a tunnel (and all its calls) 459 * by the tunnel itsel [all...] |
H A D | aaa.c | 216 int handle_challenge (struct tunnel *t, struct challenge *chal) 227 log (LOG_DEBUG, "%s: making response for tunnel: %d\n", __FUNCTION__, 292 struct lns *get_lns (struct tunnel *t) 358 void encrypt_avp (struct buffer *buf, _u16 len, struct tunnel *t) 429 int decrypt_avp (char *buf, struct tunnel *t)
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/l2tp/ |
H A D | l2tp_core.c | 162 l2tp_session_id_hash(struct l2tp_tunnel *tunnel, u32 session_id) argument 164 return &tunnel->session_hlist[hash_32(session_id, L2TP_HASH_BITS)]; 169 struct l2tp_session *l2tp_session_find(struct net *net, struct l2tp_tunnel *tunnel, u32 session_id) argument 177 * tunnel. 179 if (tunnel == NULL) 182 session_list = l2tp_session_id_hash(tunnel, session_id); 183 read_lock_bh(&tunnel->hlist_lock); 186 read_unlock_bh(&tunnel->hlist_lock); 190 read_unlock_bh(&tunnel->hlist_lock); 196 struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, in argument 249 struct l2tp_tunnel *tunnel; local 268 struct l2tp_tunnel *tunnel; local 321 struct l2tp_tunnel *tunnel = session->tunnel; local 499 struct l2tp_tunnel *tunnel = session->tunnel; local 702 l2tp_udp_recv_core(struct l2tp_tunnel *tunnel, struct sk_buff *skb, int (*payload_hook)(struct sk_buff *skb)) argument 825 struct l2tp_tunnel *tunnel; local 855 struct l2tp_tunnel *tunnel = session->tunnel; local 883 struct l2tp_tunnel *tunnel = session->tunnel; local 927 struct l2tp_tunnel *tunnel = session->tunnel; local 998 struct l2tp_tunnel *tunnel = session->tunnel; local 1094 struct l2tp_tunnel *tunnel; local 1135 l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel) argument 1201 l2tp_tunnel_free(struct l2tp_tunnel *tunnel) argument 1300 struct l2tp_tunnel *tunnel = NULL; local 1428 l2tp_tunnel_delete(struct l2tp_tunnel *tunnel) argument 1456 struct l2tp_tunnel *tunnel; local 1530 l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) argument [all...] |
H A D | l2tp_debugfs.c | 40 int tunnel_idx; /* current tunnel */ 41 int session_idx; /* index of session within current tunnel */ 42 struct l2tp_tunnel *tunnel; member in struct:l2tp_dfs_seq_data 43 struct l2tp_session *session; /* NULL means get next tunnel */ 48 pd->tunnel = l2tp_tunnel_find_nth(pd->net, pd->tunnel_idx); 54 pd->session = l2tp_session_find_nth(pd->tunnel, pd->session_idx); 75 if (pd->tunnel == NULL) 80 /* NULL tunnel and session indicates end of list */ 81 if ((pd->tunnel == NULL) && (pd->session == NULL)) 102 struct l2tp_tunnel *tunnel local [all...] |
H A D | l2tp_core.h | 18 /* Per tunnel, session hash table size */ 89 struct l2tp_tunnel *tunnel; /* back pointer to tunnel member in struct:l2tp_session 142 /* Describes the tunnel. It contains info to track all the associated 194 static inline void *l2tp_tunnel_priv(struct l2tp_tunnel *tunnel) argument 196 return &tunnel->priv[0]; 206 struct l2tp_tunnel *tunnel; local 212 tunnel = (struct l2tp_tunnel *)(sk->sk_user_data); 213 if (tunnel == NULL) { 218 BUG_ON(tunnel 252 l2tp_tunnel_inc_refcount_1(struct l2tp_tunnel *tunnel) argument 257 l2tp_tunnel_dec_refcount_1(struct l2tp_tunnel *tunnel) argument [all...] |
H A D | l2tp_netlink.c | 48 struct l2tp_tunnel *tunnel; local 59 tunnel = l2tp_tunnel_find(net, tunnel_id); 60 if (tunnel) 61 session = l2tp_session_find(net, tunnel, session_id); 105 struct l2tp_tunnel *tunnel; local 151 tunnel = l2tp_tunnel_find(net, tunnel_id); 152 if (tunnel != NULL) { 162 peer_tunnel_id, &cfg, &tunnel); 172 struct l2tp_tunnel *tunnel; local 183 tunnel 197 struct l2tp_tunnel *tunnel; local 221 l2tp_nl_tunnel_send(struct sk_buff *skb, u32 pid, u32 seq, int flags, struct l2tp_tunnel *tunnel) argument 282 struct l2tp_tunnel *tunnel; local 324 struct l2tp_tunnel *tunnel; local 352 struct l2tp_tunnel *tunnel; local 557 struct l2tp_tunnel *tunnel = session->tunnel; local 648 struct l2tp_tunnel *tunnel = NULL; local [all...] |
H A D | l2tp_ppp.c | 31 * zero, the socket is treated as a special tunnel management socket. 130 struct sock *tunnel_sock; /* Pointer to the tunnel UDP 144 /* Helpers to obtain tunnel/session contexts from sockets. 251 * of the UDP tunnel 310 struct l2tp_tunnel *tunnel; local 318 /* Get session and tunnel contexts */ 325 tunnel = l2tp_sock_to_tunnel(ps->tunnel_sock); 326 if (tunnel == NULL) 329 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; 394 struct l2tp_tunnel *tunnel; local 627 struct l2tp_tunnel *tunnel; local 819 struct l2tp_tunnel *tunnel; local 888 struct l2tp_tunnel *tunnel; local 991 struct l2tp_tunnel *tunnel = session->tunnel; local 1117 pppol2tp_tunnel_ioctl(struct l2tp_tunnel *tunnel, unsigned int cmd, unsigned long arg) argument 1183 struct l2tp_tunnel *tunnel; local 1241 pppol2tp_tunnel_setsockopt(struct sock *sk, struct l2tp_tunnel *tunnel, int optname, int val) argument 1338 struct l2tp_tunnel *tunnel; local 1387 pppol2tp_tunnel_getsockopt(struct sock *sk, struct l2tp_tunnel *tunnel, int optname, int *val) argument 1464 struct l2tp_tunnel *tunnel; local 1533 struct l2tp_tunnel *tunnel; member in struct:pppol2tp_seq_data 1602 struct l2tp_tunnel *tunnel = v; local 1621 struct l2tp_tunnel *tunnel = session->tunnel; local [all...] |
H A D | l2tp_eth.c | 190 struct l2tp_tunnel *tunnel; local 197 tunnel = l2tp_tunnel_find(net, tunnel_id); 198 if (!tunnel) { 203 session = l2tp_session_find(net, tunnel, session_id); 220 session = l2tp_session_create(sizeof(*spriv), tunnel, session_id, 244 priv->tunnel_sock = tunnel->sock;
|
H A D | l2tp_ip.c | 130 struct l2tp_tunnel *tunnel = NULL; local 157 tunnel = session->tunnel; 158 if (tunnel == NULL) 162 if (tunnel->debug & L2TP_MSG_DATA) { 167 printk(KERN_DEBUG "%s: ip recv: ", tunnel->name); 177 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len, tunnel->recv_payload_hook); 190 tunnel = l2tp_tunnel_find(&init_net, tunnel_id); 191 if (tunnel != NULL) 192 sk = tunnel [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/ |
H A D | pppol2tp.c | 37 * zero, the socket is treated as a special tunnel management socket. 185 struct pppol2tp_tunnel *tunnel; member in struct:pppol2tp_send 211 struct sock *tunnel_sock; /* Pointer to the tunnel UDP 214 struct pppol2tp_addr tunnel_addr; /* Description of tunnel */ 216 struct pppol2tp_tunnel *tunnel; /* back pointer to tunnel member in struct:pppol2tp_session 243 /* The sk_user_data field of the tunnel's UDP socket. It contains info to track 250 struct workqueue_struct *wq; /* Per-tunnel work queue */ 291 /* Macros to derive session/tunnel context pointers from a socket. */ 304 #define SOCK_2_TUNNEL(sock, tunnel, er 323 pppol2tp_session_id_hash(struct pppol2tp_tunnel *tunnel, u16 session_id) argument 332 pppol2tp_session_find(struct pppol2tp_tunnel *tunnel, u16 session_id) argument 393 struct pppol2tp_tunnel *tunnel = session->tunnel; local 555 struct pppol2tp_tunnel *tunnel; local 805 struct pppol2tp_tunnel *tunnel; local 872 pppol2tp_udp_sock_send(struct kiocb *iocb, struct pppol2tp_session *session, struct pppol2tp_tunnel *tunnel, struct msghdr *msg, int total_len) argument 988 struct pppol2tp_tunnel *tunnel; local 1185 struct pppol2tp_tunnel *tunnel; local 1418 pppol2tp_tunnel_closeall(struct pppol2tp_tunnel *tunnel) argument 1475 pppol2tp_tunnel_free(struct pppol2tp_tunnel *tunnel) argument 1504 struct pppol2tp_tunnel *tunnel; local 1533 struct pppol2tp_tunnel *tunnel; local 1584 struct pppol2tp_tunnel *tunnel; local 1713 struct pppol2tp_tunnel *tunnel; local 1918 struct pppol2tp_tunnel *tunnel; local 2274 pppol2tp_tunnel_ioctl(struct pppol2tp_tunnel *tunnel, unsigned int cmd, unsigned long arg) argument 2340 struct pppol2tp_tunnel *tunnel; local 2389 pppol2tp_tunnel_setsockopt(struct sock *sk, struct pppol2tp_tunnel *tunnel, int optname, int val) argument 2495 struct pppol2tp_tunnel *tunnel; local 2535 pppol2tp_tunnel_getsockopt(struct sock *sk, struct pppol2tp_tunnel *tunnel, int optname, int *val) argument 2612 struct pppol2tp_tunnel *tunnel; local 2707 struct pppol2tp_tunnel *tunnel = NULL; local 2739 struct pppol2tp_tunnel *tunnel = v; local 2765 struct pppol2tp_tunnel *tunnel = v; local 2777 struct pppol2tp_tunnel *tunnel = v; local [all...] |
H A D | pppol2tp_v26.c | 37 * zero, the socket is treated as a special tunnel management socket. 184 struct pppol2tp_tunnel *tunnel; member in struct:pppol2tp_send 210 struct sock *tunnel_sock; /* Pointer to the tunnel UDP 213 struct pppol2tp_addr tunnel_addr; /* Description of tunnel */ 215 struct pppol2tp_tunnel *tunnel; /* back pointer to tunnel member in struct:pppol2tp_session 242 /* The sk_user_data field of the tunnel's UDP socket. It contains info to track 249 struct workqueue_struct *wq; /* Per-tunnel work queue */ 290 /* Macros to derive session/tunnel context pointers from a socket. */ 303 #define SOCK_2_TUNNEL(sock, tunnel, er 322 pppol2tp_session_id_hash(struct pppol2tp_tunnel *tunnel, u16 session_id) argument 331 pppol2tp_session_find(struct pppol2tp_tunnel *tunnel, u16 session_id) argument 392 struct pppol2tp_tunnel *tunnel = session->tunnel; local 549 struct pppol2tp_tunnel *tunnel; local 799 struct pppol2tp_tunnel *tunnel; local 866 pppol2tp_udp_sock_send(struct kiocb *iocb, struct pppol2tp_session *session, struct pppol2tp_tunnel *tunnel, struct msghdr *msg, int total_len) argument 982 struct pppol2tp_tunnel *tunnel; local 1157 struct pppol2tp_tunnel *tunnel; local 1375 pppol2tp_tunnel_closeall(struct pppol2tp_tunnel *tunnel) argument 1432 pppol2tp_tunnel_free(struct pppol2tp_tunnel *tunnel) argument 1461 struct pppol2tp_tunnel *tunnel; local 1490 struct pppol2tp_tunnel *tunnel; local 1541 struct pppol2tp_tunnel *tunnel; local 1666 struct pppol2tp_tunnel *tunnel; local 1866 struct pppol2tp_tunnel *tunnel; local 2222 pppol2tp_tunnel_ioctl(struct pppol2tp_tunnel *tunnel, unsigned int cmd, unsigned long arg) argument 2288 struct pppol2tp_tunnel *tunnel; local 2337 pppol2tp_tunnel_setsockopt(struct sock *sk, struct pppol2tp_tunnel *tunnel, int optname, int val) argument 2443 struct pppol2tp_tunnel *tunnel; local 2483 pppol2tp_tunnel_getsockopt(struct sock *sk, struct pppol2tp_tunnel *tunnel, int optname, int *val) argument 2560 struct pppol2tp_tunnel *tunnel; local 2655 struct pppol2tp_tunnel *tunnel = NULL; local 2687 struct pppol2tp_tunnel *tunnel = v; local 2713 struct pppol2tp_tunnel *tunnel = v; local 2725 struct pppol2tp_tunnel *tunnel = v; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iproute2/doc/ |
H A D | ip-tunnels.tex | 30 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...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/ipv4/ |
H A D | ip_gre.c | 81 - traceroute does not work. I planned to relay ICMP from tunnel, 99 (branches, that exceed pmtu are pruned) and tunnel mtu 125 /* Fallback tunnel: no source, no destination, no key, no options */ 147 it will match only tunnel with the same key; if it is not present, 148 it will match only keyless tunnel. 151 will match fallback tunnel. 168 /* Given src, dst and key, find appropriate for input tunnel. */ 537 struct ip_tunnel *tunnel; local 582 if ((tunnel = ipgre_tunnel_lookup(skb->dev, 585 struct net_device_stats *stats = &tunnel 663 struct ip_tunnel *tunnel = netdev_priv(dev); local 900 struct ip_tunnel *tunnel; local 1089 struct ip_tunnel *tunnel = netdev_priv(dev); local 1235 struct ip_tunnel *tunnel; local 1264 struct ip_tunnel *tunnel = netdev_priv(dev); local 1435 struct ip_tunnel *tunnel; local [all...] |
H A D | ipip.c | 27 /* tunnel.c: an IP tunnel driver 29 The purpose of this driver is to provide an IP tunnel through 30 which you can tunnel network traffic transparently across subnets. 41 Made the tunnels use dev->name not tunnel: when error reporting. 47 Changed to tunnel to destination gateway in addition to the 48 tunnel's pointopoint address 56 /* Things I wish I had known when writing the tunnel driver: 60 contains the tunnel device that _we_ are. 358 struct ip_tunnel *tunnel; local 396 struct ip_tunnel *tunnel = netdev_priv(dev); local 540 struct ip_tunnel *tunnel; local 719 struct ip_tunnel *tunnel = netdev_priv(dev); local 732 struct ip_tunnel *tunnel = netdev_priv(dev); local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/ipv6/ |
H A D | sit.c | 2 * IPv6 over IPv4 tunnel device - Simple Internet Transition (SIT) 540 struct ip_tunnel *tunnel; local 548 tunnel = ipip6_tunnel_lookup(dev_net(skb->dev), skb->dev, 550 if (tunnel != NULL) { 558 if ((tunnel->dev->priv_flags & IFF_ISATAP) && 559 !isatap_chksrc(skb, iph, tunnel)) { 560 tunnel->dev->stats.rx_errors++; 566 skb_tunnel_rx(skb, tunnel->dev); 586 __be32 try_6rd(struct in6_addr *v6dst, struct ip_tunnel *tunnel) argument 591 if (ipv6_prefix_equal(v6dst, &tunnel 627 struct ip_tunnel *tunnel = netdev_priv(dev); local 817 struct ip_tunnel *tunnel; local 1105 struct ip_tunnel *tunnel = netdev_priv(dev); local 1118 struct ip_tunnel *tunnel = netdev_priv(dev); local [all...] |