mrg
cf594a3f4d
<vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-28 03:01:16 +00:00
sommerfeld
f3182098a7
If a packet came in as link-level broadcast or link-level multicast, don't
...
attempt to fast-forward it out.
1999-10-17 23:38:45 +00:00
proff
85ab19698a
security: test for ip_len < ip_hl <<2 and drop packet accordingly
1999-03-26 08:51:35 +00:00
itohy
7751c2e2eb
~htons(...) is always negative.
1999-01-28 21:29:27 +00:00
mycroft
8ede79f2b4
One more tweak to the checksum hack, and I promise I'm done. B-)
1999-01-25 15:53:29 +00:00
mycroft
50438b6df0
Absolutely minor tweak to generate better code.
1999-01-25 15:36:50 +00:00
mycroft
70e6acdfef
Update the comment about the checksum hack. It was way out of date.
1999-01-24 13:34:35 +00:00
mycroft
94895652e1
Modify the checksum slightly so that the htons()s can all be combined.
1999-01-24 12:57:38 +00:00
thorpej
14f5ac9081
Use the pool allocator for ipflow entries.
1998-10-08 01:41:45 +00:00
sommerfe
a90d5cd12e
Truncate mbufs to the correct length before forwarding; fixes pr5560
1998-06-10 00:47:57 +00:00
thorpej
edc01ec330
In addition to the IP flow hash table, put the flows on a list. The table
...
is used for fast lookup, the list for traversal of all flows. Also, use
PRT timers.
1998-06-02 15:48:03 +00:00
matt
1b2b1d801b
Fix two bugs.
1998-05-18 17:08:56 +00:00
matt
36eac04cc0
Default IP flow to being enabled. Add a sysctl to control the maximum
...
number of flows (net.inet.ip.maxflows). If set to 0, will disable fast
path forwarding.
1998-05-04 19:24:53 +00:00
thorpej
447384d6b8
- kern/5380 (Dennis Ferguson): fix incremental IP header checksum.
...
- kern/5381 (Dennis Ferguson): check IP header checksum in fast forward
code.
- In ipflow_slowtimo(), if no IP flows are in use, don't bother checking
all of the hash buckets.
1998-05-04 05:46:04 +00:00
matt
d4d709f7d0
Add support for "fast" forwarding. Add hooks in if_ethersubr.c and
...
if_fddisubr.c to fastpath IP forwarding. If ip_forward successfully
forwards a packet, it will create a cache (ipflow) entry. ether_input
and fddi_input will first call ipflow_fastforward with the received
packet and if the packet passes enough tests, it will be forwarded (the
ttl is decremented and the cksum is adjusted incrementally).
1998-04-29 21:37:52 +00:00