static const struct symbol_table pkttype_type_tbl = {
.symbols = {
- SYMBOL("unicast", PACKET_HOST),
+ SYMBOL("host", PACKET_HOST),
+ SYMBOL("unicast", PACKET_HOST), /* backwards compat */
SYMBOL("broadcast", PACKET_BROADCAST),
SYMBOL("multicast", PACKET_MULTICAST),
+ SYMBOL("other", PACKET_OTHERHOST),
SYMBOL_LIST_END,
},
};
meta rtclassid "cosmos";ok;rtclassid "cosmos"
meta pkttype broadcast;ok;pkttype broadcast
-meta pkttype unicast;ok;pkttype unicast
+meta pkttype host;ok;pkttype host
meta pkttype multicast;ok;pkttype multicast
meta pkttype != broadcast;ok;pkttype != broadcast
-meta pkttype != unicast;ok;pkttype != unicast
+meta pkttype != host;ok;pkttype != host
meta pkttype != multicast;ok;pkttype != multicast
meta pkttype broadcastttt;fail
meta pkttype { broadcast, multicast} accept;ok
[ meta load pkttype => reg 1 ]
[ cmp eq reg 1 0x00000001 ]
-# meta pkttype unicast
+# meta pkttype host
ip test-ip4 input
[ meta load pkttype => reg 1 ]
[ cmp eq reg 1 0x00000000 ]
[ meta load pkttype => reg 1 ]
[ cmp neq reg 1 0x00000001 ]
-# meta pkttype != unicast
+# meta pkttype != host
ip test-ip4 input
[ meta load pkttype => reg 1 ]
[ cmp neq reg 1 0x00000000 ]