summaryrefslogtreecommitdiff
path: root/print-token.c
Commit message (Collapse)AuthorAgeFilesLines
...
* const-ify print-fddi and print-token, inspired byfenner2001-09-181-9/+9
| | | | Motonori Shindo <mshindo@mshindo.net>
* Add SIGINFO handler from LBLfenner2001-07-041-1/+5
| | | | | The rest of the low-level print-*.c handlers need the infodelay wrapping too.
* Fix some comments to reflect current reality.guy2000-12-231-5/+5
|
* Put the LINUX_SLL_P_ definitions back, and check for at least some ofguy2000-12-221-3/+5
| | | | | | | | | | | | | | | | | them in "print-sll.c" - as a cooked-mode capture may be reading from non-Ethernet, non-802.x devices, it may well see some ETH_P_/LINUX_SLL_P_ types that don't mean "this is an 802.2 LLC frame". We currently assume that the ETH_P_ values won't change in the kernel, so we don't have to explicitly map them. In various link-layer packet printers, if we don't handle the next layer up of packet type, and are printing the link-layer header, use the correct pointer to that header (i.e., if we've stepped "p" past the link-layer header, don't use "p", use a pointer to the beginning of the packet), and use the correct length (i.e., if we've subtracted the length of the link-layer header, add it back in, so that we always print the full packet length).
* Making "extracted_ethertype" static to "print-ether.c" broke otherguy2000-12-181-3/+3
| | | | | | | | | | | | | | dissectors that expected calls to "llc_print()" to set it. (Thanks and a tip of the hat to Olaf Kirch <okir@caldera.de> for noticing this.) Make "ether_encap_print()" and "llc_print()" take a pointer to an extracted-Ethertype variable as an argument, have "llc_print()" pass it to "ether_encap_print()", and have "ether_encap_print()" set what it points to rather than setting a static "extracted_ethertype" variable. Get rid of said static "extracted_ethertype" variable in favor of one local to "ether_if_print()", just as other link-layer dissectors have local "extracted_ethertype" variables.
* Get rid of some includes of <net/route.h>, and empty declarations ofguy2000-10-061-4/+1
| | | | | | "struct mbuf" and "struct rtentry" - they shouldn't be necessary (and weren't on the platforms on which I tested, both with GCC and the native compiler if it isn't GCC).
* include string.h for memcpy/memset.itojun2000-10-031-1/+2
| | | | | on some architecutrees, sizeof(void *) > sizeof(int). don't try to cast pointer to int to check alignment issues.
* Get rid of includes of <netinet/in_systm.h>, and replace "n_short",guy2000-09-291-2/+1
| | | | "n_long", and "n_time", defined in that file, with other types.
* Get rid of unneeded includes of <net/if.h>.guy2000-09-281-2/+1
|
* Add an "ip.h" header, to declare the IP stuff needed by dissectors, andguy2000-09-231-2/+1
| | | | | | | | | | | have dissectors include them rather than <netinet/ip.h> or <netinet/ip_var.h>, if they actually need that stuff. Put the declarations of the ICMP stuff directly into "print-icmp.c". Remove all unnecessary includes of <netinet/ip*.h> files. Copy the byte-order stuff from "nameser.h" into "tcp.h".
* Add definitions of Ethernet types fromguy2000-09-231-2/+2
| | | | | | | | | | | | | | | | "linux-includes/netinet/if_ether.h" to "ethertype.h". Move other stuff used by dissectors from <netinet/if_ether.h> to "ether.h", along the lines of "fddi.h" and "token.h". Move ARP declarations from BSD include files to "print-arp.c". Remove from dissectors includes of <netinet/if_ether.h>, and add includes of "ethertype.h" and/or "ether.h" as necessary. Get rid of configuration options that test declarations now made in "ether.h" or "print-arp.c", as those declarations are now under our control, not the OS's control.
* (token_if_print): remove unused variableassar2000-07-301-2/+1
|
* Add a token-ring link-layer dissector, made by merging the FreeBSD andguy2000-07-251-0/+214
NetBSD ones; use it for DLT_IEEE802, which in many OSes is used for token ring.