X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e10fe19f4578b8215587825e8672a196dc161b93..e67f4fcae8173ccd4a7de1a0c5fedd2265675f81:/print-ospf.c diff --git a/print-ospf.c b/print-ospf.c index 4c5ba665..2a502a6c 100644 --- a/print-ospf.c +++ b/print-ospf.c @@ -36,7 +36,6 @@ #include "ospf.h" -static const char tstr[] = " [|ospf2]"; static const struct tok ospf_option_values[] = { { OSPF_OPTION_T, "MultiTopology" }, /* draft-ietf-ospf-mt-09 */ @@ -504,7 +503,7 @@ ospf_te_lsa_print(netdissect_options *ndo, trunc: return -1; invalid: - ND_PRINT("%s", istr); + nd_print_invalid(ndo); return -1; } @@ -1111,7 +1110,7 @@ ospf_print(netdissect_options *ndo, const u_char *dataend; const char *cp; - ndo->ndo_protocol = "ospf"; + ndo->ndo_protocol = "ospf2"; op = (const struct ospfhdr *)bp; /* XXX Before we do anything else, strip off the MD5 trailer */ @@ -1202,5 +1201,5 @@ ospf_print(netdissect_options *ndo, return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); }