| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Short description of ip_fastforward:
o adds full direct process-to-completion IPv4 forwarding code
o handles ip fragmentation incl. hw support (ip_flow did not)
o sends icmp needfrag to source if DF is set (ip_flow did not)
o supports ipfw and ipfilter (ip_flow did not)
o supports divert, ipfw fwd and ipfilter nat (ip_flow did not)
o returns anything it can't handle back to normal ip_input
Enable with sysctl -w net.inet.ip.fastforwarding=1
Reviewed by: sam (mentor)
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- Support IFF_MONITOR.
- Borrow some consistency for if_input() routines from if_ethersubr.c.
- Correct comments regarding fddi_input() that no longer apply.
|
| |
|
| |
|
|
|
|
|
| |
- Call if_attach().
- Conditionally call bpfattach() based on second function argument.
|
|
|
|
|
|
| |
- Remove unneeded assignment.
- Increment if_oerrors as per if_fddisubr.c.
- Wrap ISO code with conditional.
|
| |
|
|
|
|
|
| |
- Add missing breaks.
- Add missing if_noproto++.
|
| |
|
|
|
|
|
| |
- Use 'goto dropanyway' when appropriate.
- Move dropanyway label out of switch for readability.
|
|
|
|
|
| |
in promiscuous mode from if_fddisubr.c.
- Add comment to reduce diffs.
|
|
|
|
| |
This is the same code that was added in 1.70 of if_fddisubr.c
|
| |
|
|
|
|
| |
- Whitespace fixes.
|
| |
|
| |
|
| |
|
|
|
|
| |
- Use definition of senderr() from if_ethersubr.c.
|
| |
|
|
|
|
| |
Cribbed from net/if_fddisubr.c
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
drain routines are done by swi_net, which allows for better queue control
at some future point. Packets may also be directly dispatched to a netisr
instead of queued, this may be of interest at some installations, but
currently defaults to off.
Reviewed by: hsu, silby, jayanth, sam
Sponsored by: DARPA, NAI Labs
|
|
|
|
|
| |
sizeof(struct ether_header) -> ETHER_HDR_LEN
sizeof(struct fddi_header) -> FDDI_HDR_LEN
|
| |
|
| |
|
|
|
|
| |
Approved by: sam (in principle)
|
|
|
|
| |
Approved by: trb
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
|
|
|
| |
especially in troff files.
|
|
|
|
| |
printf("%s%d: blah", ifp->if_name, ifp->if_xname).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
field. This returns the sdl_data field to a variable-length field. More
importantly, this prevents a easily-reproduceable data-corruption bug when
the interface name plus the hardware address exceed the sdl_data field's
original 12 byte limit. However, token-ring interfaces may still overflow
the new sdl_data field's 46 byte limit if the interface name exceeds 6
characters (since 6 characters for interface name plus 6 for hardware
address plus 34 for source routing = the size of sdl_data). Further
refinements could overcome this limitation but would break binary
compatibility; this commit only addresses fixing the bug for
commonly-occuring cases without breaking binary compatibility with the
intention that the functionality can be MFC'ed to -stable.
See message ID's (both send to -arch):
20020421013332.F87395-100000@gateway.posi.net
20020430181359.G11009-300000@gateway.posi.net
for a more thorough description of the bug addressed and how to
reproduce it.
Approved by: silence on -arch and -net
Sponsored by: NTT Multimedia Communications Labs
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
Reviewed by: jdp
Approved by: jdp
Obtained from: NetBSD
MFC after: 6 weeks
|
|
|
|
|
|
|
| |
ifnet_addrs[i - 1] -> ifaddr_byindex(i)
ifindex2ifnet[i] -> ifnet_byindex(i)
This is intended to ease the conversion to SMPng.
|
|
|
|
|
| |
PR: 25006
MFC after: 2 weeks
|
|
|
|
|
| |
- Add support for 802.2 type IPX frames.
- Cleanup iso88025_output() and iso88025_output() a bit.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
before adding/removing packets from the queue. Also, the if_obytes and
if_omcasts fields should only be manipulated under protection of the mutex.
IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on
the queue. An IF_LOCK macro is provided, as well as the old (mutex-less)
versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which
needs them, but their use is discouraged.
Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF,
which takes care of locking/enqueue, and also statistics updating/start
if necessary.
|
| |
|
|
|
|
|
|
| |
interface queue.
Tested by: Bosko Milekic <bmilekic@dsuper.net>
|
| |
|
| |
|
|
|
|
| |
Remove ~60 unneeded #include <sys/malloc.h>
|