1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Syed Shahrukh Hussain <syed.shahrukh@ossrevival.org>
Date: Wed, 2 Oct 2025 10:00:00 +0500
Subject: [PATCH] Fix packed attribute warning.
Forwarded: https://github.com/dleonard0/pktstat/pull/8
diff --git a/ipx.c b/ipx.c
index 35e9ddb..bf595d5 100644
--- a/ipx.c
+++ b/ipx.c
@@ -43,16 +43,16 @@
# define XXX __attribute__((__packed__))
typedef struct {
u_int32_t net XXX;
- u_int8_t host[6] XXX;
+ u_int8_t host[6];
u_int16_t port XXX;
} ipx_address, ipx_addr_t;
struct ipxhdr {
u_int16_t ipx_sum XXX; /* Checksum */
u_int16_t ipx_len XXX; /* Length, in bytes, including header */
- u_int8_t ipx_tc XXX; /* Transport Control (i.e. hop count) */
- u_int8_t ipx_pt XXX; /* Packet Type (i.e. lev 2 protocol) */
- ipx_addr_t ipx_dna XXX; /* Destination Network Address */
- ipx_addr_t ipx_sna XXX; /* Source Network Address */
+ u_int8_t ipx_tc; /* Transport Control (i.e. hop count) */
+ u_int8_t ipx_pt; /* Packet Type (i.e. lev 2 protocol) */
+ ipx_addr_t ipx_dna; /* Destination Network Address */
+ ipx_addr_t ipx_sna; /* Source Network Address */
};
# undef XXX
# else
|