[Xorp-cvs] XORP cvs commit: xorp/libproto
Pavlin Radoslavov
pavlin at icir.org
Thu Aug 24 11:36:53 PDT 2006
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin at xorpc.icir.org 2006-08-24 18:36:53 UTC
XORP CVS repository
Modified files:
libproto packet.hh
Log message:
Add new functions that can be used to extract and embed integers
to a buffer by preserving the byte ordering in host order:
extract_host_8, embed_host_8, extract_host_16, embed_host_16,
extract_host_32, embed_host_32.
Note that we don't define extract_host_24() and embed_host_24(),
because 3 octets of data might occupy either 3 or 4 octets (depending
on the byte ordering). Hence, extract_host_32() and embed_host_32()
should be used instead.
Revision Changes Path
1.4 +136 -1; commitid: 1651c44edf1bd7ea6; xorp/libproto/packet.hh
More information about the Xorp-cvs
mailing list