summaryrefslogtreecommitdiff
path: root/minecproxy/igmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'minecproxy/igmp.c')
-rw-r--r--minecproxy/igmp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/minecproxy/igmp.c b/minecproxy/igmp.c
index dc43a9f..f1d380d 100644
--- a/minecproxy/igmp.c
+++ b/minecproxy/igmp.c
@@ -26,7 +26,7 @@ struct igmp {
#define IPV4_MIN_HDR_LEN 20
#define IGMP_MIN_LEN 8
-struct __attribute__((packed, scalar_storage_order("big-endian"))) ipv4_hdr {
+struct _big_endian_ ipv4_hdr {
unsigned version:4;
unsigned ihl:4;
unsigned dscp:6;
@@ -52,20 +52,20 @@ enum igmp_type {
};
union igmp_msg {
- struct __attribute__((packed, scalar_storage_order("big-endian"))) {
+ struct _big_endian_ {
enum igmp_type type:8;
unsigned unknown:8;
unsigned checksum:16;
} common;
- struct __attribute__((packed, scalar_storage_order("big-endian"))) {
+ struct _big_endian_ {
enum igmp_type type:8;
unsigned resptime:8;
unsigned checksum:16;
unsigned addr:32;
} v2;
- struct __attribute__((packed, scalar_storage_order("big-endian"))) {
+ struct _big_endian_ {
enum igmp_type type:8;
unsigned reserved1:8;
unsigned checksum:16;
@@ -83,7 +83,7 @@ enum igmp_v3_record_type {
};
union igmp_v3_record {
- struct __attribute__((packed, scalar_storage_order("big-endian"))) {
+ struct _big_endian_ {
enum igmp_v3_record_type type:8;
unsigned auxlen:8;
unsigned nsrcs:16;
@@ -227,7 +227,7 @@ igmp_parse(struct igmp *igmp)
switch (igmp_msg->common.type) {
case IGMP_V1_MEMBERSHIP_REPORT:
debug(DBG_IGMP, "igmp_v1_membership_report");
- /* fall through */
+ _fallthrough_;
case IGMP_V2_MEMBERSHIP_REPORT: {
struct in_addr src;