From 2097cd8a7a1322b2853f1b9cbbe7f39c436f553e Mon Sep 17 00:00:00 2001 From: hasso Date: Tue, 23 Dec 2003 11:51:08 +0000 Subject: Some fixes to isisd done by me and Cougar in the spring of 2003. See changelog for details. --- isisd/isis_misc.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'isisd/isis_misc.c') diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c index cf558e83..1f19606c 100644 --- a/isisd/isis_misc.c +++ b/isisd/isis_misc.c @@ -63,7 +63,7 @@ char * isonet_print (u_char *from, int len) { sprintf ( pos, "%02x", *(from + i)); pos += 2; } else { - if (i == 0) { /* if the area addr is just one byte, eg. 47. */ + if (i == (len - 1)) { /* No dot at the end of address */ sprintf ( pos, "%02x", *(from + i)); pos += 2; } else { @@ -187,6 +187,15 @@ nlpid2string (struct nlpids *nlpids) { case NLPID_IPV6: pos += sprintf (pos, "IPv6"); break; + case NLPID_SNAP: + pos += sprintf (pos, "SNAP"); + break; + case NLPID_CLNP: + pos += sprintf (pos, "CLNP"); + break; + case NLPID_ESIS: + pos += sprintf (pos, "ES-IS"); + break; default: pos += sprintf (pos, "unknown"); break; -- cgit v1.2.1