Commit 5fd348a0 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

net: core: constify mac addrs in selftests

Get it ready for constant netdev->dev_addr.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4973056c
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#include <net/udp.h> #include <net/udp.h>
struct net_packet_attrs { struct net_packet_attrs {
unsigned char *src; const unsigned char *src;
unsigned char *dst; const unsigned char *dst;
u32 ip_src; u32 ip_src;
u32 ip_dst; u32 ip_dst;
bool tcp; bool tcp;
...@@ -173,8 +173,8 @@ static int net_test_loopback_validate(struct sk_buff *skb, ...@@ -173,8 +173,8 @@ static int net_test_loopback_validate(struct sk_buff *skb,
struct net_device *orig_ndev) struct net_device *orig_ndev)
{ {
struct net_test_priv *tpriv = pt->af_packet_priv; struct net_test_priv *tpriv = pt->af_packet_priv;
unsigned char *src = tpriv->packet->src; const unsigned char *src = tpriv->packet->src;
unsigned char *dst = tpriv->packet->dst; const unsigned char *dst = tpriv->packet->dst;
struct netsfhdr *shdr; struct netsfhdr *shdr;
struct ethhdr *ehdr; struct ethhdr *ehdr;
struct udphdr *uhdr; struct udphdr *uhdr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment