Skip to content

Commit

Permalink
ether: add types to record
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Mar 28, 2015
1 parent 2b310ec commit 71f342d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/pkt_ether.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
-define(ETH_P_LLDP, 16#88CC).

-record(ether, {
dhost = <<0,0,0,0,0,0>>,
shost = <<0,0,0,0,0,0>>,
type = ?ETH_P_IP,
crc = 0
dhost = <<0,0,0,0,0,0>> :: <<_:48>>,
shost = <<0,0,0,0,0,0>> :: <<_:48>>,
type = ?ETH_P_IP :: pkt:uint16_t(),
crc = 0 :: pkt:nibble()
}).

0 comments on commit 71f342d

Please sign in to comment.