Age | Commit message (Collapse) | Author |
|
outbound), using a new BIOCSDIRFILT ioctl;
guidance, feedback and ok canacar@
|
|
the remainder of the network stack from splimp to splnet.
ok miod@
|
|
fixes a possible crash if the parent interface has been destroyed
(like vlan on trunk) before destroying the vlan interface.
ok brad@
|
|
ok claudio@ brad@
|
|
ok brad@
|
|
The previous code could wrongly delete multicast groups
on the parent interface. Now we forward only remembered
delete requests.
OK mcbride, mickey.
|
|
to bpf with either an address family or other header added.
These helpers only allocate a much smaller struct m_hdr on the stack when
needed, rather than leaving 256 byte struct mbufs on the stack in deep
call paths. Also removes a fair bit of duplicated code.
commit now, tune after deraadt@
|
|
reworked to not strip vlan tags in hardware anymore.
ok brad henning jason
|
|
ok markus jason henning brad
|
|
consume vlan frames that no vlan interface wants, so they can
still be bridged.
This way, the bridge can bridge encapsulated frames _and_ bridge
between vlan interfaces.
ok henning markus
|
|
with pascoe@
|
|
|
|
From FreeBSD/NetBSD
Tested by camield@ and Alexey E. Suslikov <cruel at texnika dot com dot ua>
ok camield@
|
|
Changes are reported to userland and to other
interfaces sitting on top of us.
OK henning@, camield@
Tested by camield@ and Alexey E. Suslikov
|
|
This prevent a variety of fun panics.
From NetBSD
|
|
being..
- Set the interface speed back to zero after ether_ifattach(). RFC 2863
says: "For a sub-layer which has no concept of bandwidth, [ifSpeed]
should be zero."
|
|
bits from tags extracted from received frames. (Some drivers may
already do this masking internally, but doing it here doesn't hurt
and insures consistency.)
- In vlan_ioctl(), don't let the user set a VLAN ID value with anything
besides the VLID bits set, otherwise we will have trouble matching
an interface in vlan_input() later.
- Set the interface speed back to zero after ether_ifattach(). RFC 2863
says: "For a sub-layer which has no concept of bandwidth, [ifSpeed]
should be zero."
- Do not call if_down() on a parent interface if it's already down.
From FreeBSD
Tested by camield@ and Alexey E. Suslikov <cruel at texnika dot com dot ua>
ok camield@
|
|
|
|
ok mcbride@
|
|
|
|
se hash instead of linked list to speed up tag to vlan interface mapping
ok markus@ and myself
|
|
|
|
ok millert@
|
|
|
|
argument. old cred only calls user suser_ucred. this will allow future
work to more flexibly implement the idea of a root process. looks like
something i saw in freebsd, but a little different.
use of suser_ucred vs suser in file system code should be looked at again,
for the moment semantics remain unchanged.
review and input from art@ testing and further review miod@
|
|
|
|
|
|
|
|
|
|
dhartmei ok
|
|
- mask of vlan tag to ensure upper bit isn't present from hardware
- avoid mbuf leak on error
- make sure sizeof(ether_header) bytes are present in the firest mbuf
before passing it up to ether_input()
|
|
Fix multicast bug; internal multicast members' list was not initialized
correctly. Also, begin to make vlan less ether specific - TR and FDDI
could also be supported.
|
|
ok henning@, deraadt@
|
|
this works better than what we have now, although i have not been
able to extensively test it. several folks thought it should be added
|
|
|
|
header with the 802.1Q header. The reason for this is if_vlan is called
by the bridge (via if_start). It cannot modify the mbuf because it might
be shared copy.
|
|
|
|
ok niklas@
|
|
ok jason@, chris@, deraadt@
|
|
|
|
LINK0 disappears; we now set IFCAP_VLAN_HWTAGGING at ifnet->if_capabilities
in the Ethernet driver for cards/drivers which support hardware tagging.
MTU ambiguity disppears; we now set IFCAP_VLAN_MTU in the Ethernet driver
when we know the chip will not truncate/discard vlan-sized frames.
Only allow the MTU to be changed within the scope of the parent interface's
MTU. (Here we also take into account IFCAP_VLAN_MTU)
Propagate hardware-assisted IP/TCP/UDP checksumming flags to the vlan interface
if the card supports hardware tagging (from NetBSD)
|
|
the new model removes direct references to the fields in ifp->if_snd,
and defines the following macros to manipulate ifp->if_snd.
IFQ_ENQUEUE(ifq, m, pktattr, err)
IFQ_DEQUEUE(ifq, m)
IFQ_POLL(ifq, m)
IFQ_PURGE(ifq)
IFQ_IS_EMPTY(ifq)
the new model also enforces some rules regarding how to use these macros.
details are descrined in
http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt
|
|
on how macros should be treated. Code by fgsch@, ok by me and itojun@
|
|
|
|
- call ether_input_mbuf() instead of ether_input()
- most work done by fgsch
|
|
and the tag doesn't match a child interface, reinsert the tag and call
ether_input() so that bridges can still function.
|
|
|
|
|
|
|
|
|