]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Actually, the UNALIGNED might not be necessary.
authorGuy Harris <[email protected]>
Wed, 20 Sep 2017 18:20:36 +0000 (11:20 -0700)
committerGuy Harris <[email protected]>
Wed, 20 Sep 2017 18:20:36 +0000 (11:20 -0700)
print-ntp.c

index bf1ee461c7fb797b27ffb1fb15c435c07b0716e7..3ccf9833bb2dce16d83000955e0fb68c980533e8 100644 (file)
@@ -70,12 +70,12 @@ static const char tstr[] = " [|ntp]";
 struct l_fixedpt {
        nd_uint32_t int_part;
        nd_uint32_t fraction;
-} UNALIGNED;
+};
 
 struct s_fixedpt {
        nd_uint16_t int_part;
        nd_uint16_t fraction;
-} UNALIGNED;
+};
 
 /* rfc2030
  *                      1                   2                   3
@@ -135,7 +135,7 @@ struct ntp_time_data {
        struct l_fixedpt xmt_timestamp;
        nd_uint32_t key_id;
        nd_uint8_t  message_digest[20];
-} UNALIGNED;
+};
 /*
  *     Leap Second Codes (high order two bits)
  */
@@ -247,7 +247,7 @@ struct ntp_control_data {
        nd_uint16_t     offset;         /* Offset */
        nd_uint16_t     count;          /* Count */
        nd_uint8_t      data[564];      /* Data, [Padding, [Authenticator]] */
-} UNALIGNED;
+};
 
 /*
  * Print NTP time requests and responses