Re: ip_input() refactoring

2014-12-03 Thread Alexander Bluhm
On Thu, Nov 13, 2014 at 03:42:07PM +0100, Martin Pieuchot wrote: > It also increments rt_use counters for the local routes, (say yeah!). We have in net/route.h u_int64_t rmx_pksent; /* packets sent using this route */ #define rt_use rt_rmx.rmx_pksent So the comment implies that

Re: ip_input() refactoring

2014-11-24 Thread Martin Pieuchot
On 13/11/14(Thu) 15:42, Martin Pieuchot wrote: > In order to do *only one* route lookup without using a global variable > (yes, I'm looking at you netinet6) and without doing too much spaghetti, > here's a refactoring of ip_input(). > > It basically merges in_ouraddr() into ip_input(), but some op

ip_input() refactoring

2014-11-13 Thread Martin Pieuchot
In order to do *only one* route lookup without using a global variable (yes, I'm looking at you netinet6) and without doing too much spaghetti, here's a refactoring of ip_input(). It basically merges in_ouraddr() into ip_input(), but some operations are shuffled, when possible, to reduces differen