4 #include <linux/if_tunnel.h>
7 /* Keep error state on tunnel for 30 sec */
8 #define IPTUNNEL_ERR_TIMEO (30*HZ)
10 /* 6rd prefix/relay information */
11 struct ip_tunnel_6rd_parm
{
12 struct in6_addr prefix
;
19 struct ip_tunnel
*next
;
20 struct net_device
*dev
;
22 int err_count
; /* Number of arrived ICMP errors */
23 unsigned long err_time
; /* Time when the last ICMP error arrived */
25 /* These four fields used only by GRE */
26 __u32 i_seqno
; /* The last seen seqno */
27 __u32 o_seqno
; /* The last output seqno */
28 int hlen
; /* Precalculated GRE header length */
31 struct ip_tunnel_parm parms
;
34 #ifdef CONFIG_IPV6_SIT_6RD
35 struct ip_tunnel_6rd_parm ip6rd
;
37 struct ip_tunnel_prl_entry
*prl
; /* potential router list */
38 unsigned int prl_count
; /* # of entries in PRL */
41 struct ip_tunnel_prl_entry
{
42 struct ip_tunnel_prl_entry
*next
;
45 struct rcu_head rcu_head
;
48 #define IPTUNNEL_XMIT() do { \
50 int pkt_len = skb->len - skb_transport_offset(skb); \
52 skb->ip_summed = CHECKSUM_NONE; \
53 ip_select_ident(iph, &rt->dst, NULL); \
55 err = ip_local_out(skb); \
56 if (likely(net_xmit_eval(err) == 0)) { \
57 txq->tx_bytes += pkt_len; \
61 stats->tx_aborted_errors++; \
This page took 0.030278 seconds and 5 git commands to generate.