loopback device types and netmask

Guido van Rooij guido at gvr.org
Thu Jan 20 06:33:29 PST 2005


It seems that the netmask is ignored on loopback type devices.
Especially with the discard device this is annoying.
If one has a discard interface with the following settings:
disc0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 65532
        inet 10.100.100.1 netmask 0xffffff00
only 10.100.100.1 is sent to the discard device. All the others
need to be explcitly routed towards it.
This seems non-intuitive.
A quick glance through the code didn't reveil where/how to fix this.

Anyone?

-Guido


More information about the freebsd-net mailing list