Issue 7129
When configured with the existing "ethernet" switch, include the ether
type in the output.
This is most useful with anomaly records indicating unknown ethertypes.
"src_mac": {
"type": "string"
},
+ "ether_type": {
+ "type": "integer",
+ "description": "Ethernet type value "
+ },
"dest_macs": {
"type": "array",
"minItems": 1,
if (PacketIsEthernet(p)) {
const EthernetHdr *ethh = PacketGetEthernet(p);
jb_open_object(js, "ether");
+ jb_set_uint(js, "ether_type", ethh->eth_type);
const uint8_t *src;
const uint8_t *dst;
switch (dir) {