mirror of
https://github.com/openvswitch/ovs
synced 2025-08-23 02:17:42 +00:00
31 lines
768 B
C
31 lines
768 B
C
|
#ifndef FIX_LINUX_IF_PACKET_H
|
||
|
#define FIX_LINUX_IF_PACKET_H
|
||
|
|
||
|
#ifndef __CHECKER__
|
||
|
#error "Use this header only with sparse. It is not a correct implementation."
|
||
|
#endif
|
||
|
|
||
|
#include_next <linux/if_packet.h>
|
||
|
|
||
|
/* Fix endianness of 'spkt_protocol' and 'sll_protocol' members. */
|
||
|
|
||
|
#define sockaddr_pkt rpl_sockaddr_pkt
|
||
|
struct sockaddr_pkt {
|
||
|
unsigned short spkt_family;
|
||
|
unsigned char spkt_device[14];
|
||
|
ovs_be16 spkt_protocol;
|
||
|
};
|
||
|
|
||
|
#define sockaddr_ll rpl_sockaddr_ll
|
||
|
struct sockaddr_ll {
|
||
|
unsigned short sll_family;
|
||
|
ovs_be16 sll_protocol;
|
||
|
int sll_ifindex;
|
||
|
unsigned short sll_hatype;
|
||
|
unsigned char sll_pkttype;
|
||
|
unsigned char sll_halen;
|
||
|
unsigned char sll_addr[8];
|
||
|
};
|
||
|
|
||
|
#endif
|