History log of /src/sbin/ifconfig/vlan.c |
Revision | | Date | Author | Comments |
1.16 |
| 21-Jun-2021 |
christos | fix proplib deprecation
|
1.15 |
| 16-Aug-2019 |
msaitoh | Whitespace fix.
|
1.14 |
| 15-Sep-2014 |
ozaki-r | branches: 1.14.16; Add -vlanif to the help message of ifconfig
PR 49114
|
1.13 |
| 28-Jul-2009 |
dyoung | branches: 1.13.8; 1.13.24; Don't require a "vlan" argument with "-vlanif". "ifconfig vlan0 -vlanif" works as one would expect, now.
|
1.12 |
| 15-Jul-2008 |
dyoung | branches: 1.12.2; 1.12.6; 1.12.8; Cosmetic: s/xenv/oenv/
|
1.11 |
| 15-Jul-2008 |
dyoung | Only describe flags -L and -m in the usage if they are available. That helps me get rid of some conditional compilation (INET6) in ifconfig.
Let each protocol/feature-module print its own usage, so that the ifconfig usage reflects the modules that are actually compiled-in.
Write usage information for carp(4) options.
|
1.10 |
| 02-Jul-2008 |
dyoung | Let us add/remove features from ifconfig, such as support for various address families (inet, inet6, iso, atalk) and protocols (802.11, 802.3ad, CARP), simply by trimming the list of sources in the Makefile. This helps one customize ifconfig for an embedded device or for install media, and it eliminates a lot of grotty #ifdef'age. Now, the ifconfig syntax and semantics are finalized at run-time using the constructor routines in each address-family/protocol module.
(In principle, ifconfig could load virtually all of its syntax from shared objects.)
Extract a lot of common code into subroutines, in order to shrink the ifconfig binary a bit. Make all of the address families share code for address addition/replacement/removal, and delete "legacy" code for manipulating addresses. That may have broken atalk and iso, despite my best efforts.
Extract an include file, Makefile.inc, containing the make-fu that both ifconfig and x_ifconfig share.
Sprinkle static. Change some int's to bool's. Constify.
Add RCS Ids to carp.c and env.c. Move media code to a new file, media.c. Delete several unneeded header files.
Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.
Bug fix: do not require both a interface address and a destination address for point-to-point interfaces, but accept a interface address by itself.
|
1.9 |
| 16-May-2008 |
dyoung | The key 'vlantag' activates the 'vlanif' keyword, not the key 'vlan'. Should fix this bug reported by Pierre Pronchery,
# ifconfig vlan0 vlan 1 vlanif hme0 ifconfig: SIOCAIFADDR: Address family not supported by protocol family
|
1.8 |
| 07-May-2008 |
dyoung | Factor out common code, creating direct_ioctl() and indirect_ioctl() for the two most prevalent styles of ioctl(2) calls in ifconfig(8).
|
1.7 |
| 07-May-2008 |
dyoung | Move vlan(4) syntax from ifconfig.c into vlan.c.
|
1.6 |
| 06-May-2008 |
dyoung | branches: 1.6.2; Use prop_dictionary_util(3).
|
1.5 |
| 06-May-2008 |
dyoung | Use prop_dictionary_util(3) some more.
When we read interface flags and capabilities from the kernel, take care not to record them in our current environment (env), but record them in the output environment (oenv), instead. This helps us get interface capabilities and flags right.
|
1.4 |
| 06-May-2008 |
dyoung | Overhaul ifconfig. Use fewer global variables. Take a leap toward improved modularity and extensibility.
In the new architecture, a directed graph of argument-matching objects (match objects) expresses the set of feasible ifconfig statements. Match objects are labelled by subroutines that provide the statement semantics.
Many IPv4, IPv6, 802.11, tunnel, and media configurations have been tested.
AppleTalk, ISO, carp(4), agr(4), and vlan(4) configuration need testing.
|
1.3 |
| 19-Mar-2005 |
thorpej | branches: 1.3.20; 1.3.22; name -> ifname (avoid shadow decl with global name[]).
|
1.2 |
| 19-Mar-2005 |
thorpej | Move extern decls to extern.h
|
1.1 |
| 19-Mar-2005 |
thorpej | Split VLAN configuration bits out into a separate file.
|
1.3.22.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.3.20.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.3.20.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.6.2.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.6.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.12.8.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.12.6.1 |
| 14-Aug-2009 |
snj | Pull up following revision(s) (requested by dyoung in ticket #879): sbin/ifconfig/vlan.c: revision 1.13 Don't require a "vlan" argument with "-vlanif". "ifconfig vlan0 -vlanif" works as one would expect, now.
|
1.12.2.1 |
| 14-Aug-2009 |
snj | Pull up following revision(s) (requested by dyoung in ticket #879): sbin/ifconfig/vlan.c: revision 1.13 Don't require a "vlan" argument with "-vlanif". "ifconfig vlan0 -vlanif" works as one would expect, now.
|
1.13.24.1 |
| 22-Sep-2014 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #108): sbin/ifconfig/vlan.c: revision 1.14 sbin/ifconfig/ifconfig.8: revision 1.108 sys/net/if_vlan.c: revision 1.71-1.74
Document -vlanif in ifconfig.8 and in usage measseg (PR 49114). Leave promiscuous mode when detaching a parent (PR 49196) and delete link local addresses (49197). Restore vlan_ioctl overwritten by ether_ifdetach in vlan_unconfig (PR 49112). Call if_input of vlan interface itself, not parent one. This allows bridging vlan interfaces again.
|
1.13.8.1 |
| 03-Nov-2014 |
msaitoh | Pull up following revision(s) (requested by ozaki-r in ticket #1156): sbin/ifconfig/vlan.c: revision 1.14 sbin/ifconfig/ifconfig.8: revision 1.108 sys/net/if_vlan.c: revision 1.71 sys/net/if_vlan.c: revision 1.73 sys/net/if_vlan.c: revision 1.74 - PR#49114: Write about -vlanif in ifconfig.8. Add -vlanif to the help message of ifconfig. - PR#49196: Leave promiscuous mode when detaching a parent (ifconfig -vlanif) We have to call ifpromisc(ifp, 0) for both a VLAN interface and its parent when they are in promiscuous mode. - PR#49197: Delete link local addresses of a vlan interface when detaching its parent. - PR#49112: Restore vlan_ioctl overwritten by ether_ifdetach in vlan_unconfig
|
1.14.16.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|