mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 12:16:41 +00:00
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>
This commit is contained in:
parent
4973056cce
commit
5fd348a050
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user