diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-23 01:20:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-24 14:59:44 +0200 |
commit | 5fd348a050f7da8ad04d8017178ee5f9e3de917a (patch) | |
tree | 5093a28a5021b6a19065d9887157816fd10ebc7e /net/core | |
parent | net: convert users of bitmap_foo() to linkmode_foo() (diff) | |
download | linux-5fd348a050f7da8ad04d8017178ee5f9e3de917a.tar.xz linux-5fd348a050f7da8ad04d8017178ee5f9e3de917a.zip |
net: core: constify mac addrs in selftests
Get it ready for constant netdev->dev_addr.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/selftests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/selftests.c b/net/core/selftests.c index 9077fa969892..acb1ee97bbd3 100644 --- a/net/core/selftests.c +++ b/net/core/selftests.c @@ -15,8 +15,8 @@ #include <net/udp.h> struct net_packet_attrs { - unsigned char *src; - unsigned char *dst; + const unsigned char *src; + const unsigned char *dst; u32 ip_src; u32 ip_dst; bool tcp; @@ -173,8 +173,8 @@ static int net_test_loopback_validate(struct sk_buff *skb, struct net_device *orig_ndev) { struct net_test_priv *tpriv = pt->af_packet_priv; - unsigned char *src = tpriv->packet->src; - unsigned char *dst = tpriv->packet->dst; + const unsigned char *src = tpriv->packet->src; + const unsigned char *dst = tpriv->packet->dst; struct netsfhdr *shdr; struct ethhdr *ehdr; struct udphdr *uhdr; |