Skip to content

Commit

Permalink
llc: add types to record
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Apr 9, 2015
1 parent 7bc0800 commit c225a00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/pkt_llc.hrl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-record(llc, {
dsap = 16#AA, % Destination Service Access Point
ssap = 16#AA, % Source Service Access Point
control = 16#03,
dsap = 16#AA :: pkt:uint8_t(), % Destination Service Access Point
ssap = 16#AA :: pkt:uint8_t(), % Source Service Access Point
control = 16#03 :: pkt:uint8_t(),
%% SNAP (Sub-Network Access Protocol) fields
vendor = <<0, 0, 0>>,
pid = 0 % Ethertype for the frame
vendor = <<0, 0, 0>> :: <<_:24>>,
pid = 0 :: pkt:uint16_t() % Ethertype for the frame
}).

0 comments on commit c225a00

Please sign in to comment.