diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-12 17:58:38 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-13 18:40:46 +0200 |
commit | 1a8a23d2da4fec6f090ec26bbe76eab2b77410e9 (patch) | |
tree | a524ddf5c6fd2774906ba73dba670a761e380e16 /net/ipv6/addrconf.c | |
parent | llc/snap: constify dev_addr passing (diff) | |
download | linux-1a8a23d2da4fec6f090ec26bbe76eab2b77410e9.tar.xz linux-1a8a23d2da4fec6f090ec26bbe76eab2b77410e9.zip |
ipv6: constify dev_addr passing
In preparation for netdev->dev_addr being constant
make all relevant arguments in ndisc constant.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index c6a90b7bbb70..d4fae16deec4 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -2237,12 +2237,12 @@ static int addrconf_ifid_6lowpan(u8 *eui, struct net_device *dev) static int addrconf_ifid_ieee1394(u8 *eui, struct net_device *dev) { - union fwnet_hwaddr *ha; + const union fwnet_hwaddr *ha; if (dev->addr_len != FWNET_ALEN) return -1; - ha = (union fwnet_hwaddr *)dev->dev_addr; + ha = (const union fwnet_hwaddr *)dev->dev_addr; memcpy(eui, &ha->uc.uniq_id, sizeof(ha->uc.uniq_id)); eui[0] ^= 2; |