> If you have hardware with a built-in switch that can report the link-speed,

The WNDR3700v2 under OpenWRT appears to do so:

    # swconfig dev switch0 show | grep 'link:'
    link: port:0 link:down
    link: port:1 link:down
    link: port:2 link:up speed:100baseT full-duplex 
    link: port:3 link:down
    link: port:4 link:down
    link: port:5 link:up speed:1000baseT full-duplex txflow rxflow auto

but to use this information, you need to know:

  1. that vlan1 on eth0 is connected to ports 0 through 3 of switch0;
  2. that neighbour fe80::dead:beef is connected over port 2.

You could do (1) with a small amount of model-specific code (yuck), but
I have no idea how to do (2).  Consult the ND cache to find out the
neighbour's MAC, then find a way to snoop on the switch's forwarding table?

-- Juliusz

_______________________________________________
homenet mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/homenet

Reply via email to