X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fprotocol.c;h=a8b4bdc27ec44f835671edc98d26c39927912308;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=a98eb5250d9a144b5f8c4357170c7e3981855ade;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/net/ipv4/protocol.c b/net/ipv4/protocol.c index a98eb5250..a8b4bdc27 100644 --- a/net/ipv4/protocol.c +++ b/net/ipv4/protocol.c @@ -48,14 +48,14 @@ #include #include -struct inet_protocol *inet_protos[MAX_INET_PROTOS]; +struct net_protocol *inet_protos[MAX_INET_PROTOS]; static spinlock_t inet_proto_lock = SPIN_LOCK_UNLOCKED; /* * Add a protocol handler to the hash tables */ -int inet_add_protocol(struct inet_protocol *prot, unsigned char protocol) +int inet_add_protocol(struct net_protocol *prot, unsigned char protocol) { int hash, ret; @@ -77,7 +77,7 @@ int inet_add_protocol(struct inet_protocol *prot, unsigned char protocol) * Remove a protocol from the hash tables. */ -int inet_del_protocol(struct inet_protocol *prot, unsigned char protocol) +int inet_del_protocol(struct net_protocol *prot, unsigned char protocol) { int hash, ret;