aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifgif.c
Commit message (Collapse)AuthorAgeFilesLines
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-10-241-5/+0
| | | | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957 (cherry picked from commit eba230afba4932f02a1ca44efc797cf7499a5cb0)
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-07-251-1/+1
| | | | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix (cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* - Remove GIF_{SEND,ACCEPT}_REVETHIP.Hiroki Sato2015-09-101-10/+3
| | | | | | | | | - Simplify EADDRNOTAVAIL and EAFNOSUPPORT conditions. MFC after: 3 days Notes: svn path=/head/; revision=287607
* Add an ability accept encapsulated packets from different sources by oneAndrey V. Elsukov2015-05-151-1/+3
| | | | | | | | | | | | | | gif(4) interface. Add new option "ignore_source" for gif(4) interface. When it is enabled, gif's encapcheck function requires match only for packet's destination address. Differential Revision: https://reviews.freebsd.org/D2004 Obtained from: Yandex LLC MFC after: 2 weeks Sponsored by: Yandex LLC Notes: svn path=/head/; revision=282965
* Use printb() instead of rolling its own routine to displayHiroki Sato2009-09-071-20/+4
| | | | | | | | | | bits in options=<>. Pointed out by: ume MFC after: 3 days Notes: svn path=/head/; revision=196931
* Suppress an options line when no bit is on.Hajimu UMEMOTO2009-09-071-0/+2
| | | | | | | | Reviewed by: hrs MFC after: 3 days Notes: svn path=/head/; revision=196929
* - Use size_t instead of int when appropriate;Xin LI2009-06-231-2/+2
| | | | | | | | | - Use C99 sparse initialization. With these changes ifconfig(8) is WARNS=2 clean. Notes: svn path=/head/; revision=194799
* Fix and add a workaround on an issue of EtherIP packet with reversedHiroki Sato2009-06-071-0/+132
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 Notes: svn path=/head/; revision=193664