aboutsummaryrefslogtreecommitdiffstats
path: root/packet-netbios.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed small typo in hex printing.Gerald Combs2000-01-141-2/+2
| | | | svn path=/trunk/; revision=1475
* Make the NetBIOS dissecting routines all take a pointer to the beginningGuy Harris1999-11-301-177/+184
| | | | | | | | | | | of the frame, plus at most one offset from the beginning of the frame, to make it clearer what the offset is. Then use that offset in at least some places to do bounds checking. If a packet has no payload, don't hand it to the SMB dissector. svn path=/trunk/; revision=1165
* Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1999-11-161-10/+22
| | | | | | | | | | | | | | | | | dynamically-assigned "ett_" integer values, assigned by "proto_register_subtree_array()"; this: obviates the need to update "packet.h" whenever you add a new subtree type - you only have to add a call to "proto_register_subtree_array()" to a "register" routine and an array of pointers to "ett_", if they're not already there, and add a pointer to the new "ett_" variable to the array, if they are there; would allow run-time-loaded dissectors to allocate subtree types when they're loaded. svn path=/trunk/; revision=1043
* added sap types, netbios name types, ipx socket namesNathan Neulinger1999-11-151-1/+5
| | | | svn path=/trunk/; revision=1038
* Add in a bunch of changes based on the IBM specification for the NetBIOSGuy Harris1999-09-031-192/+378
| | | | | | | | | | | | | | | | | | | | | Frame protocol (that being what this dissects). If you're cutting up something into bitfields, the bitfield dissection returned by "dissect_bitfield_XXX()" should be the first text on the line - if not, then if the text items that come before the various bitfields aren't all the same length, the bits don't line up. Cope with packets from one of Gilbert's captures, where the sender "name" in some NBF datagrams isn't a NetBIOS name, it's 10 octets of 0 followed by a MAC address! The "name type" in the "Data2" field of NBF frames is 0x00 for unique names and 0x01 for group names, not a "16th character of a NetBIOS name" name type. Fix up various other things. svn path=/trunk/; revision=633
* Add in a pile of additional packet formats fromGuy Harris1999-09-031-51/+218
| | | | | | | | http://ourworld.compuserve.com/homepages/TimothyDEvans/contents.htm Assorted minor cleanups. svn path=/trunk/; revision=632
* Use "process_netbios_name()", rather than "canonicalize_netbios_name()",Guy Harris1999-09-031-3/+11
| | | | | | | | | to turn NetBIOS names into a nice printable form. Put the description of NetBIOS name types into places where it fits; have "packet-netbios.c" export a routine to interpret them. svn path=/trunk/; revision=630
* Add a bunch more NetBIOS name types.Guy Harris1999-09-031-84/+89
| | | | | | | | | | | | | | | | | That makes the space of name types even more sparse; use "val_to_str()" to decode them, rather than an indexed table. Make a "process_netbios_name()" routine that shows non-printable characters in NetBIOS names as <XX>, where "XX" is the value of the character in hex (the way Network Monitor does), and have "get_netbios_name()" use it (NetBIOS-over-TCP will be made to use it in the future). When displaying NetBIOS names, include the name type character at the end, in angle brackets, the way Network Monitor does (show it in hex even if it *is* printable - 0x20 is 0x20, not "space", in that context). svn path=/trunk/; revision=628
* Have the IPX code set "pi.len" and "pi.captured_len" based on the lengthGuy Harris1999-09-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the IPX header, and have the dissectors it calls use it rather than being passed the length as an argument. Treat both packet type 20 ("WAN Broadcast") and 4 ("IPX", although 3 is also "IPX", according to Network Monitor) as potentially being NetBIOS packets. The packet types for the IPX NetBIOS socket (0x0455) and the NWLink sockets (0x0551 and 0x0553) are different (perhaps because there's one socket for the 0x0455 NBIPX, so you have to do name service and datagram service and have the packet types distinguish them, but NWLink has separate sockets for name service and datagram service). The packet type for name service and for datagram service are at *different locations* in the packet, which is unfortunate if you want to use the packet type to distinguish name service and datagram service packets. Use the packet length, for now, to distinguish them, with socket 0x0455. Dissect datagram packets differently from name service packets. Export "packet-netbios.c"'s "netbios_add_name()" routine, and use it when dissecting NBIPX packets as well. Label NBIPX packets as "NBIPX" rather than "NetBIOS". svn path=/trunk/; revision=627
* Fixed the array problem in packet-netbios.Gilbert Ramirez1999-08-241-2/+2
| | | | | | | | | | Fixed the default case in the packet-cdp while() statement to look for non-zero offsets. I should fix the other cases where offset += length. Meanwhile, however, I added cdp.tlv.type and cdp.tlv.len as two filterable fields so that one can use "cdp.tlv.len == 0" as a display filter to find the packet that was causing problems. svn path=/trunk/; revision=568
* Changes to compile in win32.Gilbert Ramirez1999-08-181-6/+6
| | | | svn path=/trunk/; revision=515
* Jeff Foster's changes to add support for NetBEUI/NBF (NetBIOS atop 802.2Guy Harris1999-08-101-0/+693
LLC, the original NetBIOS encapsulation). svn path=/trunk/; revision=466