Work on endianness
commitff010b8b7f76651ba43ec03d0cf99bf6ce2c4f7e
authorKirill Smelkov <kirr@navytux.spb.ru>
Sat, 5 Nov 2011 17:19:09 +0000 (5 21:19 +0400)
committerKirill Smelkov <kirr@navytux.spb.ru>
Sat, 5 Nov 2011 17:19:09 +0000 (5 21:19 +0400)
treeef95002776aec0ca1cf0f350cf7f4966fcb00f19
parent5aa6214018abf04c26d2626a77b4fa6dc4a51557
Work on endianness

Now the proto should be right -- all data that go on the wire is in
network byteorder.

Static ASSERT macro taken from CCAN's[1] build_assert[2] which is in
public domain.

[1] http://ccodearchive.net/
[2] http://git.ozlabs.org/?p=ccan;a=blob;f=ccan/build_assert/build_assert.h;h=24e59c44cd930173178ac9b6e101b0af64a879e9;hb=HEAD

Signed-off-by: Kirill Smelkov <kirr@navytux.spb.ru>
capture.cpp
net.cpp
rawv.h