Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
|
|
|
|
shared mbuf clusters)
Revert the deleted m_adj() call in vlan_input() back to inline mbuf
manipulation, all of the checks really are there by API/convention.
|
|
|
|
- change if_type to match parent at vlan_configure time
- comment typo
- implement promiscuous mode for vlan interfaces (from NetBSD)
- change if_flags inheritance mask to UP|BROADCAST|SIMPLE|MULTICAST
(upshot of all this: bridging vlan interfaces works, with some limitations...
documentation soon)
|
|
|
|
|
|
use m_adj instead of twiddling everything ourselves
|
|
define if_type for vlan interfaces (IFT_8021_VLAN)
#ifdef DEBUG some debugging printf's
protect against other uses of M_PROTO1
|
|
|
|
not running and not up.
From NetBSD: move if_opackets to that it's incremented even if the parent
interface is oactive.
|
|
SIOCSIFADDR/SIOCADDMULTI/SIOCDELMULTI until the vlan is configured, make
the loop at the top of vlan_input() easier to read
|
|
as it replaces ether_output and ether_output does this...
(peter.jeremy@alcatel.com.au FreeBSD PR 20611)
|
|
|
|
|
|
(already done in if.c) and modify comments
|
|
|