aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipx.c
AgeCommit message (Collapse)AuthorFilesLines
2003-08-05The source and destination networks are FT_IPXNET, not an integral type,Guy Harris1-5/+5
so use "proto_tree_add_ipxnet" routines, not "proto_tree_add_uint" routines. svn path=/trunk/; revision=8135
2003-08-04From Greg Morris, with some changes: add "ipx.net", "ipx.node", andGuy Harris1-5/+43
"ipx.socket" hidden fields, which appear both for the source and destination addresses and socket numbers. svn path=/trunk/; revision=8131
2003-06-10Add support for some additional SAPs for Netware and OSI.Guy Harris1-2/+3
svn path=/trunk/; revision=7824
2003-04-14Don't show a string for datastream types other than the ones known toGuy Harris1-7/+21
SPX. For the datastream types known to SPX, display it in the Info column. svn path=/trunk/; revision=7451
2003-04-12Some packets (the ones I've seen have a datastream type ofGuy Harris1-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
2003-04-12An SPX packet is not a retransmission of an earlier packet unless theGuy Harris1-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
2003-04-12You can't put an FT_FRAMENUM into the tree with a length of -1, so, forGuy Harris1-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
2003-04-09Make the individual flag bits in the Connection Control field of the SPXGuy Harris1-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
2003-04-09Instead of using passing the SPX hash value to subdissectors, attach toGuy Harris1-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
2003-04-08Move the definition of the structure constructed for each SPXGuy Harris1-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
2003-04-08From Greg Morris: update the introductory comment, and flag SPXGuy Harris1-6/+185
retransmissions in the Info column. svn path=/trunk/; revision=7414
2003-04-06Choosing the lower-numbered socket in an IPX packet as the first one toGuy Harris1-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
2003-04-06Add a dissector for the IPX WAN protocol. "IPX WAN 2" is just someGuy Harris1-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
2003-03-31Add dissector for NetWare Link Services Protocol.Guy Harris1-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
2003-01-30Get rid of the "sap_server_ident" structure - just fetch stuff from thatGuy Harris1-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
2003-01-23Support BACNET over ARCNET, under the assumption that no fragmentationGuy Harris1-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
2002-12-02Don't cast away constness, and fix variable and structure memberGuy Harris1-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
2002-10-19Only hand off the SPX payload to a subdissector if there's payload toGuy Harris1-31/+33
hand off. svn path=/trunk/; revision=6457
2002-10-18From Peter Fales: ARCNET support.Guy Harris1-1/+8
Sort the lists of dissectors in the DISSECTOR_SRC macros in "Makefile.am" and "Makefile.nmake". svn path=/trunk/; revision=6450
2002-10-15Add a new port type, PT_IPX, for IPX socket numbers; set "pinfo->ptype",Guy Harris1-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
2002-10-10Remove an extra blank in the Connection Control field display.Guy Harris1-17/+17
svn path=/trunk/; revision=6403
2002-10-08Set the Info column in the SPX dissector regardless of whether we'reGuy Harris1-8/+10
building a protocol tree or not. Fix up white space. svn path=/trunk/; revision=6378
2002-09-23Dissector for Novell Distributed Print Services by Greg Morris.Jörg Mayer1-9/+21
NDPS runs on top of SPX and TCP. svn path=/trunk/; revision=6323
2002-09-10From Greg Morris: handle watchdog packets on socket 4003 as well asGuy Harris1-1/+4
socket 4001. svn path=/trunk/; revision=6264
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-28/+28
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-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
2002-07-04Update a comment.Guy Harris1-4/+3
svn path=/trunk/; revision=5817
2002-07-02Add signature characters for IPX message watchdog positive replies andGuy Harris1-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
2002-06-26Fix the capitalization of NetWare.Guy Harris1-21/+21
svn path=/trunk/; revision=5767
2002-06-25From Markus Steinmann: add IPX SAP for SEH's InterCon Printserver.Guy Harris1-1/+2
svn path=/trunk/; revision=5764
2002-04-24From Joerg Mayer: get rid of extra arguments to capture routines.Guy Harris1-2/+2
svn path=/trunk/; revision=5233
2002-02-17With the tvbuffication of all dissectors, the "packet_info" structure noGuy Harris1-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
2002-01-24Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris1-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
2002-01-21Convert some "col_add_str()" calls to "col_set_str()".Guy Harris1-5/+5
svn path=/trunk/; revision=4592
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-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
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"Guy Harris1-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
2001-12-08Attach a descriptive name field type and base to dissector tables; thatGuy Harris1-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
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris1-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
2001-11-25Moved from using dissect_data to using call_dissector()Ed Warnicke1-3/+6
svn path=/trunk/; revision=4264
2001-11-25Remove a duplicate entry from the SAP table, and move an entry in thatGuy Harris1-3/+2
table to the proper sorted location. svn path=/trunk/; revision=4261
2001-11-25Throw in a large pile of additional SAP values.Guy Harris1-43/+223
svn path=/trunk/; revision=4260
2001-11-20Make the capture routines take an additional argument giving the amountGuy Harris1-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
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=4199
2001-10-20Use "val_to_str()", rather than "match_strval()", in "socket_text()".Guy Harris1-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
2001-10-08add a couple of socket numbers that seem to be consistently allocated for ↵Nathan Neulinger1-1/+7
these services svn path=/trunk/; revision=4012
2001-07-03Use the "pinfo" argument, rather than the global "pi", to refer to theGuy Harris1-5/+5
packet information in tvbuffified dissectors. svn path=/trunk/; revision=3645
2001-06-29Create a routine to do the tvbuff-length-adjusting andGuy Harris1-20/+5
"pinfo->{len,captured_len}"-adjusting currently done by the IP dissector, make the IP dissector call that rather than doing the work itself, make the IPv6 dissector call that rather than just adjusting the tvbuff length itself, and make the IPX dissector call that rather than just adjusting "pi.{len,captured_len}" itself. This cleans things up a bit, and causes trailers to be properly reported in IPX-over-Ethernet frames. svn path=/trunk/; revision=3621
2001-06-18From Joerg Mayer: explicitly fill in all members of aGuy Harris1-24/+24
"header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
2001-05-03IPX SAP over IPX EIGRP support, and IP EIGRP authentication updates,Guy Harris1-1/+3
from Paul Ionescu. svn path=/trunk/; revision=3398
2001-04-19FT_UINTn and FT_INTn fields must always have a base selected for them;Guy Harris1-3/+3
otherwise, the filtering GUI gets very upset when you try to construct a filter expression to test the value of that field. Make them BASE_DEC. svn path=/trunk/; revision=3334