]> Pileus Git - ~andy/linux/blobdiff - include/net/if_inet6.h
inet: constify ip headers and in6_addr
[~andy/linux] / include / net / if_inet6.h
index fccc2180c61be3f00667ee00d9681cabb8255f24..3d982f72d48e4f3400faca7b3b704b2542388cda 100644 (file)
@@ -196,7 +196,7 @@ struct inet6_dev {
        struct rcu_head         rcu;
 };
 
-static inline void ipv6_eth_mc_map(struct in6_addr *addr, char *buf)
+static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf)
 {
        /*
         *      +-------+-------+-------+-------+-------+-------+
@@ -210,7 +210,7 @@ static inline void ipv6_eth_mc_map(struct in6_addr *addr, char *buf)
        memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32));
 }
 
-static inline void ipv6_tr_mc_map(struct in6_addr *addr, char *buf)
+static inline void ipv6_tr_mc_map(const struct in6_addr *addr, char *buf)
 {
        /* All nodes FF01::1, FF02::1, FF02::1:FFxx:xxxx */