Merge FreeBSD ip.c/1.101, commit message:
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 9 Aug 2004 19:54:36 +0000 (19:54 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 9 Aug 2004 19:54:36 +0000 (19:54 +0000)
commit876b4ffbeec85bb4ed601add8961427f43ec7cef
tree3591ac3a6b88098e59a1d83c9a557f2502cf3e18
parentbe97bd96dbc343cb3c070cf32bfe2ea0a485d13b
Merge FreeBSD ip.c/1.101, commit message:

Make getprotobynumber() calls in FilterCheck conditional on the log
levels by which they are used.  On a typical production setting (no
debug or filter logging) this will save an open/read/close system
call sequence per packet, approximately halving the system overhead
and reducing the overall overhead by 38%.

Suggested-by: Barry Bouwsma
usr.sbin/ppp/ip.c