Hello!

>    ipi->ipi_spec_dst.s_addr = next_hop_addr; /* Routing destination

IP_PKTINFO selects source address, rather than destination.

You need not this, actually. Simply send this raw packet to desired
nexthop. [ Or look at rsvpd port at ftp.inr.ac.ru, how to make this. ]


> p.s.: is reading the interface identifier indices (if_index) by ioctl or
> by a netlink socket compatible? 

Yes.


>       ioctl: lo (if_index = 1), dummy (index = 2), eth0 (index = 3) etc.   
>       netlink socket: lo (if_index = 1), eth0 (index = 2!!!!!) etc. 
> 
> shouldn't interface indices be unambiguous?

Evidently, you have run iotcl: and netllink: on different systems.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to