[Gd-chatter] r11705 - trunk/libraries/protocols
lobo at gwydiondylan.org
lobo at gwydiondylan.org
Sun Feb 24 21:18:07 CET 2008
Author: lobo
Date: Sun Feb 24 21:18:06 2008
New Revision: 11705
Modified:
trunk/libraries/protocols/ethernet.dylan
Log:
Bug: 7299
fixed size of cdp-address-length and cdp-address-frame.address-count
Modified: trunk/libraries/protocols/ethernet.dylan
==============================================================================
--- trunk/libraries/protocols/ethernet.dylan (original)
+++ trunk/libraries/protocols/ethernet.dylan Sun Feb 24 21:18:06 2008
@@ -151,13 +151,15 @@
field cdp-protocol-type :: <unsigned-byte>;
field cdp-protocol-length :: <unsigned-byte>;
field cdp-protocol :: <raw-frame>, length: frame.cdp-protocol-length * 8;
- field cdp-address-length :: <unsigned-byte>;
+ field cdp-address-length :: <2byte-big-endian-unsigned-integer>;
field cdp-address :: <raw-frame>, length: frame.cdp-address-length * 8;
end;
define protocol cdp-addresses-frame (cdp-record)
over <cdp-record> #x2;
- field address-count :: <unsigned-byte>;
+ // FIXME: field address-count :: <big-endian-unsigned-integer-4byte>;
+ field address-count-first :: <unsigned-byte>;
+ field address-count :: <3byte-big-endian-unsigned-integer>;
repeated field cdp-addresses :: <cdp-address-frame>,
count: frame.address-count;
end;
More information about the chatter
mailing list