Update the output of some tests accordingly.
#include "oui.h"
#include "af.h"
+static const char tstr[] = " [|cfm]";
+
struct cfm_common_header_t {
nd_uint8_t mdlevel_version;
nd_uint8_t opcode;
return;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
}
#include "extract.h"
#include "addrtoname.h"
+static const char tstr[] = " [|eigrp]";
+
struct eigrp_common_header {
nd_uint8_t version;
nd_uint8_t opcode;
}
return;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
}
#include "l2vpn.h"
#include "af.h"
+static const char tstr[] = " [|ldp]";
+
/*
* ldp common header
*
return(tlv_len+4); /* Type & Length fields not included */
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
return 0;
badtlv:
}
return pdu_len+4;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
return 0;
}
#include "addrtoname.h"
#include "gmpls.h"
+static const char tstr[] = " [|lmp]";
+
/*
* LMP common header
*
}
return;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
}
/*
* Local Variables:
#include "l2vpn.h"
#include "oui.h"
+static const char tstr[] = " [|lspping]";
+
/*
* LSPPING common header
*
ND_PRINT("\n\t\t packet is too short");
return;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
return;
}
/*
#include "extract.h"
#include "addrtoname.h"
+static const char control_tstr[] = " [|lwapp_control]";
+static const char data_tstr[] = " [|lwapp_data]";
+
/*
* LWAPP transport (common) header
* 0 1 2 3
}
return;
- trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+trunc:
+ ND_PRINT("%s", control_tstr);
}
void
return;
- trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+trunc:
+ ND_PRINT("%s", data_tstr);
}
/*
#include "addrtoname.h"
#include "oui.h"
+static const char tstr[] = " [|slow]";
+
#define SLOW_PROTO_LACP 1
#define SLOW_PROTO_MARKER 2
#define SLOW_PROTO_OAM 3
return;
trunc:
- if (!ndo->ndo_vflag)
- ND_PRINT(" (packet exceeded snapshot)");
- else
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
}
static void
return;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
}
static void
return;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
}
Software Version TLV (0x0004), length: 4 (too short, < 8)
Software Version TLV (0x0004), length: 4 (too short, < 8)
Software Version TLV (0x0004), length: 4 (too short, < 8)
- Software Version TLV (0x0004), length: 4 (too short, < 8)
- packet exceeded snapshot
+ Software Version TLV (0x0004), length: 4 (too short, < 8) [|eigrp]
0x01d0: 0200 0200 0002 0002 0000 0200 0200 0002
0x01e0: 0002 0000 0200 0200 0002 0002 0000 0200
0x01f0: 0200 0002 0002 0000 0200 0200 0002 0002
- Unknown Object (0), Class-Type: Unknown (0) Flags: [non-negotiable], length: 512
- packet exceeded snapshot
+ Unknown Object (0), Class-Type: Unknown (0) Flags: [non-negotiable], length: 512 [|lmp]
MPLS (label 197376, exp 7, [S], ttl 48)
IP (tos 0x30, ttl 48, id 12336, offset 0, flags [none], proto UDP (17), length 12336, bad cksum 3030 (->7754)!)
- 48.4.4.4.4400 > 127.0.0.1.3503:
- packet exceeded snapshot
+ 48.4.4.4.4400 > 127.0.0.1.3503: [|lspping]
IP (tos 0x30, ttl 48, id 12336, offset 0, flags [none], proto UDP (17), length 12336, bad cksum 3030 (->699d)!)
48.48.48.48.3503 > 48.48.48.48.4567: * wb-prep:[|wb]
MPLS (label 197376, exp 7, [S], ttl 48)
IP (tos 0x30, ttl 48, id 12336, offset 0, flags [none], proto UDP (17), length 12336, bad cksum 3030 (->699d)!)
- 48.48.48.48.4400 > 48.48.48.48.3503:
- packet exceeded snapshot
+ 48.48.48.48.4400 > 48.48.48.48.3503: [|lspping]
IP (tos 0x30, ttl 48, id 12336, offset 0, flags [none], proto UDP (17), length 12336, bad cksum 3030 (->c624)!)
48.48.0.1.3503 > 48.4.4.4.4567: * wb-prep:[|wb]
MPLS (label 197376, exp 7, [S], ttl 48)
IP (tos 0x30, ttl 48, id 12336, offset 0, flags [none], proto UDP (17), length 12336, bad cksum 3030 (->7754)!)
- 48.4.4.4.4400 > 127.0.0.1.3503:
- packet exceeded snapshot
+ 48.4.4.4.4400 > 127.0.0.1.3503: [|lspping]
IP (tos 0x30, ttl 48, id 12336, offset 0, flags [none], proto UDP (17), length 12336, bad cksum 3030 (->c624)!)
48.48.0.1.3503 > 48.4.4.4.4567: * wb-prep:[|wb]