Skip to contentSkip to conversation

ip rule and ip route

DISCUSSION Abhishek Misra 2 participants 2 messages Sep 26, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Hello,

Last week there was a mail on use of ip route.
Please let me know if there are ioctls for ip rule and ip route.

The usual ip_rt_ioctl has only this

int ip_rt_ioctl(unsigned int cmd, void *arg)

{
        int err;
        struct kern_rta rta;
        struct rtentry  r;
        struct {
                struct nlmsghdr nlh;
                struct rtmsg    rtm;
        } req;
                                                                          
                                                  
        switch (cmd) {
        case SIOCADDRT:         /* Add a route */
        case SIOCDELRT:         /* Delete a route */
        .....
        .....

}

Thank You

#1 lore raw
Quoted 1 line · Abhishek Misra

Please let me know if there are ioctls for ip rule and ip route.

Wrong mailinglist, but iproute uses netlink, not ioctl.

Regards
Henrik