patch-2.2.4 linux/include/net/route.h

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

diff -u --recursive --new-file v2.2.3/linux/include/net/route.h linux/include/net/route.h
@@ -57,6 +57,9 @@
 	__u32			src;
 	int			iif;
 	int			oif;
+#ifdef CONFIG_IP_ROUTE_FWMARK
+	__u32			fwmark;
+#endif
 	__u8			tos;
 	__u8			scope;
 };
@@ -92,6 +95,16 @@
 };
 
 extern struct rtable 	*rt_hash_table[RT_HASH_DIVISOR];
+
+struct ip_rt_acct
+{
+	__u32 	o_bytes;
+	__u32 	o_packets;
+	__u32 	i_bytes;
+	__u32 	i_packets;
+};
+
+extern struct ip_rt_acct ip_rt_acct[256];
 
 extern void		ip_rt_init(void);
 extern void		ip_rt_redirect(u32 old_gw, u32 dst, u32 new_gw,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)