freebsd-skq/sbin/ifconfig
Hiroki Sato dbe5926046 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
..
af_atalk.c
af_inet6.c
af_inet.c The structs ifaliasreq and in_aliasreq have exactly the same layout and 2009-04-15 20:53:34 +00:00
af_ipx.c
af_link.c
ifbridge.c
ifcarp.c
ifclone.c
ifconfig.8
ifconfig.c ifconfig(8) no longer needs to know how to print the IFF_NEEDSGIANT flag, 2009-04-18 20:10:39 +00:00
ifconfig.h
ifgif.c Fix and add a workaround on an issue of EtherIP packet with reversed 2009-06-07 23:00:40 +00:00
ifgre.c
ifgroup.c
ifieee80211.c track rename of CSA ie 2009-06-04 18:22:21 +00:00
iflagg.c Do no spam the ifconfig output for the aggregated interface with 'laggdev laggX'. 2009-04-30 14:31:52 +00:00
ifmac.c
ifmedia.c
ifpfsync.c
ifvlan.c
Makefile Fix and add a workaround on an issue of EtherIP packet with reversed 2009-06-07 23:00:40 +00:00
regdomain.c
regdomain.h