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>
Showing
- include/net/addrconf.h 11 additions, 11 deletionsinclude/net/addrconf.h
- include/net/if_inet6.h 2 additions, 2 deletionsinclude/net/if_inet6.h
- include/net/inetpeer.h 1 addition, 1 deletioninclude/net/inetpeer.h
- include/net/ip6_fib.h 4 additions, 4 deletionsinclude/net/ip6_fib.h
- include/net/ip6_route.h 9 additions, 9 deletionsinclude/net/ip6_route.h
- include/net/ipv6.h 2 additions, 2 deletionsinclude/net/ipv6.h
- include/net/ndisc.h 2 additions, 1 deletioninclude/net/ndisc.h
- include/net/route.h 2 additions, 1 deletioninclude/net/route.h
- include/net/xfrm.h 3 additions, 3 deletionsinclude/net/xfrm.h
- net/bridge/br_multicast.c 6 additions, 6 deletionsnet/bridge/br_multicast.c
- net/bridge/br_netfilter.c 2 additions, 2 deletionsnet/bridge/br_netfilter.c
- net/core/dev.c 4 additions, 4 deletionsnet/core/dev.c
- net/core/netpoll.c 1 addition, 1 deletionnet/core/netpoll.c
- net/dccp/ipv6.c 4 additions, 4 deletionsnet/dccp/ipv6.c
- net/ipv4/af_inet.c 2 additions, 2 deletionsnet/ipv4/af_inet.c
- net/ipv4/ah4.c 4 additions, 3 deletionsnet/ipv4/ah4.c
- net/ipv4/esp4.c 4 additions, 3 deletionsnet/ipv4/esp4.c
- net/ipv4/icmp.c 6 additions, 6 deletionsnet/ipv4/icmp.c
- net/ipv4/inet_diag.c 1 addition, 1 deletionnet/ipv4/inet_diag.c
- net/ipv4/inet_lro.c 2 additions, 2 deletionsnet/ipv4/inet_lro.c
Loading
Please register or sign in to comment