Actually trying to do it via the STC API.
Could you try matching the "Ethertype" value from Ethernet header?
We can try adding IPv4 source address and IPv6 source address to the Grid in Streamblock view.
Blank fields in one column show that its of the other version encapsulation
Is there an easier way to determine the IPvX pdu of a streamblock? Currently I use a proc to determine the PDU:
# Returns the IPvX PDU Version. proc getIPvX {hStreamBlock} { set hPDUv4 [stc::get $hStreamBlock -children-ipv4:IPv4] if {$hPDUv4 != {}} { return 4 } set hPDUv6 [stc::get $hStreamBlock -children-ipv6:IPv6] if {$hPDUv6 != {}} { return 6 } # Unknown IP PDU. return -1 }
Trying to simplify this code so that I don't have to do additional stc::get(s) on a large volume of streamblocks.
21 People are following this question.