Skip to content

Commit

Permalink
Deprecated, see rust-lang/rust#25541
Browse files Browse the repository at this point in the history
  • Loading branch information
AnIrishDuck committed Nov 13, 2015
1 parent 1aa9061 commit 8b98830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ether.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type MacAddr = [u8; ETH_ALEN];

#[allow(non_snake_case)]
#[repr(C)]
#[packed]
#[repr(packed)]
struct vlan_ethhdr {
h_dest : MacAddr,
h_source : MacAddr,
Expand All @@ -18,7 +18,7 @@ struct vlan_ethhdr {
}

#[repr(C)]
#[packed]
#[repr(packed)]
struct ethhdr {
h_dest : MacAddr,
h_source : MacAddr,
Expand Down
2 changes: 1 addition & 1 deletion src/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use util;
use std::mem;

#[repr(C)]
#[packed]
#[repr(packed)]
struct iphdr {
ihl_version: u8,
tos: u8,
Expand Down

0 comments on commit 8b98830

Please sign in to comment.