@@ -182,7 +182,7 @@ macro_rules! concrete {
182
182
183
183
/// A serial notify informs a client that a cache has new data.
184
184
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
185
- #[ repr( packed) ]
185
+ #[ repr( C , packed) ]
186
186
#[ allow( dead_code) ]
187
187
pub struct SerialNotify {
188
188
header : Header ,
@@ -211,7 +211,7 @@ concrete!(SerialNotify);
211
211
212
212
/// A serial query requests all updates since a router’s last update.
213
213
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
214
- #[ repr( packed) ]
214
+ #[ repr( C , packed) ]
215
215
#[ allow( dead_code) ]
216
216
pub struct SerialQuery {
217
217
header : Header ,
@@ -242,7 +242,7 @@ concrete!(SerialQuery);
242
242
///
243
243
/// This the serial query PDU without the header.
244
244
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
245
- #[ repr( packed) ]
245
+ #[ repr( C , packed) ]
246
246
pub struct SerialQueryPayload {
247
247
serial : u32
248
248
}
@@ -277,7 +277,7 @@ common!(SerialQueryPayload);
277
277
278
278
/// A reset query requests the complete current set of data.
279
279
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
280
- #[ repr( packed) ]
280
+ #[ repr( C , packed) ]
281
281
pub struct ResetQuery {
282
282
header : Header
283
283
}
@@ -301,7 +301,7 @@ concrete!(ResetQuery);
301
301
302
302
/// The cache response starts a sequence of payload PDUs with data.
303
303
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
304
- #[ repr( packed) ]
304
+ #[ repr( C , packed) ]
305
305
pub struct CacheResponse {
306
306
header : Header
307
307
}
@@ -325,7 +325,7 @@ concrete!(CacheResponse);
325
325
326
326
/// An IPv4 prefix is the payload PDU for route origin authorisation in IPv4.
327
327
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
328
- #[ repr( packed) ]
328
+ #[ repr( C , packed) ]
329
329
#[ allow( dead_code) ]
330
330
pub struct Ipv4Prefix {
331
331
header : Header ,
@@ -397,7 +397,7 @@ concrete!(Ipv4Prefix);
397
397
398
398
/// An IPv6 prefix is the payload PDU for route origin authorisation in IPv6.
399
399
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
400
- #[ repr( packed) ]
400
+ #[ repr( C , packed) ]
401
401
#[ allow( dead_code) ]
402
402
pub struct Ipv6Prefix {
403
403
header : Header ,
@@ -475,7 +475,7 @@ pub struct RouterKey {
475
475
}
476
476
477
477
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
478
- #[ repr( packed) ]
478
+ #[ repr( C , packed) ]
479
479
struct RouterKeyFixed {
480
480
header : Header ,
481
481
key_identifier : [ u8 ; 20 ] ,
@@ -784,7 +784,7 @@ pub struct Aspa {
784
784
}
785
785
786
786
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
787
- #[ repr( packed) ]
787
+ #[ repr( C , packed) ]
788
788
struct AspaFixed {
789
789
header : Header ,
790
790
customer : u32 ,
@@ -1394,7 +1394,7 @@ impl AsMut<[u8]> for EndOfData {
1394
1394
///
1395
1395
/// This type is the version used in protocol version 0.
1396
1396
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
1397
- #[ repr( packed) ]
1397
+ #[ repr( C , packed) ]
1398
1398
pub struct EndOfDataV0 {
1399
1399
header : Header ,
1400
1400
serial : u32
@@ -1427,7 +1427,7 @@ concrete!(EndOfDataV0);
1427
1427
///
1428
1428
/// This type is the version used beginning with protocol version 1.
1429
1429
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
1430
- #[ repr( packed) ]
1430
+ #[ repr( C , packed) ]
1431
1431
pub struct EndOfDataV1 {
1432
1432
header : Header ,
1433
1433
serial : u32 ,
@@ -1481,7 +1481,7 @@ concrete!(EndOfDataV1);
1481
1481
/// serial number indicated in the serial query, it responds with a cache
1482
1482
/// reset.
1483
1483
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
1484
- #[ repr( packed) ]
1484
+ #[ repr( C , packed) ]
1485
1485
pub struct CacheReset {
1486
1486
header : Header
1487
1487
}
@@ -1595,7 +1595,7 @@ impl AsMut<[u8]> for Error {
1595
1595
1596
1596
/// The header portion of an RTR PDU.
1597
1597
#[ derive( Clone , Copy , Debug , Default , Eq , Hash , PartialEq ) ]
1598
- #[ repr( packed) ]
1598
+ #[ repr( C , packed) ]
1599
1599
pub struct Header {
1600
1600
/// The version of the PDU.
1601
1601
version : u8 ,
0 commit comments