Diomidis Spinellis e2ccf799f2 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%.

dd bs=1k count=512 if=/usr/share/dict/web2 |
ssh ppp-linked-host dd of=/dev/null

# time original-ppp -nat -foreground connection
Working in foreground mode
Using interface: tun0
2.822u 2.404s 2:00.31 4.3%    392+496k 8+18io 3pf+0w

# time new-ppp  -nat -foreground connection
Working in foreground mode
Using interface: tun0
2.082u 1.173s 1:26.06 3.7%    379+450k 0+18io 0pf+0w

MFC after:	3 weeks
2004-05-13 09:03:00 +00:00
..
2004-05-10 21:18:03 +00:00
2004-01-21 13:38:17 +00:00
2004-01-21 13:38:17 +00:00
2004-04-13 19:31:21 +00:00
2004-04-13 19:31:21 +00:00
2003-09-14 13:41:59 +00:00
2003-09-07 16:43:53 +00:00
2004-03-04 19:12:27 +00:00
2003-07-06 12:44:11 +00:00
2004-01-04 15:51:32 +00:00
2003-04-04 17:49:21 +00:00
2004-04-05 08:15:04 +00:00
2002-07-14 14:47:15 +00:00
2004-03-28 13:42:27 +00:00
2004-03-28 13:42:27 +00:00
2004-03-28 13:42:27 +00:00
2003-12-17 10:14:11 +00:00
2003-06-11 21:37:19 +00:00
2002-07-14 14:47:15 +00:00
2002-07-14 14:47:15 +00:00
2002-11-27 15:31:08 +00:00
2004-02-23 20:25:27 +00:00
2004-02-23 20:25:27 +00:00
2004-03-27 14:23:25 +00:00
2003-07-06 12:44:11 +00:00
2003-08-04 21:31:53 +00:00
2003-04-04 17:49:21 +00:00
2004-02-23 20:25:27 +00:00
2003-04-04 17:49:21 +00:00
2004-01-15 13:23:21 +00:00
2003-04-29 19:53:00 +00:00
2002-07-14 14:47:15 +00:00
2004-03-26 09:28:03 +00:00
2002-07-14 14:47:15 +00:00
2004-04-04 19:46:14 +00:00
2003-10-29 09:31:41 +00:00
2003-10-26 10:30:17 +00:00
2004-03-10 08:46:39 +00:00
2003-07-06 12:44:11 +00:00
2004-03-17 20:10:59 +00:00
2004-05-07 19:15:56 +00:00
2003-02-24 22:53:26 +00:00
2003-06-08 14:33:04 +00:00
2002-07-14 14:47:15 +00:00
2004-05-07 19:15:56 +00:00
2003-06-04 15:58:03 +00:00
2004-02-04 21:59:29 +00:00
2002-07-28 02:27:07 +00:00
2003-10-25 22:03:10 +00:00
2002-07-14 14:47:15 +00:00
2003-10-05 12:09:31 +00:00
2004-01-21 14:01:29 +00:00
2003-06-04 19:24:24 +00:00
2003-04-04 17:49:21 +00:00
2003-08-16 19:59:53 +00:00