summaryrefslogtreecommitdiffstats
path: root/isisd/isis_misc.c
diff options
context:
space:
mode:
authorhasso <hasso>2003-12-23 12:51:08 +0100
committerhasso <hasso>2003-12-23 12:51:08 +0100
commit2097cd8a7a1322b2853f1b9cbbe7f39c436f553e (patch)
treeab849230440ac6429f6d2caea41d36cb893f0c8d /isisd/isis_misc.c
parentLet's use 2608/tcp for isisd. (diff)
downloadfrr-2097cd8a7a1322b2853f1b9cbbe7f39c436f553e.tar.xz
frr-2097cd8a7a1322b2853f1b9cbbe7f39c436f553e.zip
Some fixes to isisd done by me and Cougar in the spring of 2003. See
changelog for details.
Diffstat (limited to 'isisd/isis_misc.c')
-rw-r--r--isisd/isis_misc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c
index cf558e83f..1f19606c6 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;