I am a bit confused with respect to the structure of rtnetlink requests.
It seems that in some circumstances a request can look like:

    struct request
    {
        struct nlmsghdr header;
        struct rtgenmsg body;
    };

and in other cases it can look like:

    struct request
    {
        struct nlmsghdr header;
        struct ifinfomsg body;
    };

How do I know which one to use when sending RTM_GETLINK and
RTM_GETADDR requests? Furthermore, it also seems that 'struct rtattr'
can be specified at the end of the request as well. Is there any
documentation that describes this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to