Part of my routing table is here:
3.3.0.0 * 255.255.0.0 U 0 0 0 eth1
default meric 0.0.0.0 UG 0 0 0 eth0
Ommiting NLM_F_DUMP and typing './a.out 3.3.0.0' gives
Error in recieved packet: Success
Read From Socket Failed...
and I don't see the reason why... I think, it should write something with the
3.3.0.0 destination, but writes the error above instead
On Fri, 17 Jun 2005, Thomas Graf wrote:
> * 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.
>
>
>
>
>
|