diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-02 11:52:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-02 11:52:52 +0000 |
commit | cedbe93a2687ccbea233b54468223741b6de0f9d (patch) | |
tree | 3677f7a8c1f2ad410bfda5b031830b48ff26de6c /packet-ipv6.c | |
parent | 50e7338c515739611f77a1a93ccb9dbc984c51dd (diff) |
Only say "IPv6" once in the Info column for "no next header" packets.
svn path=/trunk/; revision=5363
Diffstat (limited to 'packet-ipv6.c')
-rw-r--r-- | packet-ipv6.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/packet-ipv6.c b/packet-ipv6.c index b81f2fa1c0..79638e9139 100644 --- a/packet-ipv6.c +++ b/packet-ipv6.c @@ -1,7 +1,7 @@ /* packet-ipv6.c * Routines for IPv6 packet disassembly * - * $Id: packet-ipv6.c,v 1.80 2002/05/02 08:55:52 guy Exp $ + * $Id: packet-ipv6.c,v 1.81 2002/05/02 11:52:52 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -965,18 +965,19 @@ again: put something in the Info column; leave it there. */ if (!ah) { if (hopopts || routing || dstopts) { - char *sep = ""; + char *sep = "IPv6 "; if (hopopts) { - col_append_str(pinfo->cinfo, COL_INFO, "IPv6 hop-by-hop options"); + col_append_fstr(pinfo->cinfo, COL_INFO, "%shop-by-hop options", + sep); sep = ", "; } if (routing) { - col_append_fstr(pinfo->cinfo, COL_INFO, "%sIPv6 routing", sep); + col_append_fstr(pinfo->cinfo, COL_INFO, "%srouting", sep); sep = ", "; } if (dstopts) { - col_append_fstr(pinfo->cinfo, COL_INFO, - "%sIPv6 destination options", sep); + col_append_fstr(pinfo->cinfo, COL_INFO, "%sdestination options", + sep); } } else col_set_str(pinfo->cinfo, COL_INFO, "IPv6 no next header"); |