summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifvlan.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksumbz2011-12-171-0/+2
| | | | | | | offloading on vlans and document the new option. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Add TSO support on VLAN in fconfig(8).yongari2010-02-201-0/+2
| | | | Reviewed by: thompsa
* - Use size_t instead of int when appropriate;delphij2009-06-231-1/+1
| | | | | | - Use C99 sparse initialization. With these changes ifconfig(8) is WARNS=2 clean.
* Replace clone_setcallback() with a new function clone_setdefcallback()rpaulo2009-02-271-4/+1
| | | | | | | | that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version)
* back out unintended changesam2008-12-151-30/+13
|
* o distinguish between adhoc and ahdemo modessam2008-12-151-13/+30
| | | | | | | o do not require 1/2 and 1/4 rate channels be present in the calibration list when doing a gsm regulatory change; the existing 900MHz cards are not self-identifying so there is no way (using the calibration channel list) to check
* add duplicate cmd entries for vlan and vlandev that are marked !clonesam2008-10-021-0/+3
| | | | | | so they can be used when not doing a create operation Reviewed by: ed
* Add support in ifconfig to control the vlan hardware filter feature.jfv2008-08-281-0/+2
| | | | | Reviewed by: EvilSam and moi MFC after:1 week
* Fix handling of create operation together with setting other parameters:sam2008-03-311-2/+2
| | | | | | | | | | | o mark cmds/parameters to indicate they are potential arguments to a clone operation (e.g. vlantag) o when handling a create/clone operation do the callback on seeing the first non-clone cmd line argument so the new device is created and can be used; and re-setup operating state to reflect the newly created device Reviewed by: Eugene Grosbein MFC after: 2 weeks
* o replace special handling of clone operations by a clone callbacksam2006-07-091-54/+78
| | | | | | | mechanism o change vlan cloning to use callback and pass all vlan parameters on create using the new SIOCREATE2 ioctl o update vlan set logic to match existing practice
* Revert to setting vlan and vlandev parametes synchronously, as soonyar2006-03-091-0/+9
| | | | | | | | | | | | | | | as both have been read from the command line. Still use the callback, but this time only to verify that both vlan and vlandev have been found on the command line. This should allow for control over the relative order of processing parameters, which is needed to satisfy some caveats of the if_vlan driver. E.g., MTU cannot be changed on a vlan interface until it's attached to its parent. PR: bin/94028 Reviewed by: ru MFC after: 3 days
* Eliminate some unneeded code bits.yar2005-10-061-10/+7
|
* Use a callback to set up a vlan interface so that "vlan"yar2005-10-041-37/+31
| | | | | | | | | and "vlandev" commands can be specified in any order. This makes the code more compact and clear as well. Improve error check on vlan argument. MFC after: 2 weeks
* Deprecate the useless argument to -vlandev.yar2005-09-291-1/+5
| | | | | | Submitted by: Fredrik Lindberg <fli+freebsd-current at shapeshifter.se> (implementation) Reviewed by: brooks MFC after: 5 days
* Fix special status reporting. Prior to the reorg there wassam2004-12-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | special-purpose code to display status for an interface for state that was not address-oriented. This status reporting was merged in to the address-oriented status reporting but did not work for link address reporting (as discovered with fwip interfaces). Correct this mis-merge and eliminate the bogus kludge that was used for link-level address reporting. o add an af_other_status method for an address family for reporting status of things like media, vlan, etc. o call the af_other_status methods after reporting address status for an interface o special-case link address status; when reporting all status for an interface invoke it specially prior to reporting af_other_status methods (since it requires the sockaddr_dl that is passed in to status separately from the rtmsg address state) o correct the calling convention for link address status; don't cast types, construct the proper parameter This fixes ifconfig on fwip interfaces.
* Overhaul to cleanup some of the tangled logic that's grown over the years.sam2004-12-081-5/+32
| | | | | | | | | | | | | | | | | | | | o break per-address family support out into separate files o modularize per-address family and functional operations using a registration mechanism; this permits configuration according to which files you include (but beware that order of the files is important to insure backwards compatibility) o many cleanups to eliminate incestuous behaviour, global variables, and poor coding practices (still much more to fix) The original motivation of this work was to support dynamic addition of functionality based on the interface so we can eliminate the various little control programs and so that vendors can distribute ifconfig plugins that support their in-kernel code. That work is still to be completed. o Update 802.11 support for all the new net80211 functionality; some of these operations (e.g. list *) may be better suited in a different program
* De-__P, use ansi function definitionsimp2002-04-181-15/+8
|
* o Reduce userland inclusion of kernel headers -- remove unneeded includerwatson2001-09-241-1/+0
| | | | | | of <sys/mbuf.h>. Reviewed by: jlemon
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-2/+0
|
* $Id$ -> $FreeBSD$peter1999-08-281-2/+2
|
* Grrr... botched remote commit. Let's try this again: vlan updates,wpaul1999-03-151-0/+156
take two.
OpenPOWER on IntegriCloud