mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
Commit 73c85181d (netdev-linux: Read packet auxdata to obtain vlan_tid)
added #include <linux/if_packet.h> to this file, to get the definition
of PACKET_AUXDATA and some other definitions, but on RHEL 6.1 this
provoked compiler errors:
In file included from /usr/include/linux/rtnetlink.h:5,
from lib/netdev-linux.c:34:
/usr/include/linux/netlink.h:34: error: expected specifier-qualifier-list
before 'sa_family_t'
Since the old #includes worked everywhere, and this file already defined
its own versions of most of the new macros that it needed, this commit just
reverts the old #includes and adds the one macro definition it didn't
already have.
(RHEL 6.1 isn't necessarily the only platform where this is a problem, but
it's the first one for which we noticed the problem.)
This switches the definition of sockaddr_ll used from the Linux one, which
uses __be16 for sll_protocol, to the glibc one, which uses plain "unsigned
short int". This makes sparse complain (rightly), so this commit also
adds a sparse-specific header that uses ovs_be16 to prevent the warning.
Signed-off-by: Ben Pfaff <blp@nicira.com>
11 lines
351 B
Makefile
11 lines
351 B
Makefile
noinst_HEADERS += \
|
|
include/sparse/arpa/inet.h \
|
|
include/sparse/assert.h \
|
|
include/sparse/math.h \
|
|
include/sparse/netinet/in.h \
|
|
include/sparse/netinet/ip6.h \
|
|
include/sparse/netpacket/packet.h \
|
|
include/sparse/pthread.h \
|
|
include/sparse/sys/socket.h \
|
|
include/sparse/sys/wait.h
|