diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2007-12-11 05:25:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:57:12 -0500 |
commit | 87c3efbfdd1f98af14a1f60ff19f73d9a8d8da98 (patch) | |
tree | 938179d4904406a82d35018c0d7b895505213124 /include/net/protocol.h | |
parent | 853cbbaaa4ccdf221be5ab6afe967aa9998546b7 (diff) |
[IPV6]: make inet6_register_protosw to return an error code
This patch makes the inet6_register_protosw to return an error code.
The different protocols can be aware the registration was successful or
not and can pass the error to the initial caller, af_inet6.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/protocol.h')
-rw-r--r-- | include/net/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h index 1166ffb4b3ec..ad8c584233a6 100644 --- a/include/net/protocol.h +++ b/include/net/protocol.h | |||
@@ -102,7 +102,7 @@ extern void inet_unregister_protosw(struct inet_protosw *p); | |||
102 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) | 102 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) |
103 | extern int inet6_add_protocol(struct inet6_protocol *prot, unsigned char num); | 103 | extern int inet6_add_protocol(struct inet6_protocol *prot, unsigned char num); |
104 | extern int inet6_del_protocol(struct inet6_protocol *prot, unsigned char num); | 104 | extern int inet6_del_protocol(struct inet6_protocol *prot, unsigned char num); |
105 | extern void inet6_register_protosw(struct inet_protosw *p); | 105 | extern int inet6_register_protosw(struct inet_protosw *p); |
106 | extern void inet6_unregister_protosw(struct inet_protosw *p); | 106 | extern void inet6_unregister_protosw(struct inet_protosw *p); |
107 | #endif | 107 | #endif |
108 | 108 | ||