Packing was used because data was cast as a pointer and therefore,
header was padded excessively. Since we don't use it as a pointer, we
cast it as an incomplete array of chars. We don't need its size.
interface names. This is fixed but it is preferable to use XML
output since the parsing is more difficult in this case.
+ Only grab DMI information once. Only uses DMI for x86 platform.
+ + Padding issues with socket protocol. This introduces a change in
+ the socket protocol!
lldpd (0.5.4)
* Features:
enum hmsg_type type;
int16_t len;
pid_t pid;
-} __attribute__ ((__packed__));
+};
struct hmsg {
struct hmsg_hdr hdr;
- void *data;
-} __attribute__ ((__packed__));
+ char data[];
+};
#define HMSG_HEADER_SIZE sizeof(struct hmsg_hdr)
#define MAX_HMSGSIZE 8192