OpenBSD/src YaYRgHX — sys/netinet ip_input.c
Make ip_forward() use the route entry fetched in in_ouraddr() when it is possible. This reduce the number of lookups to 1 for non-multicast traffic when PF is disable. Tested by Hrvoje Popovski who confirmed that benchmark numbers are now as good as with a single cache entry. ok visa@, bluhm@
Version | Delta | File | |
---|---|---|---|
1.275 | +29 | -23 | sys/netinet/ip_input.c |
+29 | -23 | 1 files |