Skip to content

Commit

Permalink
zebra: Reuse netinet/if_ether.h to avoid redefinition of struct ethhdr
Browse files Browse the repository at this point in the history
In file included from /usr/include/net/ethernet.h:10,
                 from ./lib/prefix.h:26,
                 from zebra/tc_netlink.c:32:
/usr/include/netinet/if_ether.h:115:8: error: redefinition of 'struct ethhdr'
  115 | struct ethhdr {
      |        ^~~~~~
In file included from zebra/tc_netlink.c:28:
/usr/include/linux/if_ether.h:169:8: note: originally defined here
  169 | struct ethhdr {
      |        ^~~~~~

Signed-off-by: Donatas Abraitis <[email protected]>
(cherry picked from commit 83f496b)
  • Loading branch information
ton31337 authored and mergify[bot] committed Nov 7, 2022
1 parent 99477bc commit f04dff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/tc_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#ifdef HAVE_NETLINK

#include <linux/if_ether.h>
#include <netinet/if_ether.h>
#include <sys/socket.h>

#include "if.h"
Expand Down

0 comments on commit f04dff1

Please sign in to comment.