On 23/01/17(Mon) 01:18, Claudio Jeker wrote: > [...] > Last bit for now. This is changing the reporting madness. It moves it in > its own function which is called after the big switch statement. > If you hit a bad error in the switch the code should eiter goto fail or > flush. > The new function rt_report is actually constructing the rt message out of > a rtentry. It does not magically update the message that was passed in > from userland. I think this is much safer and works better.
[...] > + /* > + * From here on these vars need to be valid > + * rt, rtm, error, so, m, tableid, sa_family Why not use KASSERT() rather than a comment? ok mpi@ either way .