well, i meet a problem when i'm trying to make a program which do the things like cmd "route add net dest_net_addr gw_addr -interface". i use the "struct rt_msghdr" to save the routing information, and pass them to kernel routing table by socket.
this method only can add routing information as follows: dest gw flags ref use interface 192.168.122.64 192.168.122.114 UG 1 0 the interface item is null. if i use the cmd "route add net dest_net gw -interface", the routing table is: dest gw flags ref use interface 192.168.122.64 192.168.122.114 U 1 0 eth0 i am sure that i assigned right ifindex value to the rt_msghdr. what's wrong with my program? or are there some other method to implement this cmd? please help me. This message posted from opensolaris.org _______________________________________________ networking-discuss mailing list [email protected]
