CVSROOT: /cvs Module name: src Changes by: henn...@cvs.openbsd.org 2009/06/03 23:02:25
Modified files: sys/netinet : ip_input.c Log message: the decision on wether a packet is to be delivered locally or forwarded is pretty expensive, the more the more addresses are configured locally, since we walk a list. when pf is on and we have a state key pointer, and that state key is linked to another state key, we know for sure this is not local. when it has a link to a pcb, it certainly goes to the local codepath. on a box with 1000 adresses forwarding 3 times as fast as before. theo ok