forked from msantos/pkt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decoding previously did not honor RFC2890 (Key and Sequence Number Extensions to GRE), it now does. Also, the completely wrong GRE packet binary has been fixed in pkt_gre_tests.
- Loading branch information
Showing
3 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
%% RFC 2784 - Generic Routing Encapsulation (GRE) | ||
-record(gre, { | ||
c = 0 :: pkt:bit(), res0 = 0 :: 0..2#111111111111, ver = 0 :: 0..2#111, | ||
c = 0 :: pkt:bit(), r = 0 :: pkt:bit(), k = 0 :: pkt:bit(), s = 0 :: pkt:bit(), | ||
res0 = 0 :: 0..2#111111111, ver = 0 :: 0..2#111, | ||
type = ?ETH_P_IP :: pkt:uint16_t(), | ||
chksum = 0 :: pkt:uint16_t(), res1 = 0 :: pkt:uint16_t() | ||
chksum = 0 :: pkt:uint16_t(), res1 = 0 :: pkt:uint16_t(), | ||
key = 0 :: pkt:uint16_t(), sequence = 0 :: pkt:uint16_t() | ||
}). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters