History log of /src/sbin/ifconfig/af_inet6.c |
Revision | | Date | Author | Comments |
1.39 |
| 16-Aug-2019 |
msaitoh | Whitespace fix.
|
1.38 |
| 01-Oct-2016 |
roy | branches: 1.38.14; Modernise the output for the address to address/prefix instead of differring outputs for INET and INET6. The hex string of the INET netmask was particulary hard to read.
|
1.37 |
| 30-Sep-2016 |
roy | ifaddrs has more data than just the address. Use it instead of making pointless ioctl calls.
|
1.36 |
| 13-Sep-2016 |
christos | print address flag bits using snprintb
|
1.35 |
| 29-Feb-2016 |
riastradh | branches: 1.35.2; Consistently use estrlcpy for ifr.ifr_name here, not strncpy.
|
1.34 |
| 07-Jan-2016 |
roy | -W seconds will wait for the detached flag to clear on addresses on interfaces marked up to allow time for the carrier to appear on the interface.
This does not extend the -w option duration.
|
1.33 |
| 12-May-2015 |
roy | ioctl -> prog_ioctl as pointed out by pooka@
|
1.32 |
| 22-Apr-2015 |
roy | Move the INET6 specific code for wait_dad_exec() into af_inet6 by using a new afswtch hook af_addr_tentative.
|
1.31 |
| 20-Jan-2015 |
roy | Display the IPv6 address flags autoconf and temporary
|
1.30 |
| 20-Oct-2014 |
roy | Remove the ability for userland to toggle IN6_IFF_TENTATIVE. Preserve IN6_IFF_TENTATIVE when updating address flags.
|
1.29 |
| 19-Oct-2013 |
christos | branches: 1.29.4; use symbolic flags
|
1.28 |
| 19-Oct-2013 |
christos | use the new scopeid functions
|
1.27 |
| 13-Dec-2010 |
pooka | branches: 1.27.6; 1.27.12; Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.
|
1.26 |
| 22-Jan-2010 |
dyoung | Compare a pointer with NULL instead of testing its "truth."
|
1.25 |
| 11-Sep-2009 |
dyoung | Make ifconfig(8) set and display preference numbers for IPv6 addresses. Make the kernel support SIOC[SG]IFADDRPREF for IPv6 interface addresses.
In in6ifa_ifpforlinklocal(), consult preference numbers before making an otherwise arbitrary choice of in6_ifaddr. Otherwise, preference numbers are *not* consulted by the kernel, but that will be rather easy for somebody with a little bit of free time to fix.
Please note that setting the preference number for a link-local IPv6 address does not work right, yet, but that ought to be fixed soon.
In support of the changes above,
1 Add a method to struct domain for "externalizing" a sockaddr, and provide an implementation for IPv6. Expect more work in this area: it may be more proper to say that the IPv6 implementation "internalizes" a sockaddr. Add sockaddr_externalize().
2 Add a subroutine, sofamily(), that returns a struct socket's address family or AF_UNSPEC.
3 Make a lot of IPv4-specific code generic, and move it from sys/netinet/ to sys/net/ for re-use by IPv6 parts of the kernel and ifconfig(8).
|
1.24 |
| 07-Aug-2009 |
dyoung | Add option -N. -N is just the opposite of option -n in netstat(8) or route(8): it tells ifconfig(8) to try to resolve numbers to hosts and service names.
This default ifconfig behavior stays the same as it always was.
|
1.23 |
| 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.22 |
| 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.21 |
| 12-May-2008 |
dyoung | Retire in6_addreq and in6_ridreq, which we do not use in the commit_address() regime.
|
1.20 |
| 12-May-2008 |
dyoung | Initialize IPv6 addresses and ifreqs with more rigor. Fixes this bug reported by Matthias Scheler,
# ifconfig sip0 inet6 fdb4:542d:dc11:ec20::1 ifconfig: SIOCAIFADDR_IN6: Invalid argument # ifconfig sip0 inet6 fdb4:542d:dc11:ec20::1 prefixlen 64
|
1.19 |
| 11-May-2008 |
dyoung | Get rid of sec2str() altogether.
|
1.18 |
| 11-May-2008 |
dyoung | In in6_alias(), instead of repeating the memset()/estrlcpy()/sockaddr_in6 assignment-dance, copy creq to ifr6 before each ioctl().
|
1.17 |
| 11-May-2008 |
dyoung | Delete unused array sin6tab[]. Delete unnecessary casts.
|
1.16 |
| 11-May-2008 |
dyoung | Delete dead code in sec2str().
|
1.15 |
| 11-May-2008 |
dyoung | Retire some code that in6_commit_address() replaces.
|
1.14 |
| 11-May-2008 |
dyoung | Let the address family modules zero initialize their own ifreqs, instead of zeroing them in commit_address().
Switch to in6_commit_address() from in6_getprefix() and in6_getaddr().
Temporarily add some debugging code to setia6eui64_impl().
|
1.13 |
| 08-May-2008 |
dyoung | Move IPv4/IPv6-specific code from commit_address() to in_commit_address() and in6_commit_address(). Fixes the USE_INET6=no build.
|
1.12 |
| 07-May-2008 |
dyoung | Move IPv6 syntax to af_inet6.c from ifconfig.c. Move IFKW() macro from ifconfig.c to parse.h for reuse.
|
1.11 |
| 07-May-2008 |
dyoung | Fix a bug that I introduced in rev 1.88, where the default IPv6 prefix length changed from 64 to 128. While I am here, allow an address to be given with prefix length /0, but interpret it as /128.
|
1.10 |
| 06-May-2008 |
dyoung | branches: 1.10.2; Use prop_dictionary_util(3).
|
1.9 |
| 06-May-2008 |
dyoung | Rename in_addr_commit() to commit_address(), and refactor slightly to support IPv6 as well as IPv4 (a work in progress).
Make the second argument of af_status() a bool instead of an int.
Exit early with an error if the operator specifies an unsupported address family on the command line. The change should help rc scripts to detect that IPv6 support is missing from the kernel, with 'ifconfig lo0 inet6'.
Start using prop_dictionary_util(3).
|
1.8 |
| 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.7 |
| 24-Apr-2008 |
dyoung | Don't cast memset(3) to void. Remove a needless cast to struct in6_addr *.
|
1.6 |
| 15-Apr-2008 |
dyoung | branches: 1.6.2; Use static initializers to setup ISO and IPv6 addresses, instead of calling protocol family-specific routines from main().
|
1.5 |
| 26-Aug-2006 |
christos | branches: 1.5.16; 1.5.18; Programs that use efun.
|
1.4 |
| 16-Jun-2006 |
elad | fix incorrect usage of strncpy() to (an internal implementation of) estrlcpy().
okay christos
|
1.3 |
| 14-Jun-2006 |
tron | Adapt ifconfig(8) to new return value from socket(2). This stops ifconfig(8) from printing errors like "ifconfig: socket: Address family not supported by protocol family" when examining the status of a network interface.
|
1.2 |
| 20-Mar-2005 |
thorpej | Remove an #ifdef that is no longer necessary.
|
1.1 |
| 20-Mar-2005 |
thorpej | Split IPv6 support out into its own file.
|
1.5.18.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.5.18.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.5.16.1 |
| 22-Feb-2008 |
keiichi | imported Mobile IPv6 code developed by the SHISA project (http://www.mobileip.jp/).
|
1.6.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.10.2.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.10.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.27.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.27.6.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.29.4.2 |
| 23-Jan-2015 |
martin | Pull up following revision(s) (requested by pettai in ticket #442): sbin/ifconfig/af_inet6.c: revision 1.31 Display the IPv6 address flags autoconf and temporary
|
1.29.4.1 |
| 27-Oct-2014 |
martin | Pull up following revision(s) (requested by roy in ticket #160): sbin/ifconfig/af_inet6.c: revision 1.30 sbin/ifconfig/ifconfig.8: revision 1.109 sys/netinet6/in6.c: revision 1.177 Remove the ability for userland to toggle IN6_IFF_TENTATIVE. Preserve IN6_IFF_TENTATIVE when updating address flags.
|
1.35.2.1 |
| 04-Nov-2016 |
pgoyette | Sync with HEAD
|
1.38.14.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|