patch-1.3.26 linux/include/net/protocol.h

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

diff -u --recursive --new-file v1.3.25/linux/include/net/protocol.h linux/include/net/protocol.h
@@ -17,6 +17,7 @@
  *	Changes:
  *		Alan Cox	:	Added a name field and a frag handler
  *					field for later.
+ *		Alan Cox	:	Cleaned up, and sorted types.
  */
  
 #ifndef _PROTOCOL_H
@@ -29,16 +30,12 @@
 /* This is used to register protocols. */
 struct inet_protocol {
   int			(*handler)(struct sk_buff *skb, struct device *dev,
-				   struct options *opt, unsigned long daddr,
-				   unsigned short len, unsigned long saddr,
+				   struct options *opt, __u32 daddr,
+				   unsigned short len, __u32 saddr,
 				   int redo, struct inet_protocol *protocol);
-  int			(*frag_handler)(struct sk_buff *skb, struct device *dev,
-				   struct options *opt, unsigned long daddr,
-				   unsigned short len, unsigned long saddr,
-				   int redo, struct inet_protocol *protocol);
-  void			(*err_handler)(int err, unsigned char *buff,
-				       unsigned long daddr,
-				       unsigned long saddr,
+  void			(*err_handler)(int type, int code, unsigned char *buff,
+				       __u32 daddr,
+				       __u32 saddr,
 				       struct inet_protocol *protocol);
   struct inet_protocol *next;
   unsigned char		protocol;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this