mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
ipv6: raw: constify raw_v6_match() socket argument
This clarifies raw_v6_match() intent. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dc3731bad8
commit
db6af4fdb1
@ -6,7 +6,7 @@
|
||||
#include <net/raw.h>
|
||||
|
||||
extern struct raw_hashinfo raw_v6_hashinfo;
|
||||
bool raw_v6_match(struct net *net, struct sock *sk, unsigned short num,
|
||||
bool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num,
|
||||
const struct in6_addr *loc_addr,
|
||||
const struct in6_addr *rmt_addr, int dif, int sdif);
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
||||
struct raw_hashinfo raw_v6_hashinfo;
|
||||
EXPORT_SYMBOL_GPL(raw_v6_hashinfo);
|
||||
|
||||
bool raw_v6_match(struct net *net, struct sock *sk, unsigned short num,
|
||||
bool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num,
|
||||
const struct in6_addr *loc_addr,
|
||||
const struct in6_addr *rmt_addr, int dif, int sdif)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user