Commit Graph

32 Commits

Author SHA1 Message Date
hrs
099cf5ebd0 - Remove GIF_{SEND,ACCEPT}_REVETHIP.
- Simplify EADDRNOTAVAIL and EAFNOSUPPORT conditions.

MFC after:	3 days
2015-09-10 05:59:39 +00:00
ae
88b7be7ff6 Overhaul if_gif(4):
o convert to if_transmit;
 o use rmlock to protect access to gif_softc;
 o use sx lock to protect from concurrent ioctls;
 o remove a lot of unneeded and duplicated code;
 o remove cached route support (it won't work with concurrent io);
 o style fixes.

Reviewed by:	melifaro
Obtained from:	Yandex LLC
MFC after:	1 month
Sponsored by:	Yandex LLC
2014-10-14 13:31:47 +00:00
gjb
7aff360292 Provide a more user friendly URL to the IETF site in gif(4).
Pointed out by:		dougb
MFC after:		3 days
Approved by:		re (hrs)
2011-08-02 01:48:45 +00:00
gjb
2f371a18c9 Fix various broken links in manual pages.
Submitted by:	Michiel Overtoom (motoom % xs4all nl)
PR:		159130 159131 159132 159133 159134
		159135 159136 159137 158138 159144
Approved by:	re (kib)
MFC after:	3 days
2011-07-23 22:55:32 +00:00
ru
fdf6718f33 Use the newly brought %U macro. 2010-01-15 16:01:22 +00:00
hrs
9bf362d0cc Fix and add a workaround on an issue of EtherIP packet with reversed
version field sent via gif(4)+if_bridge(4).  The EtherIP
implementation found on FreeBSD 6.1, 6.2, 6.3, 7.0, 7.1, and 7.2 had
an interoperability issue because it sent the incorrect EtherIP
packets and discarded the correct ones.

This change introduces the following two flags to gif(4):

 accept_rev_ethip_ver: accepts both correct EtherIP packets and ones
    with reversed version field, if enabled.  If disabled, the gif
    accepts the correct packets only.  This flag is enabled by
    default.

 send_rev_ethip_ver: sends EtherIP packets with reversed version field
    intentionally, if enabled.  If disabled, the gif sends the correct
    packets only.  This flag is disabled by default.

These flags are stored in struct gif_softc and can be set by
ifconfig(8) on per-interface basis.

Note that this is an incompatible change of EtherIP with the older
FreeBSD releases.  If you need to interoperate older FreeBSD boxes and
new versions after this commit, setting "send_rev_ethip_ver" is
needed.

Reviewed by:	thompsa and rwatson
Spotted by:	Shunsuke SHINOMIYA
PR:		kern/125003
MFC after:	2 weeks
2009-06-07 23:00:40 +00:00
trhodes
4911c04aeb Do not reference gifconfig, it is gone.
Sponsored by:	Chaffee::Interactive
2005-07-26 18:14:22 +00:00
grog
afbb0263ea Clarify that gif doesn't do GRE tunnels.
MFC after:	2 weeks
2005-06-08 01:53:25 +00:00
glebius
83e7e80417 Document route caching, how it can be enabled, and its consequences.
Wording by:	cperciva
2004-12-06 19:31:35 +00:00
blackend
6b1a765834 Remove a duplicated word.
Submitted by:	Pawel Worach <pawel.worach@telia.com>
2004-09-24 20:09:44 +00:00
ru
0dea541567 mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
ume
f0d455bbd6 gifconfig(8) was depricated.
Reported by:	rwatson
2003-01-04 05:32:48 +00:00
ru
2bd96d5e9b mdoc(7) police: pseudo-devices are gone from -CURRENT. 2002-08-13 13:50:36 +00:00
trhodes
3a2f2e6f8f Fix grammar 'the administrator'
PR:		39093
Submitted by:	Mike Makonnen <makonnen@packbell.net>
2002-07-15 16:23:56 +00:00
ru
92637a6f78 mdoc(7) police: nits. 2002-03-18 12:34:41 +00:00
brooks
3cea5d4273 Make gif(4) nesting level and parallel tunnel support tunable at runtime
via sysctl's.  The old #defines, MAX_GIF_NEST and XBONEHACK are
currently supported for backwards compatability, but will probably be
removed at some point in the future.
2002-02-26 01:56:56 +00:00
ru
7a2b16307b mdoc(7) police: tidy up previous delta. 2002-01-09 15:32:25 +00:00
brooks
d7cd33da25 Better document gif interface cloning intrastructure.
MFC After:	2 days
2001-12-14 22:55:10 +00:00
ru
83769df8dd mdoc(7) police: removed hard sentence break. 2001-10-01 13:06:40 +00:00
brooks
92e6f0ced6 Mention that gif interfaces are created at runtime and refer the
administrator to the ifconfig create command.

MFC after:	1 week
2001-09-28 00:22:44 +00:00
brooks
280a5938e0 gif(4) is no longer a count device, reflect this change. 2001-09-06 00:27:48 +00:00
ru
7221cd94bd mdoc(7) police: fixed the "new sentence" bogons. 2001-08-10 15:03:10 +00:00
ru
4345758876 mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
ume
832f8d2249 Sync with recent KAME.
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.

TODO:
  - The definitions of SADB_* in sys/net/pfkeyv2.h are still different
    from RFC2407/IANA assignment because of binary compatibility
    issue.  It should be fixed under 5-CURRENT.
  - ip6po_m member of struct ip6_pktopts is no longer used.  But, it
    is still there because of binary compatibility issue.  It should
    be removed under 5-CURRENT.

Reviewed by:	itojun
Obtained from:	KAME
MFC after:	3 weeks
2001-06-11 12:39:29 +00:00
schweikh
c91401db41 pseudo-device -> device in kernel config lines. Removed whitespace at EOL.
Reviewed by:	joerg, dd
2001-05-01 09:15:30 +00:00
ru
2d1b95a96f mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
ru
0100fd6e93 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 18:41:33 +00:00
itojun
1497eb98fb sync with kame. more security warnings 2000-07-05 08:15:05 +00:00
shin
099b4f9e01 Backout previous changes. The period at the end is correct,
when it is the last of the sentences.

Specified by: mpp, sheldonh
2000-03-15 03:33:30 +00:00
shin
1046c85a4d Remove period at the end of Xr macro sentences.
(merge from KAME repository)

Obtained from: KAME project
2000-03-12 16:10:13 +00:00
asmodai
9a9dfc5208 Change .Os macro to an empty one to denote that the KAME files are
not FreeBSD specific.

Made happy:	sheldonh
2000-01-17 15:24:41 +00:00
shin
9b5932fc47 libipsec and IPsec related apps. (and some KAME related man pages)
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
2000-01-06 12:40:54 +00:00