summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
AgeCommit message (Collapse)Author
2003-07-25%lu for u_long argJason Wright
2003-05-13nuke common: ifnet_addrsJason Wright
2003-05-03string fixes; tedu okTheo de Raadt
2003-05-03just as a safety measure, set m_flags to 0 for mbufs allocated on stack.Jun-ichiro itojun Hagino
dhartmei ok
2003-03-24Tree patches from c.pascoe at itee dot uq dot edu dot au:Jason Wright
- 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()
2003-02-01from Chris Pascoe <c.pascoe@itee.uq.edu.au>:Chris Cappuccio
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.
2003-01-07remove the altq classifier code which is replaced by pf and no longer used.Kenjiro Cho
ok henning@, deraadt@
2002-06-12import of netbsd's vlan multicast codeChris Cappuccio
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
2002-03-24deref of NULL in out of mbuf situation, ok jason@Niklas Hallqvist
2002-02-13Be -really- careful not to modify the payload when replacing the ethernetJason Wright
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.
2001-12-11Use queue.h macros.Jason Wright
2001-10-05Fix bug in if_vlan which could cause crashes in timeouts and 'ifconfig -a'Dale Rahn
ok niklas@
2001-10-01Make number of vlan interfaces configurable from UKC.Niklas Hallqvist
ok jason@, chris@, deraadt@
2001-09-01Inherit baudrate from parent. Now MRTG will show vlan interfaces ;)Chris Cappuccio
2001-08-03Use IFCAP_VLAN_MTU and IFCAP_VLAN_HWTAGGING capabilities:Chris Cappuccio
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)
2001-06-27introduce the ALTQ queue macros into sys/net files.Kenjiro Cho
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
2001-06-27Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, dependingAngelos D. Keromytis
on how macros should be treated. Code by fgsch@, ok by me and itojun@
2001-06-25No need to double-clear the mbuf flags and tags.Angelos D. Keromytis
2001-06-24- redefine vlan_input_tag to take mbuf * and tag onlyJason Wright
- call ether_input_mbuf() instead of ether_input() - most work done by fgsch
2001-06-23Ok, when cards with vlan hw tagging are used in bridged configurationsJason Wright
and the tag doesn't match a child interface, reinsert the tag and call ether_input() so that bridges can still function.
2001-06-23Use standard defined macros to access inner ifnet data structure members.Aaron Campbell
2001-06-22KNFTheo de Raadt
2001-05-27Initialize old mbuf chain head tags.Angelos D. Keromytis
2001-03-30increase ierrors if m_pullup fails in vlan_input(); pointed out by chris@Jason Wright
2001-03-28Rework vlan_start() to make sure it -never- munges the packet internals (eg.Jason Wright
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.
2001-03-26Fix bug I introduced... if m_pullup fails, don't try to free the result.Jason Wright
2001-03-26- move if_vlan back to a default if_type of IFT_PROPVIRTUALJason Wright
- 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)
2001-03-23check rcvif and tag for vlan_input_tag() [Same check as in vlan_input()]Jason Wright
2001-03-23m_freem not m_freeJason Wright
2001-03-23check packet length in vlan_input() and pullup if necessaryJason Wright
use m_adj instead of twiddling everything ourselves
2001-03-22remove vlan_proto variable, replace with ETHERTYPE_8021QJason Wright
define if_type for vlan interfaces (IFT_8021_VLAN) #ifdef DEBUG some debugging printf's protect against other uses of M_PROTO1
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff
2000-12-02vlan devices should not try to emit packets if the parent interface isJason Wright
not running and not up. From NetBSD: move if_opackets to that it's incremented even if the parent interface is oactive.
2000-10-18From the NetBSD port of if_vlan, prevent a panic by not allowingChris Cappuccio
SIOCSIFADDR/SIOCADDMULTI/SIOCDELMULTI until the vlan is configured, make the loop at the top of vlan_input() easier to read
2000-08-15Increase if_obytes and if_omcasts in the output routine,Chris Cappuccio
as it replaces ether_output and ether_output does this... (peter.jeremy@alcatel.com.au FreeBSD PR 20611)
2000-05-15Check to make sure vlan tag is valid (12bit) in SIOCSETVLANChris Cappuccio
2000-04-27Fix SIOCSIFMTUChris Cappuccio
2000-04-26Remove redundant superuser check in SIOCSIFMTUChris Cappuccio
(already done in if.c) and modify comments
2000-04-26if_vlan from FreeBSD and a few modificationsChris Cappuccio