summaryrefslogtreecommitdiffstats
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-12-16 05:34:03 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-12-16 05:34:03 +0000
commit967c65a99059fd459b956c1588ce0ba227912c4e (patch)
tree8224d013ff5d255420713d05610c7efebd204d2a /include/net/dst.h
parente20c1cc1656a66a2773bca4591a895cbc12696ff (diff)
Merge with Linux 2.1.72, part 1.
Diffstat (limited to 'include/net/dst.h')
-rw-r--r--include/net/dst.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 9d2a69100..155662f9d 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -40,6 +40,9 @@ struct dst_entry
unsigned window;
unsigned pmtu;
unsigned rtt;
+ unsigned long rate_last; /* rate limiting for ICMP */
+ unsigned long rate_tokens;
+
int error;
struct neighbour *neighbour;
@@ -49,7 +52,7 @@ struct dst_entry
int (*output)(struct sk_buff*);
struct dst_ops *ops;
-
+
char info[0];
};
@@ -57,12 +60,14 @@ struct dst_entry
struct dst_ops
{
unsigned short family;
- struct dst_entry * (*check)(struct dst_entry *, u32 cookie);
+ struct dst_entry * (*check)(struct dst_entry *, __u32 cookie);
struct dst_entry * (*reroute)(struct dst_entry *,
struct sk_buff *);
void (*destroy)(struct dst_entry *);
};
+#ifdef __KERNEL__
+
extern struct dst_entry * dst_garbage_list;
extern atomic_t dst_total;
@@ -122,5 +127,6 @@ void dst_free(struct dst_entry * dst)
}
__dst_free(dst);
}
+#endif
#endif /* _NET_DST_H */