> I have a patch to the
> Politecnico di Torino code that gets the (primary) IP address and
> netmask for an interface from the registry on NT; however, it doesn't
> seem to be in any obvious place in the registry on Windows OT, and I'm
> not sure whether there's another way to get it.
Windows NT SP5 and a source distribution for the Torino code give a
working application here. BUT, as I said last week there's a "bug" in
packet-smb.c that made me unable to capture. This might have to do
with me being on a VERY busy network: If I capture 1000 frames
right now I'll expect more than half of it to be SMB... At least
10% of those packets trigger the bug.
The bug itself has to do with the MSVC++ 6 version of strlen being
unable to handle empty string. I know this sounds unlikely, but if
I supply a NULL pointer to it, it generates an access violation in
debug mode and when I just run the same executable outside the
debugger it hangs.
I have attached a patch that checks if the supplied "string" is
not NULL. I have also supplied a screen capture of Ethereal showing
a packet that triggers the bug to check for someone if there's a
problem with it. I think there's a bug somewhere else too, because
the contents of the packet itself doesn't suggest a respone to me...
--
Andreas Sikkema
andreas.sikkema@xxxxxxxxxxx
"Any PC built after 1985 has the storage capacity to house an evil spirit,"
Rev. Jim Peasboro in http://www.weeklyworldnews.com/stories/1745.html
Attachment:
smb.jpg
Description: Binary data
Attachment:
packet-smb.patch
Description: Binary data