Don't redefine PACKED
This commit is contained in:
parent
d3dfcc954d
commit
f3cd34f1b9
1 changed files with 4 additions and 1 deletions
5
nmrp.c
5
nmrp.c
|
@ -36,9 +36,12 @@
|
||||||
|
|
||||||
#define ETH_P_NMRP 0x0912
|
#define ETH_P_NMRP 0x0912
|
||||||
#define IP_LEN 4
|
#define IP_LEN 4
|
||||||
#define PACKED __attribute__((__packed__))
|
|
||||||
#define MAX_LOOP_RECV 1024
|
#define MAX_LOOP_RECV 1024
|
||||||
|
|
||||||
|
#ifndef PACKED
|
||||||
|
#define PACKED __attribute__((__packed__))
|
||||||
|
#endif
|
||||||
|
|
||||||
enum nmrp_code {
|
enum nmrp_code {
|
||||||
NMRP_C_NONE = 0,
|
NMRP_C_NONE = 0,
|
||||||
NMRP_C_ADVERTISE = 1,
|
NMRP_C_ADVERTISE = 1,
|
||||||
|
|
Loading…
Add table
Reference in a new issue