summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-14 11:05:13 +0000
committerhasso <hasso>2004-09-14 11:05:13 +0000
commit64a7afd6de67eebda09a6766aa27dbd722539363 (patch)
tree484ef68fd5f186cb957852f136c8f5f1aeb364f6 /isisd
parentae399ab0cf6387385cc9958d64309a838467055f (diff)
isis_pdu.c: Update l1_desig_is only if neighbor really is DIS.
Diffstat (limited to 'isisd')
-rw-r--r--isisd/ChangeLog4
-rw-r--r--isisd/isis_pdu.c10
2 files changed, 10 insertions, 4 deletions
diff --git a/isisd/ChangeLog b/isisd/ChangeLog
index 33608b13..3fa9f98a 100644
--- a/isisd/ChangeLog
+++ b/isisd/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-14 LIU Xin <lx at ns.6test.edu.cn>
+
+ * isis_pdu.c: Update l1_desig_is only if neighbor really is DIS.
+
2004-09-10 LIU Xin <lx at ns.6test.edu.cn>
* isis_pdu.c: Goto out only if no adjacency exist.
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index c7142eea..1ecdab48 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -839,16 +839,18 @@ process_lan_hello (int level, struct isis_circuit *circuit, u_char * ssnpa)
if (memcmp (circuit->u.bc.l1_desig_is, hdr.lan_id, ISIS_SYS_ID_LEN + 1))
{
thread_add_event (master, isis_event_dis_status_change, circuit, 0);
- memcpy (&circuit->u.bc.l1_desig_is, hdr.lan_id,
- ISIS_SYS_ID_LEN + 1);
+ if (adj->dis_record[level-1].dis == ISIS_IS_DIS)
+ memcpy (&circuit->u.bc.l1_desig_is, hdr.lan_id,
+ ISIS_SYS_ID_LEN + 1);
}
break;
case 2:
if (memcmp (circuit->u.bc.l2_desig_is, hdr.lan_id, ISIS_SYS_ID_LEN + 1))
{
thread_add_event (master, isis_event_dis_status_change, circuit, 0);
- memcpy (&circuit->u.bc.l2_desig_is, hdr.lan_id,
- ISIS_SYS_ID_LEN + 1);
+ if (adj->dis_record[level-1].dis == ISIS_IS_DIS)
+ memcpy (&circuit->u.bc.l2_desig_is, hdr.lan_id,
+ ISIS_SYS_ID_LEN + 1);
}
break;
}