tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: route(8) and old messages



In article <cf2a4eee-3730-56ce-5be0-bbc8172565cc%marples.name@localhost>,
Roy Marples  <roy%marples.name@localhost> wrote:
>Hi
>
>So I just fixed an issue where RTM_ONEWADDR was recieved by route(8) and 
>it tried to parse it as a route message rather than an address message.
>
>My question is this - should the `route monitor` command discard old 
>message types or are they somehow important to someone?
>
>For reference the output is like this:
>
>#12: len 112, got message of size 120 on Tue Aug 14 21:55:16 2018
>RTM_NEWADDR: address being added to iface: len 120, pid 14517, metric 0, 
>flags: 0x100<CONNECTED>
>
>The first line is RTM_ONEWADDR.
>I'm tempted to add code to exlcude all old messages so that line isn't 
>even printed. Opinions?

I think that it is time to re-think how the routing socket works. Having
each program and the kernel deal with sending and receing all versions of
all messages is wasteful and painful to maintain. In the short term we
should fix things to use a message filter to indicate interest on the
message types they are interested, but the question is what to do in
the long term...

christos



Home | Main Index | Thread Index | Old Index