NICMx / Jool

SIIT and NAT64 for Linux
GNU General Public License v2.0
326 stars 66 forks source link

BIB logging doesn't log UDP and ICMP, only TCP #241

Closed steffann closed 7 years ago

steffann commented 7 years ago

Looking at the logging after a reboot:

root@tr2:~# dmesg | fgrep Jool
[   56.471196] NAT64 Jool: NAT64 Jool v3.5.2.0 module inserted.

root@tr2:~# jool --bib
TCP:
  (empty)
UDP:
  (empty)
ICMP:
  (empty)

Now I trigger TCP, UDP and ICMP. This shows up in the BIB table:

root@tr2:~# jool --bib
TCP:
[Dynamic] 185.54.94.51#11898 - 2a02:a213:a300:9300:8caf:f8ee:2588:6677#57320
  (Fetched 1 entries.)
UDP:
[Dynamic] 185.54.94.50#47022 - 2a02:a213:a300:9300:8caf:f8ee:2588:6677#57681
  (Fetched 1 entries.)
ICMP:
[Dynamic] 185.54.94.49#61371 - 2a02:a213:a300:9300:8caf:f8ee:2588:6677#6678
  (Fetched 1 entries.)

But the logging only shows the TCP entry:

root@tr2:~# dmesg | fgrep Jool
[   56.471196] NAT64 Jool: NAT64 Jool v3.5.2.0 module inserted.
[   88.442538] NAT64 Jool: 2017/3/4 20:50:57 (GMT) - Mapped 2a02:a213:a300:9300:8caf:f8ee:2588:6677#57320 to 185.54.94.51#11898 (TCP)

For some reason UDP and ICMP entries don't show up...

steffann commented 7 years ago

And I found the missing bits. Patch provided in #242.

steffann commented 7 years ago

And the fix has already been merged