]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RPL: print DAO flags (acK, DagID)
authorMichael Richardson <[email protected]>
Sun, 5 Jan 2014 16:59:29 +0000 (11:59 -0500)
committerMichael Richardson <[email protected]>
Wed, 2 Jul 2014 22:00:30 +0000 (18:00 -0400)
remove DAO messages from DIO test data

print-icmp6.c
tests/TESTLIST
tests/rpl-14-daovvv.out
tests/rpl-19-pickdag.out
tests/rpl-19-pickdag.pcap
tests/rpl-19-pickdagvvv.out
tests/rpl-dio.out [deleted file]
tests/rpl-dio.pcap [deleted file]

index cb7e52795def2c0c31e903df7dec896ff1538c40..553bb46ee23a891e9c0232e8565557e39376be0f 100644 (file)
@@ -759,10 +759,13 @@ rpl_dao_print(netdissect_options *ndo,
                 length -= DAGID_LEN;
         }
 
-        ND_PRINT((ndo, " [dagid:%s,seq:%u,instance:%u]",
+        ND_PRINT((ndo, " [dagid:%s,seq:%u,instance:%u%s%s,%02x]",
                   dagid_str,
                   dao->rpl_daoseq,
-                  dao->rpl_instanceid));
+                  dao->rpl_instanceid,
+                  RPL_DAO_K(dao->rpl_flags) ? ",acK":"",
+                  RPL_DAO_D(dao->rpl_flags) ? ",Dagid":"",
+                  dao->rpl_flags));
 
         if(ndo->ndo_vflag > 1) {
                 const struct rpl_dio_genoption *opt = (struct rpl_dio_genoption *)bp;
index 7eb7627fd1b7a123b92b0d2ae7f8c749dd31296b..3cdc7caa72635f33a1860f9a8c15d2f7f289b5c7 100644 (file)
@@ -58,7 +58,6 @@ ikev2fourv4   ikev2four.pcap          ikev2fourv4.out -t -v -v -v -v
 # ikev2pI2 test in crypto.sh
 
 # IETF ROLL RPL packets
-dio01           rpl-dio.pcap                rpl-dio.out         -t -v
 dio02           rpl-19-pickdag.pcap         rpl-19-pickdag.out  -t -v -v
 dio03           rpl-19-pickdag.pcap         rpl-19-pickdagvvv.out  -t -v -v -v
 dao01           rpl-14-dao.pcap             rpl-14-daovvv.out    -t -v -v -v
index 8144aafb7acd8a6c331d8655966bede8921c16b7..bca04262bacc6ee30e5cd973f8df43e47ee9ceb1 100644 (file)
@@ -1 +1 @@
-IP6 (hlim 64, next-header ICMPv6 (58) payload length: 24) fe80::216:3eff:fe11:3424 > ff02::1: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:pandora is fun0x0,seq:1,instance:1]
+IP6 (hlim 64, next-header ICMPv6 (58) payload length: 24) fe80::216:3eff:fe11:3424 > ff02::1: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:pandora is fun0x0,seq:1,instance:1,Dagid,40]
index fb29b887153dda14358492326c91e17142386b96..e4aad2312dd53a6a4f27e1c919c7e0881df3462a 100644 (file)
@@ -1,2 +1 @@
-IP6 (hlim 64, next-header ICMPv6 (58) payload length: 48) fe80::216:3eff:fe11:3424 > ff02::1: [icmp6 sum ok] ICMP6, RPL, (CLR)DODAG Information Object [dagid:T10x0,seq:10,instance:42,rank:3,grounded,mop:storing,prf:0] opt:destprefix len:15  opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0
-IP6 (hlim 64, next-header ICMPv6 (58) payload length: 56) fe80::216:3eff:fe11:3424 > fe80::216:3eff:fe11:3424: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:T10x0,seq:10,instance:42] opt:rpltarget len:25  opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0
+IP6 (hlim 64, next-header ICMPv6 (58) payload length: 56) fe80::216:3eff:fe11:3424 > fe80::216:3eff:fe11:3424: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:T10x0,seq:10,instance:42,Dagid,40] opt:rpltarget len:25  opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0
index 97c0e0bc8495434a1665729d25dd7b111c0df182..3eca6c99dfb0763f0b50f0511fd41172d7e50e1f 100644 (file)
Binary files a/tests/rpl-19-pickdag.pcap and b/tests/rpl-19-pickdag.pcap differ
index 3616cc96ff54a39a737d4f29c12d74521c68728b..c7dc6b5efaa4da1528a7d6372015d05b9fd83d7e 100644 (file)
@@ -1,2 +1 @@
-IP6 (hlim 64, next-header ICMPv6 (58) payload length: 48) fe80::216:3eff:fe11:3424 > ff02::1: [icmp6 sum ok] ICMP6, RPL, (CLR)DODAG Information Object [dagid:T10x0,seq:10,instance:42,rank:3,grounded,mop:storing,prf:0] opt:destprefix len:15  0x0000:  3000 0000 0000 2001 0db8 0001 00 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0
-IP6 (hlim 64, next-header ICMPv6 (58) payload length: 56) fe80::216:3eff:fe11:3424 > fe80::216:3eff:fe11:3424: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:T10x0,seq:10,instance:42] opt:rpltarget len:25  0x0000:  0080 2001 0db8 0001 0000 0216 3eff fe11 0x0010:  3424 0000 0000 00 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0
+IP6 (hlim 64, next-header ICMPv6 (58) payload length: 56) fe80::216:3eff:fe11:3424 > fe80::216:3eff:fe11:3424: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:T10x0,seq:10,instance:42,Dagid,40] opt:rpltarget len:25  0x0000:  0080 2001 0db8 0001 0000 0216 3eff fe11 0x0010:  3424 0000 0000 00 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0 opt:pad0
diff --git a/tests/rpl-dio.out b/tests/rpl-dio.out
deleted file mode 100644 (file)
index 02912af..0000000
+++ /dev/null
@@ -1 +0,0 @@
-IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) fe80::1000:ff:fe64:6423 > ff02::1: [icmp6 sum ok] ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:<elided>,seq:1,instance:0]
diff --git a/tests/rpl-dio.pcap b/tests/rpl-dio.pcap
deleted file mode 100644 (file)
index 8170635..0000000
Binary files a/tests/rpl-dio.pcap and /dev/null differ