jamal <hadi@xxxxxxxxxx> wrote:
>
> Can you provide a real example (output of route display in user space)
> where this would be valuable?
Without the real oif you will see entries like this in the output of
ip r l c:
192.168.0.7 dev eth0 src 192.168.0.6
cache mtu 1500 advmss 1460 metric10 64
192.168.0.7 dev eth0 src 192.168.0.6
cache mtu 1500 advmss 1460 metric10 64
One of those has oif == 0 while the other one has oif == eth0.
To generate an entry with oif == eth0, just send a UDP packet and
bound to eth0.
> whats wrong with the combo of RTA_OIF and RTA_SRC?
Both of those attributes are independent of the real oif.
Cheers,
--
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
|