[Gd-chatter] r11706 - trunk/libraries/protocols
lobo at gwydiondylan.org
lobo at gwydiondylan.org
Sun Feb 24 21:56:03 CET 2008
Author: lobo
Date: Sun Feb 24 21:56:02 2008
New Revision: 11706
Added:
trunk/libraries/protocols/eigrp.dylan (contents, props changed)
Modified:
trunk/libraries/protocols/protocols-library.dylan
trunk/libraries/protocols/protocols.hdp
Log:
Bug: 7299
Added basic support for EIGRP (Enhanced Interior Gateway Routing Protocol)
Added: trunk/libraries/protocols/eigrp.dylan
==============================================================================
--- (empty file)
+++ trunk/libraries/protocols/eigrp.dylan Sun Feb 24 21:56:02 2008
@@ -0,0 +1,24 @@
+module: eigrp
+
+//Enhanced Interior Gateway Routing Protocol (EIGRP)
+//http://www.rhyshaden.com/eigrp.htm
+//http://www.oreilly.com/catalog/iprouting/chapter/ch04.html
+
+define protocol eigrp (container-frame)
+ summary "EIGRP Opcode: %= AS Number: %=", opcode, autonomoussystem;
+ over <ipv4-frame> 88;
+ field version :: <unsigned-byte> = 2;
+// Opcodes
+// 1 - Update
+// 2 - Request
+// 3 - Query
+// 4 - Replay
+// 5 - Hello
+ layering field opcode :: <unsigned-byte> = 5;
+//checksum(this layer + payload)
+ field checksum :: <2byte-big-endian-unsigned-integer>;
+ field flags :: <big-endian-unsigned-integer-4byte> = 0;
+ field sequence :: <big-endian-unsigned-integer-4byte> = 0;
+ field acknowledge :: <big-endian-unsigned-integer-4byte> = 0;
+ field autonomoussystem :: <big-endian-unsigned-integer-4byte> = 100;
+end;
Modified: trunk/libraries/protocols/protocols-library.dylan
==============================================================================
--- trunk/libraries/protocols/protocols-library.dylan (original)
+++ trunk/libraries/protocols/protocols-library.dylan Sun Feb 24 21:56:02 2008
@@ -561,4 +561,12 @@
use ipv4, import: { <ipv4-address> };
use ipv6, import: { <ipv6-address> };
use dns, import: { <domain-name> };
-end;
\ No newline at end of file
+end;
+
+define module eigrp
+ use dylan;
+ use packetizer;
+
+ use ipv4, import: { <ipv4-frame> };
+end;
+
Modified: trunk/libraries/protocols/protocols.hdp
==============================================================================
--- trunk/libraries/protocols/protocols.hdp (original)
+++ trunk/libraries/protocols/protocols.hdp Sun Feb 24 21:56:02 2008
@@ -19,4 +19,5 @@
cidr
hsrp
ntp
- socks
\ No newline at end of file
+ socks
+ eigrp
More information about the chatter
mailing list