troglobit / smcroute

Static multicast routing for UNIX
https://troglobit.com/projects/smcroute/
GNU General Public License v2.0
244 stars 64 forks source link

smcroutectl show does not show ipv6 routes #156

Closed GrumpyOldTroll closed 3 years ago

GrumpyOldTroll commented 3 years ago

The actual packet forwarding works and a route is configured by smcroute.conf (or by smcroutectl add), but nothing is shown for ipv6 routes in smcroutectl show:

$ sudo smcroutectl show
ROUTE (S,G)                        INBOUND             PACKETS      BYTES OUTBOUND                                                       
(10.9.1.2, 239.1.1.0)              xup0             0000000000 0000000000  xdn0
(10.9.1.2, 239.1.1.7)              xup0             0000000000 0000000000  xdn0
(10.9.1.2, 239.1.1.6)              xup0             0000000000 0000000000  xdn0
(10.9.1.2, 239.1.1.5)              xup0             0000000000 0000000000  xdn0
(10.9.1.2, 239.1.1.4)              xup0             0000000000 0000000000  xdn0
(10.9.1.2, 239.1.1.3)              xup0             0000000000 0000000000  xdn0
(10.9.1.2, 239.1.1.2)              xup0             0000000000 0000000000  xdn0
(10.9.1.2, 239.1.1.1)              xup0             0000000000 0000000000  xdn0
$ sudo cat /proc/net/ip6_mr_cache 
Group                            Origin                           Iif      Pkts  Bytes     Wrong  Oifs
ff3e:0000:0000:0000:0000:0000:8000:0001 fd1f:4954:471f:0009:0000:0000:0000:0002 0          1      173        0  2:1  
ff3e:0000:0000:0000:0000:0000:8000:0002 fd1f:4954:471f:0009:0000:0000:0000:0002 0          0        0        0  2:1  
ff3e:0000:0000:0000:0000:0000:8000:0003 fd1f:4954:471f:0009:0000:0000:0000:0002 0          0        0        0  2:1  
ff3e:0000:0000:0000:0000:0000:8000:0004 fd1f:4954:471f:0009:0000:0000:0000:0002 0          0        0        0  2:1  
ff3e:0000:0000:0000:0000:0000:8000:0005 fd1f:4954:471f:0009:0000:0000:0000:0002 0          0        0        0  2:1  
ff3e:0000:0000:0000:0000:0000:8000:0006 fd1f:4954:471f:0009:0000:0000:0000:0002 0          0        0        0  2:1  
ff3e:0000:0000:0000:0000:0000:8000:0007 fd1f:4954:471f:0009:0000:0000:0000:0002 0          0        0        0  2:1  
ff3e:0000:0000:0000:0000:0000:8000:0000 fd1f:4954:471f:0009:0000:0000:0000:0002 0          0        0        0  2:1  
$ cat /etc/smcroute.conf 
mroute from xup0 group 239.1.1.1 source 10.9.1.2 to xdn0
mroute from xup0 group 239.1.1.2 source 10.9.1.2 to xdn0
mroute from xup0 group 239.1.1.3 source 10.9.1.2 to xdn0
mroute from xup0 group 239.1.1.4 source 10.9.1.2 to xdn0
mroute from xup0 group 239.1.1.5 source 10.9.1.2 to xdn0
mroute from xup0 group 239.1.1.6 source 10.9.1.2 to xdn0
mroute from xup0 group 239.1.1.7 source 10.9.1.2 to xdn0
mroute from xup0 group 239.1.1.0 source 10.9.1.2 to xdn0

mroute from xup0 group ff3e::8000:1 source fd1f:4954:471f:9::2 to xdn0
mroute from xup0 group ff3e::8000:2 source fd1f:4954:471f:9::2 to xdn0
mroute from xup0 group ff3e::8000:3 source fd1f:4954:471f:9::2 to xdn0
mroute from xup0 group ff3e::8000:4 source fd1f:4954:471f:9::2 to xdn0
mroute from xup0 group ff3e::8000:5 source fd1f:4954:471f:9::2 to xdn0
mroute from xup0 group ff3e::8000:6 source fd1f:4954:471f:9::2 to xdn0
mroute from xup0 group ff3e::8000:7 source fd1f:4954:471f:9::2 to xdn0
mroute from xup0 group ff3e::8000:0 source fd1f:4954:471f:9::2 to xdn0
troglobit commented 3 years ago

Good catch, may I ask what version of SMCRoute you are using?

GrumpyOldTroll commented 3 years ago

It's whatever I got from "sudo apt install smcroute" on an ubuntu 20 stable build recently, which looks to be 2.4.2:

user@border-rtr:~$ dpkg --list | grep smcroute
ii  smcroute                             2.4.2-4                               amd64        static multicast router daemon

Sorry for the slow response, and please let me know if there's anything else you need.

troglobit commented 3 years ago

OK, thanks! I have a few other things in my queue, but SMCRoute is in the top 5, so I should be able to get back to the refactor and cleanup to help address this.