netdev
[Top] [All Lists]

Re: receive only one record from the routing table

To: Tomá? Macek <maca02@xxxxxxxx>
Subject: Re: receive only one record from the routing table
From: Thomas Graf <tgraf@xxxxxxx>
Date: Fri, 17 Jun 2005 16:15:27 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.61.0506171359490.31631@localhost.localdomain>
References: <Pine.LNX.4.61.0506171359490.31631@localhost.localdomain>
Sender: netdev-bounce@xxxxxxxxxxx
* Tom?? Macek <Pine.LNX.4.61.0506171359490.31631@xxxxxxxxxxxxxxxxxxxxx> 
2005-06-17 14:51
>      nlMsg->nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); // Length of 
> message.
>      nlMsg->nlmsg_type = RTM_GETROUTE;   // Get the routes from kernel 
> routing table .
> 
>      nlMsg->nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP;   // The message is a 
> request for dump.

Omit NLM_F_DUMP and you'll be fine, see rfc3549.

<Prev in Thread] Current Thread [Next in Thread>