summaryrefslogtreecommitdiff
path: root/print-isoclns.c
Commit message (Collapse)AuthorAgeFilesLines
...
* misc. cosmetic changes to stay compliant to other multi-line decodershannes2003-10-211-15/+12
|
* update some references to internet drafts and change subTLV 4 to reflect the ↵hannes2003-09-081-18/+20
| | | | changes of draft-ietf-isis-gmpls-extensions being now a local/remote ID
* do not forget to increment the pointer while reading pre-emption prioritieshannes2003-09-081-6/+9
|
* use snprintfitojun2003-08-131-6/+9
|
* don't forget to print the PSN-ID when printing an LSP-IDhannes2003-07-291-2/+2
|
* correct reference for the authentication TLV #10 as the draft turned into an rfchannes2003-07-191-2/+2
|
* rework of the EXT-IS reach and EXT-IP reach subTLV decoders forhannes2003-07-191-106/+67
| | | | easier extensions;
* Get rid of unused variables.guy2003-07-011-3/+3
|
* replace bittok2str() lookalike when printing the restart TLV flagshannes2003-06-281-10/+11
|
* align the comments in the code with what the code actually is doinghannes2003-06-171-2/+2
|
* be a little more verbose about source-id and lsp-ids in non-verbose mode to ↵hannes2003-06-161-4/+32
| | | | better troubleshoot routing-churn
* minor display cosmeticshannes2003-06-071-2/+2
|
* outsource gmpls related tokens to gmpls.hhannes2003-06-061-43/+5
|
* don't pass on src & dst MAC adresses to the isoclns decoder as MAC adresseshannes2003-05-221-13/+8
| | | | should be really printed in ether_print() using the eflag
* extend ASCII buffer and boundary checking for print_nsap() as ES-IS may want ↵hannes2003-05-101-5/+5
| | | | to print 20-byte beasts
* "(x == A) ^ (x == B)", if A != B, is equivalent toguy2003-05-011-2/+2
| | | | | | | "(x == A) || (x == B)", as x cannot simultaneously be equal to A and B. "x == A ^ x == B" produces a compiler warning from GCC, so fix it by using || instead - "x == A || x == B" doesn't produce such a warning.
* use common routine print_isis_id() for printinghannes2003-04-171-82/+40
| | | | | | - sysIDs - nodeIDs - lspIDs
* - checkout previous code-share change as the two TLVs are not equal;hannes2003-04-091-34/+44
| | | | | - bugfix for parsing the SHARED_RISK_GROUP TLV - change type and len variables to tlv_type and tlv_len
* change IPv6 prefix formatting and remove IS_REACH alike TLV code redundancyhannes2003-04-091-11/+3
|
* loop through the stack of IP Reach admin tags rather than just printing onehannes2003-03-301-30/+38
|
* - bugfix: forgot to increment processed byte counter by 1hannes2003-02-241-3/+4
| | | | | | in the IP Reach subTLV dissector - make the IP Reach subTLV decoder show the tag value in decimal notation like popular router OSes do
* From Peter Fales: don't assume "sprintf()" returns the number ofguy2003-01-251-12/+15
| | | | | characters printed - on older platforms with a V7/BSD-style API, it doesn't.
* remove private version of mask2plen()hannes2002-12-231-28/+3
|
* - fix display cosmeticshannes2002-12-211-90/+102
| | | | | | | - more use of bittok2str() and Flags: [xyz] - fixed buffer allocation for ipv6 (14-> should be 16) - old-style ip_reach output looks now similar to new_style ip_reach
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | compile with Sun C, as "interface.h" isn't being included before the structures are being declared. Furthermore, in the files that Sun C *can* compile, it doesn't cause Sun C to generate code that's safe with unaligned accesses, as "__attribute__" is defined as a do-nothing macro with compilers that don't support it. Therefore, we get rid of that tag on the structures to which it was added, and instead use "EXTRACT_16BIT()" and "EXTRACT_32BIT()" to fetch 16-bit and 32-bit big-endian quantities from packets. We also fix some other references to multi-byte quantities to get rid of code that tries to do unaligned loads on platforms that don't support them. We also throw in a hack that makes those macros use "__attribute__((packed))" on structures containing only one 16-bit or 32-bit integer to get the compiler to generate unaligned-safe code rather than doing it by hand. (GCC on SPARC produces the same code that doing it by hand does; I don't know if GCC on any other big-endian strict-alignment processor generates better code for that case. On little-endian processors, as "ntohs()" and "ntohl()" might be functions, that might actually produce worse code.) Fix some places to use "%u" rather than "%d" to print unsigned quantities.
* "isis_print_is_reach_subtlv()" takes a "char *" as its last argument;guy2002-12-111-2/+2
| | | | don't cast a "char *" to "u_int8_t *" when passing it to that function.
* remove 4 duplicates for ext_ip_reach_ processing;hannes2002-12-101-225/+138
| | | | | | | create a common extended IP reach decoder which is called from TLVs (135,235,236,237) we process the TLV and optional subTLVs and return he amount of processed bytes
* fix ported from guy harris' recent RSVP fix;hannes2002-12-101-38/+27
| | | | | | | | The floating-point numbers in IS-IS packets are stored in big-endian format; extract them as such, so that when we process them as numbers they're in native byte order, not network byte order. removed bittok2str() lookalike;
* only hexdump SNP PDUs when vflag > 1hannes2002-12-051-2/+2
|
* put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and soitojun2002-11-091-91/+91
| | | | forth while i'm here
* support for the Vendor Proprietary TLV #250 plus rfc/draft referenceshannes2002-10-091-35/+47
|
* support for Alias ID TLV #24 described in draft-ietf-isis-ext-lsp-fragshannes2002-10-061-5/+14
|
* modularize the ext_is_reach, mt_id decoder & misc cleanupshannes2002-10-051-129/+197
|
* simplify initial OSI processinghannes2002-10-051-32/+12
|
* hide multiline output using vflag plus enhanced, ES-IS decoderhannes2002-10-031-44/+65
|
* more verbose handling for unknown datahannes2002-09-151-55/+91
|
* Add a few more GCC warnings on GCC >= 2 for ".devel" builds.guy2002-09-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From Neil T. Spring: fixes for many of those warnings: addrtoname.c, configure.in: Linux needs netinet/ether.h for ether_ntohost print-*.c: change char *foo = "bar" to const char *foo = "bar" to appease -Wwrite-strings; should affect no run-time behavior. print-*.c: make some variables unsigned. print-bgp.c: plen ('prefix len') is unsigned, no reason to validate by comparing to zero. print-cnfp.c, print-rx.c: use intoa, provided by addrtoname, instead of inet_ntoa. print-domain.c: unsigned int l; (l=foo()) < 0 is guaranteed to be false, so check for (u_int)-1, which represents failure, explicitly. print-isakmp.c: complete initialization of attrmap objects. print-lwres.c: "if(x); print foo;" seemed much more likely to be intended to be "if(x) { print foo; }". print-smb.c: complete initialization of some structures. In addition, add some fixes for the signed vs. unsigned comparison warnings: extract.h: cast the result of the byte-extraction-and-combining, as, at least for the 16-bit version, C's integral promotions will turn "u_int16_t" into "int" if there are other "int"s nearby. print-*.c: make some more variables unsigned, or add casts to an unsigned type of signed values known not to be negative, or add casts to "int" of unsigned values known to fit in an "int", and make other changes needed to handle the aforementioned variables now being unsigned. print-isakmp.c: clean up the handling of error/status indicators in notify messages. print-ppp.c: get rid of a check that an unsigned quantity is >= 0. print-radius.c: clean up some of the bounds checking. print-smb.c: extract the word count into a "u_int" to avoid the aforementioned problems with C's integral promotions. print-snmp.c: change a check that an unsigned variable is >= 0 to a check that it's != 0. Also, fix some formats to use "%u" rather than "%d" for unsigned quantities.
* from Said Ouissal:hannes2002-09-031-1/+9
| | | | | support for Hello PDU Sequence Numbers described in draft-shen-isis-iih-sequence-00.txt
* boundary checking for print_nsap()hannes2002-09-011-17/+18
|
* more consistent use of the length: indicator;hannes2002-08-201-6/+6
|
* make the number in the bracket after the area address unambigoushannes2002-08-091-2/+2
| | | | by prepending a length: string;
* Added support for Win32, based on WinPcap.risso2002-08-011-6/+2
|
* use print_nsap() rather than isonsap_string() for decoding ISHshannes2002-07-251-37/+38
|
* better idendation and dedicated line for the common header;hannes2002-07-191-79/+80
|
* use the new public print_unknown_data{} rather then the privatehannes2002-07-191-40/+8
| | | | isis_print_unknown_data{}
* Fix indentation.guy2002-06-291-13/+13
|
* whitespace cleanupitojun2002-06-111-117/+117
|
* support forhannes2002-05-311-86/+170
| | | | | | | | | | | | | ES Neighbor(s) TLV #3 Partition DIS TLV #4 Prefix Neighbors TLV #5 Prefix Neighbor(s) (variable length) TLV #7 clarified use of SYSTEM_ID_LEN, ETHER_ADDR_LEN, LSP_ID_LEN plus some cleanups, boundary checks and modularization (isis_print_metric_block)
* Make static routines, and string buffers, not used outsideguy2002-05-291-12/+9
| | | | "print-isoclns.c".
* cosmetic cleanup for the print_nsap routinehannes2002-05-251-12/+14
|