summaryrefslogtreecommitdiffstats
path: root/include/net/protocol.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/net/protocol.h
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/net/protocol.h')
-rw-r--r--include/net/protocol.h63
1 files changed, 30 insertions, 33 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h
index 979298832..3e60c1b31 100644
--- a/include/net/protocol.h
+++ b/include/net/protocol.h
@@ -34,39 +34,36 @@
/* This is used to register protocols. */
-struct inet_protocol {
- int (*handler)(struct sk_buff *skb, struct device *dev,
- struct options *opt, __u32 daddr,
- unsigned short len, __u32 saddr,
- int redo, struct inet_protocol *protocol);
- void (*err_handler)(int type, int code, unsigned char *buff,
- __u32 info, __u32 daddr, __u32 saddr,
- struct inet_protocol *protocol, int len);
- struct inet_protocol *next;
- unsigned char protocol;
- unsigned char copy:1;
- void *data;
- const char *name;
+struct inet_protocol
+{
+ int (*handler)(struct sk_buff *skb, unsigned short len);
+ void (*err_handler)(struct sk_buff *skb, unsigned char *dp);
+ struct inet_protocol *next;
+ unsigned char protocol;
+ unsigned char copy:1;
+ void *data;
+ const char *name;
};
#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
-struct inet6_protocol {
- int (*handler)(struct sk_buff *skb, struct device *dev,
- struct in6_addr *saddr,
- struct in6_addr *daddr,
- struct ipv6_options *opt,
- unsigned short len,
- int redo, struct inet6_protocol *protocol);
+struct inet6_protocol
+{
+ int (*handler)(struct sk_buff *skb, struct device *dev,
+ struct in6_addr *saddr,
+ struct in6_addr *daddr,
+ struct ipv6_options *opt,
+ unsigned short len,
+ int redo, struct inet6_protocol *protocol);
- void (*err_handler)(int type, int code, unsigned char *buff,
- __u32 info, struct in6_addr *saddr,
- struct in6_addr *daddr,
- struct inet6_protocol *protocol);
- struct inet6_protocol *next;
- unsigned char protocol;
- unsigned char copy:1;
- void *data;
- const char *name;
+ void (*err_handler)(int type, int code, unsigned char *buff,
+ __u32 info, struct in6_addr *saddr,
+ struct in6_addr *daddr,
+ struct inet6_protocol *protocol);
+ struct inet6_protocol *next;
+ unsigned char protocol;
+ unsigned char copy:1;
+ void *data;
+ const char *name;
};
#endif
@@ -78,12 +75,12 @@ extern struct inet6_protocol *inet6_protocol_base;
extern struct inet6_protocol *inet6_protos[MAX_INET_PROTOS];
#endif
-extern void inet_add_protocol(struct inet_protocol *prot);
-extern int inet_del_protocol(struct inet_protocol *prot);
+extern void inet_add_protocol(struct inet_protocol *prot);
+extern int inet_del_protocol(struct inet_protocol *prot);
#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
-extern void inet6_add_protocol(struct inet6_protocol *prot);
-extern int inet6_del_protocol(struct inet6_protocol *prot);
+extern void inet6_add_protocol(struct inet6_protocol *prot);
+extern int inet6_del_protocol(struct inet6_protocol *prot);
#endif
#endif /* _PROTOCOL_H */