patch-2.1.68 linux/include/net/dst.h

Next file: linux/include/net/gc.h
Previous file: linux/include/linux/time.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.67/linux/include/net/dst.h linux/include/net/dst.h
@@ -40,6 +40,9 @@
 	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 @@
 	int			(*output)(struct sk_buff*);
 
 	struct  dst_ops	        *ops;
-	
+		
 	char			info[0];
 };
 
@@ -57,12 +60,14 @@
 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 @@
 	}
 	__dst_free(dst);
 }
+#endif
 
 #endif /* _NET_DST_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov