SOCKET_WRAPPER_PCAP_FILE on debian x86_64

Stefan (metze) Metzmacher metze at samba.org
Mon Oct 22 06:18:36 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Andrew,

> I've been trying to get some SOCKET_WRAPPER_PCAP_FILE based traces off a
> debian unstable x86_64 virtual machine, but it seems (from tracing in
> GDB) that we are failing this
> 	/*
> 	 * TODO: don't use the structs use plain buffer offsets
> 	 *       and PUSH_U8(), PUSH_U16() and PUSH_U32()
> 	 * 
> 	 * for now make sure we disable PCAP support
> 	 * if the struct has alignment!
> 	 */
> 	if (sizeof(h) != SWRAP_FILE_HDR_SIZE) {
> 		return NULL;
> 	}
> 
> Is there something I should be doing to ensure we don't get this
> aligned, or are you intending to fix it up to use push macros?  

I think using a byte-array and macros like CVAL(),SVAL(),IVAL() should
be used, but I didn't used them because of the different licence of
byteorder.h and socket_wrapper.c.

> I find the PCAP output to be most useful, so it was a disappointment for
> it not to work (particularly without a warning or notice). 

yes, it's really usefull:-)

Have you notices that we have 'make test-swrap-pcap' and
'make test-swrap-keep-pcap' now?

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHHEC8m70gjA5TCD8RAkl4AJ49T+aKVTGbf/ldZVrr4yiw0JzscwCgjbKq
eiC7spL/y9yw+5tNu9aBIMs=
=oHNi
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list