# | Line 90 | Line 90 | |
---|---|---|
90 | #define BOOTP_VENDOR_LEN 64 | |
91 | #define DHCP_OPT_LEN 312 | |
92 | ||
93 | + | #ifdef PRAGMA_PACK_SUPPORTED |
94 | + | #pragma pack(1) |
95 | + | #endif |
96 | + | |
97 | struct bootp_t { | |
98 | struct ip ip; | |
99 | struct udphdr udp; | |
# | Line 108 | Line 112 | struct bootp_t { | |
112 | uint8_t bp_sname[64]; | |
113 | uint8_t bp_file[128]; | |
114 | uint8_t bp_vend[DHCP_OPT_LEN]; | |
115 | < | }; |
115 | > | } PACKED__; |
116 | > | |
117 | > | #ifdef PRAGMA_PACK_SUPPORTED |
118 | > | #pragma pack(0) |
119 | > | #endif |
120 | ||
121 | void bootp_input(struct mbuf *m); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |