diff options
author | Paolo Abeni <pabeni@redhat.com> | 2017-09-28 16:51:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-01 05:55:47 +0300 |
commit | 7487449c86c65202b3b725c4524cb48dd65e4e6f (patch) | |
tree | 4adea181ccd96b769cf011bad6312fe6e07543b3 /include/net/protocol.h | |
parent | d41bb33ba33b8f8debe54ed36be6925eb496e354 (diff) | |
download | linux-7487449c86c65202b3b725c4524cb48dd65e4e6f.tar.xz |
IPv4: early demux can return an error code
Currently no error is emitted, but this infrastructure will
used by the next patch to allow source address validation
for mcast sockets.
Since early demux can do a route lookup and an ipv4 route
lookup can return an error code this is consistent with the
current ipv4 route infrastructure.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/protocol.h')
-rw-r--r-- | include/net/protocol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h index 65ba335b0e7e..4fc75f7ae23b 100644 --- a/include/net/protocol.h +++ b/include/net/protocol.h @@ -39,8 +39,8 @@ /* This is used to register protocols. */ struct net_protocol { - void (*early_demux)(struct sk_buff *skb); - void (*early_demux_handler)(struct sk_buff *skb); + int (*early_demux)(struct sk_buff *skb); + int (*early_demux_handler)(struct sk_buff *skb); int (*handler)(struct sk_buff *skb); void (*err_handler)(struct sk_buff *skb, u32 info); unsigned int no_policy:1, |