Session sends SMB2 negotiate rather than SMB1
Add Copy method to NetworkBuffer

Copy values from the NetworkBuffer, taking into account network byte
order to host byte order.
Add methods to serialize and deserialize array of ints to NetworkBuffer
Add Copy tests for out-of-bounds and overflow
Merge pull request #24 from tcoyne/copy-from-buffer

Add Copy method to NetworkBuffer
Remove smb message struct

It is encapsulated in SMBMessage.
Along with this we don't need the test cases for verifying SMB structure sizes -
we don't rely on packing to make sure the serialization is occurring correct, so
the tests are meaningless now.
Set up parser to parse both SMB and SMB2
Parse SMB response header
Parse SMB negotiate response
Fix compile error checking loose throw specifiers
Fix command comparison in parser

The type was being read incorrectly and examining too many bytes
Add an empty handler for SMB negotiate
Add ability for buffer to switch endian conversion

Turns out that netbios headers are big endian, but all SMB (all versions) are
little endian.
Make the endian switch barrier a template parameter

Since we have the size of the buffer as a template anyway
Make unit tests us the templated switch index rather than assuming 4

The unit tests assumed the original implementation of a hardcoded switch at
index 4 (for netbios sessions). Update the unit tests to use the templated
switch index and add a test for no switch (index 0).
Merge branch 'buffer' into smb

Conflicts:
	src/buffer.hpp
	src/parser.cpp
	src/serializable.hpp
	test/buffer_test.cpp
Parse SMB response from little endian
Set netbios size in SMB messages

In both SMB and SMB2, use the htobe16 functions to set the length field in the
netbios header
Merge pull request #26 from tcoyne/buffer

Buffer accounts for switch from big endian to little endian
Change Status to the 32 bit uint it actually is