aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipx.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for NetWare's serialization protocol.Guy Harris2003-12-291-2/+49
| | | | svn path=/trunk/; revision=9472
* Update ipx and conversation list to make it possible to select and filter ↵Ronnie Sahlberg2003-10-031-3/+24
| | | | | | for ipx conversations from the conversation list popup menu svn path=/trunk/; revision=8599
* Add endpoint talker support for IPXRonnie Sahlberg2003-08-241-2/+2
| | | | svn path=/trunk/; revision=8240
* Minor update to IPX. Move a lot of proto_tree_add_items outside of the ↵Ronnie Sahlberg2003-08-241-41/+41
| | | | | | if(tree) where the subtree is (optionally) created. svn path=/trunk/; revision=8239
* Add a tap to the IPX protocolRonnie Sahlberg2003-08-241-28/+45
| | | | svn path=/trunk/; revision=8238
* The source and destination networks are FT_IPXNET, not an integral type,Guy Harris2003-08-051-5/+5
| | | | | | | so use "proto_tree_add_ipxnet" routines, not "proto_tree_add_uint" routines. svn path=/trunk/; revision=8135
* From Greg Morris, with some changes: add "ipx.net", "ipx.node", andGuy Harris2003-08-041-5/+43
| | | | | | | "ipx.socket" hidden fields, which appear both for the source and destination addresses and socket numbers. svn path=/trunk/; revision=8131
* Add support for some additional SAPs for Netware and OSI.Guy Harris2003-06-101-2/+3
| | | | svn path=/trunk/; revision=7824
* Don't show a string for datastream types other than the ones known toGuy Harris2003-04-141-7/+21
| | | | | | | | SPX. For the datastream types known to SPX, display it in the Info column. svn path=/trunk/; revision=7451
* Some packets (the ones I've seen have a datastream type ofGuy Harris2003-04-121-1/+2
| | | | | | | | "End-of-Connection Acknolwedgment") have none of the connection control bits set; describe them as "Data, No Ack Required" rather than "Unknown". svn path=/trunk/; revision=7443
* An SPX packet is not a retransmission of an earlier packet unless theGuy Harris2003-04-121-59/+92
| | | | | | | | | | | two packets have the same sequence number; use the sequence number in the hash key. The sequence number is not incremented for system packets, and system packets probably don't get ACKed and thus presumably don't get retransmitted, so don't do retransmission checks for system packets. svn path=/trunk/; revision=7442
* You can't put an FT_FRAMENUM into the tree with a length of -1, so, forGuy Harris2003-04-121-2/+7
| | | | | | | | a retransmitted SPX frame, just put the number of the original frame in as an item not referring to any data (offset and length of 0), and, if there is any remaining data, put it into the tree as a separate item. svn path=/trunk/; revision=7440
* Make the individual flag bits in the Connection Control field of the SPXGuy Harris2003-04-091-37/+102
| | | | | | | | | | | | | | | header be filterable fields. Don't hand retransmitted SPX frames to subdissectors - just show the payload as a retransmission of the original frame. Instead of handing a retransmission indicator to SPX subdissectors, hand them a structure containing the datastream type (under the assumption that it's data for the protocol running atop SPX, and that the dissector for that protocol might use it) and the state of the end-of-message bit (under the assumption that it's data for the protocol running atop SPX). svn path=/trunk/; revision=7433
* Instead of using passing the SPX hash value to subdissectors, attach toGuy Harris2003-04-091-62/+109
| | | | | | | | | | | frames that are retransmissions a data structure containing the frame number of the original frame, and pass that to subdissectors (or, if not present, pass NULL). That means we can free the hash values when we're done with the first pass through the packets. svn path=/trunk/; revision=7432
* Move the definition of the structure constructed for each SPXGuy Harris2003-04-081-62/+74
| | | | | | | | | | | | | | | | | | | | | | | transmission (and shared by all retransmissions), and passed to SPX subdissectors, to "packet-ipx.h", and use the same structure in the SPX dissector and the NDPS dissector. Set up conversations and those structures without checking whether we've seen the packet before or not; just check whether we find the conversation before creating a new one, and check whether we find a structure for the packet before creating a new one. Pass it to the subdissector regardless of whether we've seen the packet before or not, and check it in the NDPS dissector regardless of whether we've seen it before or not. Don't store a "retransmission" flag in the structure - the initial transmission and the retransmissions all share a single data structure, but they don't all have the same value for the "retransmission" flag, and you can tell whether a packet is a retransmission or not by comparing its frame number with the frame number from the structure; if they're different, it's a retransmission. svn path=/trunk/; revision=7418
* From Greg Morris: update the introductory comment, and flag SPXGuy Harris2003-04-081-6/+185
| | | | | | retransmissions in the Info column. svn path=/trunk/; revision=7414
* Choosing the lower-numbered socket in an IPX packet as the first one toGuy Harris2003-04-061-17/+30
| | | | | | | | | | | | | | try as a port number doesn't always give the right answer, as you might have a name query packet from an SMB-over-IPX server, meaning it's from IPX_SOCKET_NWLINK_SMB_SERVER to IPX_SOCKET_NWLINK_SMB_NAMEQUERY, and, unfortunately, IPX_SOCKET_NWLINK_SMB_SERVER is less than IPX_SOCKET_NWLINK_SMB_NAMEQUERY and it'll now be dissected as an SMB packet rather than an NMPI name query packet. So if the higher-numbered socket is IPX_SOCKET_NWLINK_SMB_NAMEQUERY, we just try that, we don't try the other port. svn path=/trunk/; revision=7409
* Add a dissector for the IPX WAN protocol. "IPX WAN 2" is just someGuy Harris2003-04-061-2/+2
| | | | | | | compatible additions to the RFC 1362 IPX WAN protocol, so call it "IPX WAN", not "IPX WAN 2". svn path=/trunk/; revision=7407
* Add dissector for NetWare Link Services Protocol.Guy Harris2003-03-311-4/+5
| | | | | | | | | Socket 0x9001 is for NLSP - it supports LANs as well as WANs, at least as I read the specification. Socket 0x9004 is for "IPX WAN 2". svn path=/trunk/; revision=7387
* Get rid of the "sap_server_ident" structure - just fetch stuff from thatGuy Harris2003-01-301-267/+252
| | | | | | | | | structure in the packet as required. The server name in that structure is not necessarily null-terminated; use "%.48s", not "%s", to print it. svn path=/trunk/; revision=7038
* Support BACNET over ARCNET, under the assumption that no fragmentationGuy Harris2003-01-231-1/+2
| | | | | | | | | is done. Support "Novell EC" over ARCNET, under the assumption that it's just another way of sending IPX over ARCNET. svn path=/trunk/; revision=6988
* Don't cast away constness, and fix variable and structure memberGuy Harris2002-12-021-3/+3
| | | | | | | | | | | | | qualifiers as necessary to ensure that we don't have to. "strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't test their results as if they did. Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes. Update Michael Tuexen's e-mail address. svn path=/trunk/; revision=6726
* Only hand off the SPX payload to a subdissector if there's payload toGuy Harris2002-10-191-31/+33
| | | | | | hand off. svn path=/trunk/; revision=6457
* From Peter Fales: ARCNET support.Guy Harris2002-10-181-1/+8
| | | | | | | Sort the lists of dissectors in the DISSECTOR_SRC macros in "Makefile.am" and "Makefile.nmake". svn path=/trunk/; revision=6450
* Add a new port type, PT_IPX, for IPX socket numbers; set "pinfo->ptype",Guy Harris2002-10-151-4/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "pinfo->srcport", and "pinfo->destport" appropriately in the IPX dissector. Add support for PT_IPX port types in display columns. Have an "spx.socket" dissector table, similar to the "ipx.socket" dissector table, and have the SPX dissector use that, with the IPX socket numbers from "pinfo->srcport" and "pinfo->destport", so that dissectors for protocols that run atop SPX can register with particular socket numbers. (Think of it as similar to what would have been the case had the IP header had 16-bit source and destination port numbers, and had TCP and UDP used those port numbers rather than having port numbers in their headers.) Also, have the SPX dissector dissect subprotocols regardless of whether we're building a protocol tree or not. Use the dissector handle for the IPX message dissector for both IPX socket numbers; there's no need to create separate handles for both registrations. Have NDPS register as a subdissector of the SPX dissector, using "spx.socket", and get rid of the duplicate SPX dissection in the NDPS dissector. Make the NDPS dissector set the columns regardless of whether a protocol tree is being built, and clean up the dissector (fixing some bugs). Get rid of unneeded includes in "packet-ndps.c". svn path=/trunk/; revision=6424
* Remove an extra blank in the Connection Control field display.Guy Harris2002-10-101-17/+17
| | | | svn path=/trunk/; revision=6403
* Set the Info column in the SPX dissector regardless of whether we'reGuy Harris2002-10-081-8/+10
| | | | | | | | building a protocol tree or not. Fix up white space. svn path=/trunk/; revision=6378
* Dissector for Novell Distributed Print Services by Greg Morris.Jörg Mayer2002-09-231-9/+21
| | | | | | NDPS runs on top of SPX and TCP. svn path=/trunk/; revision=6323
* From Greg Morris: handle watchdog packets on socket 4003 as well asGuy Harris2002-09-101-1/+4
| | | | | | socket 4001. svn path=/trunk/; revision=6264
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-28/+28
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-5/+1
| | | | | | | | equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
* Update a comment.Guy Harris2002-07-041-4/+3
| | | | svn path=/trunk/; revision=5817
* Add signature characters for IPX message watchdog positive replies andGuy Harris2002-07-021-7/+39
| | | | | | | | | | | | | | | | | | | | | | | "broadcast message waiting" indications. When handing off dissection from the IPX dissector: Check the socket numbers before we check the packet type; we've seen IPX message packets with a type of NCP and a destination socket of IPX_SOCKET_IPX_MESSAGE, and SAP packets with a type of NCP and a destination socket of IPX_SOCKET_SAP. Assume the lower-numbered socket number is more likely to be the right one, along the lines of what we do for TCP and UDP. We've seen NCP packets with a type of NCP, a source socket of IPX_SOCKET_NCP, and a destination socket of IPX_SOCKET_IPX_MESSAGE, and we've seen NCP packets with a type of NCP, a source socket of IPX_SOCKET_IPX_MESSAGE, and a destination socket of IPX_SOCKET_NCP. svn path=/trunk/; revision=5810
* Fix the capitalization of NetWare.Guy Harris2002-06-261-21/+21
| | | | svn path=/trunk/; revision=5767
* From Markus Steinmann: add IPX SAP for SEH's InterCon Printserver.Guy Harris2002-06-251-1/+2
| | | | svn path=/trunk/; revision=5764
* From Joerg Mayer: get rid of extra arguments to capture routines.Guy Harris2002-04-241-2/+2
| | | | svn path=/trunk/; revision=5233
* With the tvbuffication of all dissectors, the "packet_info" structure noGuy Harris2002-02-171-2/+2
| | | | | | | longer contains length fields, so there's no need to pass a "packet_info *" argument to "set_actual_length()". svn path=/trunk/; revision=4748
* Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris2002-01-241-10/+13
| | | | | | | | | | | | arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. svn path=/trunk/; revision=4605
* Convert some "col_add_str()" calls to "col_set_str()".Guy Harris2002-01-211-5/+5
| | | | svn path=/trunk/; revision=4592
* Include files from the "epan" directory and subdirectories thereof withGuy Harris2002-01-211-3/+3
| | | | | | | | | | | | | "epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
* Move the pointer to the "column_info" structure in the "frame_data"Guy Harris2001-12-101-30/+30
| | | | | | | | | | | | | | | structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. svn path=/trunk/; revision=4370
* Attach a descriptive name field type and base to dissector tables; thatGuy Harris2001-12-081-3/+5
| | | | | | | | | | | | | | specifies how the selector values used as keys in those tables are to be displayed, and the title to use when displaying the table. Use that information in the code to display the initial and current entries of various dissector tables. Have the dissector for BACnet APDUs register itself by name, and have the BACnet NPDU dissector call it iff the BAC_CONTROL_NET bit isn't set, rather than doing it with a dissector table. svn path=/trunk/; revision=4358
* Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris2001-12-031-16/+21
| | | | | | | | take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308
* Moved from using dissect_data to using call_dissector()Ed Warnicke2001-11-251-3/+6
| | | | svn path=/trunk/; revision=4264
* Remove a duplicate entry from the SAP table, and move an entry in thatGuy Harris2001-11-251-3/+2
| | | | | | table to the proper sorted location. svn path=/trunk/; revision=4261
* Throw in a large pile of additional SAP values.Guy Harris2001-11-251-43/+223
| | | | svn path=/trunk/; revision=4260
* Make the capture routines take an additional argument giving the amountGuy Harris2001-11-201-2/+2
| | | | | | | | | | | of packet data captured. Make the "BYTES_ARE_IN_FRAME()" macro take a "captured length of the packet" argument. Add some length checks to capture routines. svn path=/trunk/; revision=4235
* Hopefully the last time I have to change my e-mail address.Gilbert Ramirez2001-11-131-2/+2
| | | | svn path=/trunk/; revision=4199
* Use "val_to_str()", rather than "match_strval()", in "socket_text()".Guy Harris2001-10-201-19/+11
| | | | | | | | | | | Make the source and destination socket fields enumerated types, so we don't have to use "proto_tree_add_uint_format()" on them, and so that you can match on them by service name. Use lower-case letters when formatting the hex value of sockets; that's what's done with fields not added with "proto_tree_add_XXX_format". svn path=/trunk/; revision=4046
* add a couple of socket numbers that seem to be consistently allocated for ↵Nathan Neulinger2001-10-081-1/+7
| | | | | | these services svn path=/trunk/; revision=4012