Home | History | Annotate | Download | only in ifconfig
History log of /src/sbin/ifconfig/tunnel.c
RevisionDateAuthorComments
 1.22  07-Jun-2020  thorpej Update for proplib(3) API changes.
 1.21  16-Aug-2019  msaitoh Whitespace fix.
 1.20  19-Oct-2013  christos branches: 1.20.26;
use correct function
 1.19  19-Oct-2013  christos use symbolic flags
 1.18  19-Oct-2013  christos use the new scopeid functions
 1.17  07-Aug-2009  dyoung branches: 1.17.6; 1.17.12;
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.16  15-Jul-2008  dyoung Cosmetic: s/xenv/oenv/
 1.15  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.14  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.13  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.12  07-May-2008  dyoung Move tunnel syntax into tunnel.c. Move net80211 'list' command
syntax into ieee80211.c.
 1.11  06-May-2008  dyoung branches: 1.11.2;
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.10  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.9  26-Mar-2007  dyoung branches: 1.9.12; 1.9.14;
Don't try to convert numbers to names for either endpoint of a
tunnel. In this way, ifconfig will avoid emitting something
abominable like this:

tunnel 192.168.1.1,mdns --> 192.168.1.2,kazaa
 1.8  31-Aug-2006  dyoung Add a mode to gre(4) that sends GRE tunnel packets in UDP datagrams.
Fix MOBILE encapsulation. Add many debugging printfs (mainly
concerning UDP mode). Clean up the gre(4) code a bit. Add the
capability to setup UDP tunnels to ifconfig. Update documentation.

In UDP mode, gre(4) puts a GRE header onto transmitted packets,
and hands them to a UDP socket for transmission. That is, the
encapsulation looks like this: IP+UDP+GRE+encapsulated packet.

There are two ways to set up a UDP tunnel. One way is to tell the
source and destination IP+port to gre(4), and let gre(4) create
the socket. The other way to create a UDP tunnel is for userland
to "delegate" a UDP socket to the kernel.
 1.7  26-Aug-2006  christos Programs that use efun.
 1.6  16-Jun-2006  elad fix incorrect usage of strncpy() to (an internal implementation of)
estrlcpy().

okay christos
 1.5  20-Mar-2005  thorpej Split IPv6 support out into its own file.
 1.4  19-Mar-2005  thorpej const'ify afswtch
 1.3  19-Mar-2005  thorpej Don't hare-code inet/inet6 in tunnel_status(), lookup the address family
name instead.
 1.2  19-Mar-2005  yamt make this compilable with USE_INET6=no.
 1.1  19-Mar-2005  thorpej Split tunnel support into its own file.
 1.9.14.1  18-May-2008  yamt sync with head.
 1.9.12.2  28-Sep-2008  mjf Sync with HEAD.
 1.9.12.1  02-Jun-2008  mjf Sync with HEAD.
 1.11.2.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.11.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.17.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.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.20.26.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed