mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
inet: constify ip headers and in6_addr
Add const qualifiers to structs iphdr, ipv6hdr and in6_addr pointers where possible, to make code intention more obvious. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5f8629c526
commit
b71d1d426d
64 changed files with 316 additions and 310 deletions
|
@ -102,7 +102,8 @@ extern void ndisc_send_redirect(struct sk_buff *skb,
|
|||
struct neighbour *neigh,
|
||||
const struct in6_addr *target);
|
||||
|
||||
extern int ndisc_mc_map(struct in6_addr *addr, char *buf, struct net_device *dev, int dir);
|
||||
extern int ndisc_mc_map(const struct in6_addr *addr, char *buf,
|
||||
struct net_device *dev, int dir);
|
||||
|
||||
extern struct sk_buff *ndisc_build_skb(struct net_device *dev,
|
||||
const struct in6_addr *daddr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue