aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sna.c
AgeCommit message (Collapse)AuthorFilesLines
1999-11-22A "character encoding" variable is now set per packet. The existencegram1-1/+4
of SNA in a packet changes the character encoding from the default ASCII to EBCDIC. The hex-printing routines in the GUI code and in the printing code convert to EBCDIC if appropriate. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1089 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-16Replace the ETT_ "enum" members, declared in "packet.h", withguy1-20/+37
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1043 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-26Removed erroneous g_assert().gram1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@928 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-22Add support for SNA FID type 4 addresses to the code that handles theguy1-10/+35
"address" type. Use that in the SNA FID type 4 dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@915 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-22Generalize the "ip_src" and "ip_dst" members of the "packet_info"guy1-17/+9
structure to "dl_src"/"dl_dst", "net_src"/"net_dst", and "src"/"dst" addresses, where an address is an address type, an address length in bytes, and a pointer to that many bytes. "dl_{src,dst}" are the link-layer source/destination; "net_{src,dst}" are the network-layer source/destination; "{src,dst}" are the source/destination from the highest of those two layers that we have in the packet. Add a port type to "packet_info" as well, specifying whether it's a TCP or UDP port. Don't set the address and port columns in the dissector functions; just set the address and port members of the "packet_info" structure. Set the columns in "fill_in_columns()"; this means that if we're showing COL_{DEF,RES,UNRES}_SRC" or "COL_{DEF,RES,UNRES}_DST", we only generate the string from "src" or "dst", we don't generate a string for the link-layer address and then overwrite it with a string for the network-layer address (generating those strings costs CPU). Add support for "conversations", where a "conversation" is (at present) a source and destination address and a source and destination port. (In the future, we may support "conversations" above the transport layer, e.g. a TFTP conversation, where the first packet goes from the client to the TFTP server port, but the reply comes back from a different port, and all subsequent packets go between the client address/port and the server address/new port, or an NFS conversation, which might include lock manager, status monitor, and mount packets, as well as NFS packets.) Currently, all we support is a call that takes the source and destination address/port pairs, looks them up in a hash table, and: if nothing is found, creates a new entry in the hash table, and assigns it a unique 32-bit conversation ID, and returns that conversation ID; if an entry is found, returns its conversation ID. Use that in the SMB and AFS code to keep track of individual SMB or AFS conversations. We need to match up requests and replies, as, for certain replies, the operation code for the request to which it's a reply doesn't show up in the reply - you have to find the request with a matching transaction ID. Transaction IDs are per-conversation, so the hash table for requests should include a conversation ID and transaction ID as the key. This allows SMB and AFS decoders to handle IPv4 or IPv6 addresses transparently (and should allow the SMB decoder to handle NetBIOS atop other protocols as well, if the source and destination address and port values in the "packet_info" structure are set appropriately). In the "Follow TCP Connection" code, check to make sure that the addresses are IPv4 addressses; ultimately, that code should be changed to use the conversation code instead, which will let it handle IPv6 transparently. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@909 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-21Finished the last two TH types.gram1-5/+119
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@899 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-20Finally finished FID4 Transmission Header decoding.gram1-7/+228
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@890 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-18Fixes to SNA address display in proto_tree and clist.gram1-33/+71
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@882 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-18Decode more TH types.gram1-5/+196
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@881 f5534014-38df-0310-8fa8-9805f1628bb7
1999-10-12New proto_tree header_field_info stuff. Header_field_infos now containgram1-0/+604
the base for numbers to be displayed in, bitmasks for bitfields, and blurbs (which are one or two sentences describing the field). proto_tree_add*() routines now automatically handle bitfields. You tell it which header field you are adding, and just pass it the value of the entire field, and the proto_tree routines will do the masking and shifting for you. This means that bitfields are more naturally filtered via dfilter now. Added Phil Techau's support for signed integers in dfilters/proto_tree. Added the beginning of the SNA dissector. It's not complete, but I'm committing it now because it has example after example of how to use bitfields with the new header_field_info struct and proto_tree routines. It was the impetus to change how header_field_info works. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@815 f5534014-38df-0310-8fa8-9805f1628bb7