Skip to content

Commit b13b9e3

Browse files
committed
Unirec output: add conversion from iana:icmpTypeCodeIPv4 to UniRec DST_PORT
Destination port is often used to store ICMP type/code in nfdump and other tools, therefore, it is convenient to use this conversion for sake of simplicity.
1 parent db9a5d4 commit b13b9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extra_plugins/output/unirec/config/unirec-elements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
SRC_IP ipaddr e0id8,e0id27 # IPv4 or IPv6 source address
2525
DST_IP ipaddr e0id12,e0id28 # IPv4 or IPv6 destination address
2626
SRC_PORT uint16 e0id7 # Transport protocol source port
27-
DST_PORT uint16 e0id11 # Transport protocol destination port
27+
DST_PORT uint16 e0id11,e0id32 # Transport protocol destination port or ICMP type/code
2828
PROTOCOL uint8 e0id4 # Transport protocol
2929
TCP_FLAGS uint8 e0id6 # TCP flags
3030
BYTES uint64 e0id1 # Number of bytes in flow

0 commit comments

Comments
 (0)