summaryrefslogtreecommitdiff
path: root/tests/ripv1v2.out
Commit message (Collapse)AuthorAgeFilesLines
* Use UTC/GMT time when building/checking tests filesFrancois-Xavier Le Bail2018-08-091-4/+4
| | | | | | | | | | | | | This will avoid some differences when checking in different time zones. We now run the tests without the '-t' option. This will allow to get problems/changes in time printing functions. Update the output of the tests accordingly. Moreover: Add the '-#' option to better identify a packet when there is a difference in output.
* decode RIPv2 authentication up to RFC4822Denis Ovsienko2012-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | This change addresses a few issues in rip_entry_print_v2() and rip_print(): 1. In the case of Simple Password (RFC2453) authentication the last (16th) character of a password was never printed. Other password characters were printed regardless of existing isprint() test. 2. In the case of Cryptographic (RFC4822) authentication there were no details available for fixed-size auth header and variable-size auth trailer. 3. Depending on particular hash function used, a normal authentication trailer "RTE" may be 20 or more bytes long. Iteration over packet RTEs should stop once a trailer is decoded. Exact number of RTEs in a message cannot be told from message size any more. Test cases are added for Request and Response messages with Simple Password, Keyed-MD5, HMAC-SHA-1, HMAC-SHA-256, HMAC-SHA-384 and HMAC-SHA-512 authentication modes. Earlier test case is updated to match new "number of routes" output format.
* fix RIP Request/full table decoding issuesDenis Ovsienko2012-06-121-0/+16
RIP Request and Response messages have the same structure. Update a switch block in rip_print() to proceed with decoding of both. A Request message may contain an AFI 0 RTE standing for a full table request, normally sent on a router start. Update rip_entry_print_v1() and rip_entry_print_v2() to treat IPv4 and AFI 0 as two valid, distinguishable cases.