summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* MFC r282965:ae2015-05-312-2/+12
| | | | | | | | | | Add an ability accept encapsulated packets from different sources by one 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 Sponsored by: Yandex LLC
* MFC r281236 -- extended media types in if_media.h.erj2015-05-291-6/+26
| | | | Approved by: jfv (mentor)
* MFC r282747:ngie2015-05-161-3/+1
| | | | | | | | Use MIN from sys/param.h instead of handrolling the macro Replace sys/types.h with sys/param.h per-style(9) Sponsored by: EMC / Isilon Storage Division
* MFC r261708, r261847, r268525, r274316, r274347, r275593,hiren2015-05-083-2/+21
| | | | | | | | | | | | | | | r276844, r276847, r279531, r279559, r279564, r279676 A bunch of IPv6 fixes by melifaro, hrs and ae Major changes: Simplify nd6_output_lle() Add refcounting to DAD and fix races and other errors Implement Enhanced DAD algorithm for IPv6 Suggested by: ae Tested by: Jason Wolfe <j at nitrology.com> Sponsored by: Limelight Networks
* MFC: r266774:allanjude2015-04-161-11/+34
| | | | | | | | | | improve ifconfig(8) man page by describing special behaviour of -l ether MFC: r267141: Style cleanups on ifconfig.8 Approved by: eadler (mentor, implicit) Sponsored by: ScaleEngine Inc.
* MFC 279951:jhb2015-04-091-5/+4
| | | | | | | | Simplify string mangling in ifmaybeload(). - Use strlcpy() instead of strcpy(). - Use strlcat() instead of a strlcpy() with a magic number subtracted from the length. - Replace strncmp(..., strlen(foo) + 1) with strcmp(...).
* MFC r271307:ae2014-10-092-1/+18
| | | | | | | | Add the ability to set `prefer_source' flag to an IPv6 address. It affects the IPv6 source address selection algorithm (RFC 6724) and allows override the last rule ("longest matching prefix") for choosing among equivalent addresses. The address with `prefer_source' will be preferred source address.
* MFC r269888:gjb2014-08-151-1/+1
| | | | | | Fix a typo in a comment: s/interprete/interpret/ Sponsored by: The FreeBSD Foundation
* MFC r268049:ume2014-07-071-9/+13
| | | | | | | | Fix ifconfig to show pltime and vltime with -L option, again after usage change from time_second to time_uptime. PR: 188520 Submitted by: Guy Yur <guyyur__at__gmail.com>
* Bulk sync of pf changes from head, in attempt to fixup broken build Iglebius2014-03-121-0/+2
| | | | | | | | | made in r263029. Merge r257186,257215,257349,259736,261797. These changesets split pfvar.h into several smaller headers and make userland utilities to include only some of them.
* MFH (r256768): don't report an error for no-op add / removedes2014-02-271-2/+2
|
* Merge r256824 from head:glebius2013-10-291-2/+2
| | | | | | | | | | | | | | | | Provide a working example line for an interface with 1 address running with CARP. Currently, we've got a problem that interface isn't IFF_UP at the time we assign it a redundant address, and the latter gets stuck in INIT state. Additional SIOCSIFFLAGS from ifconfig(8) kicks it to a working state. A proper fix is kernel side and appeared to be non-trivial, not to be checked in before 10.0-RELEASE. Submitted by: Ole Myhre <ole.myhre dataoppdrag.no> Approved by: re (kib)
* Fix a typo (s/error/errno/).hrs2013-07-031-1/+1
|
* Do not display a warning message in a jail without AF_INET6 support.hrs2013-06-301-1/+1
| | | | MFC after: 3 days
* mdoc sweepjoel2013-05-131-3/+9
|
* Don't free memory that is going to be used as error string.glebius2013-04-251-3/+1
| | | | | PR: bin/178121 Submitted by: Garrett Cooper <yaneurabeya gmail.com>
* Mark a mesh path to a mesh gate with a 'G'.monthadar2013-02-071-1/+3
| | | | Approved by: adrian (mentor)
* Add no_prefer_iface option.ume2013-01-093-2/+11
| | | | | | | | | | It stops treating the address on the interface as special by source address selection rule even when the interface is outgoing interface. This is desired in some situation. Requested by: hrs Reviewed by: IHANet folks including hrs MFC after: 1 week
* Fix socket calls on error post-r243965.kevlo2012-12-212-2/+2
| | | | Submitted by: Garrett Cooper
* - Fix LOR in sa6_recoverscope() in rt_msg2()[1].hrs2012-12-041-2/+3
| | | | | | | - Check V_deembed_scopeid before checking if sa_family == AF_INET6. - Fix scope id handing in route(8)[2] and ifconfig(8). Reported by: rpaulo[1], Mateusz Guzik[1], peter[2]
* Fill sin6_scope_id in sockaddr_in6 before passing it from the kernel tohrs2012-11-171-41/+2
| | | | | | | | | | | | userland via routing socket or sysctl. This eliminates the following KAME-specific sin6_scope_id handling routine from each userland utility: sin6.sin6_scope_id = ntohs(*(u_int16_t *)&sin6.sin6_addr.s6_addr[2]); This behavior can be controlled by net.inet6.ip6.deembed_scopeid. This is set to 1 by default (sin6_scope_id will be filled in the kernel). Reviewed by: bz
* Actually change "silent" to "silence" this time (reviewed by adri@).wblock2012-11-071-1/+1
| | | | MFC after: 1 week
* Remove fifteen-year-old notes on media selection (suggested by simon@).wblock2012-11-071-20/+17
| | | | | | | Add commas after "e.g." and "i.e.". Change "silent" to "silence" in wireless create section (reviewed by adri@). MFC after: 1 week
* Add devd.conf(5) and devd(8) to SEE ALSO xrefs. Give users a pointer towblock2012-11-071-1/+3
| | | | | | | | | seemingly mysterious actions that are not done by ifconfig itself, but by devd triggering on events caused by ifconfig. PR: docs/173405 Submitted by: Mateusz Kwiatkowski <mateusz.kwiatkowski@atlashost.eu> MFC after: 1 week
* Remove "prefer_source" address selection option. FreeBSD has had anhrs2012-07-092-9/+1
| | | | | implementation of RFC 3484 for this purpose for a long time and "prefer_source" was never implemented actually. ND6_IFF_PREFER_SOURCE macro is left intact.
* - Updated TOE support in the kernel.np2012-06-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Stateful TCP offload drivers for Terminator 3 and 4 (T3 and T4) ASICs. These are available as t3_tom and t4_tom modules that augment cxgb(4) and cxgbe(4) respectively. The cxgb/cxgbe drivers continue to work as usual with or without these extra features. - iWARP driver for Terminator 3 ASIC (kernel verbs). T4 iWARP in the works and will follow soon. Build-tested with make universe. 30s overview ============ What interfaces support TCP offload? Look for TOE4 and/or TOE6 in the capabilities of an interface: # ifconfig -m | grep TOE Enable/disable TCP offload on an interface (just like any other ifnet capability): # ifconfig cxgbe0 toe # ifconfig cxgbe0 -toe Which connections are offloaded? Look for toe4 and/or toe6 in the output of netstat and sockstat: # netstat -np tcp | grep toe # sockstat -46c | grep toe Reviewed by: bz, gnn Sponsored by: Chelsio communications. MFC after: ~3 months (after 9.1, and after ensuring MFC is feasible)
* Remove repeated words.joel2012-06-051-1/+1
|
* if_lagg: allow to invoke SIOCSLAGGPORT multiple times in a rowrea2012-05-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, 'ifconfig laggX down' does not remove members from this lagg(4) interface. So, 'service netif stop laggX' followed by 'service netif start laggX' will choke, because "stop" will leave interfaces attached to the laggX and ifconfig from the "start" will refuse to add already-existing interfaces. The real-world case is when I am bundling together my Ethernet and WiFi interfaces and using multiple profiles for accessing network in different places: system being booted up with one profile, but later this profile being exchanged to another one, followed by 'service netif restart' will not add WiFi interface back to the lagg: the "stop" action from 'service netif restart' will shut down my main WiFi interface, so wlan0 that exists in the lagg0 will be destroyed and purged from lagg0; the "start" action will try to re-add both interfaces, but since Ethernet one is already in lagg0, ifconfig will refuse to add the wlan0 from WiFi interface. Since adding the interface to the lagg(4) when it is already here should be an idempotent action: we're really not changing anything, so this fix doesn't change the semantics of interface addition. Approved by: thompsa Reviewed by: emaste MFC after: 1 week
* Removed the IFCAP_ prefix when printing the IPv6 checksum capabilities.bz2012-05-281-1/+1
| | | | | Submitted by: dim MFC after: 3 days
* It turns out that too many drivers are not only parsing the L2/3/4bz2012-05-282-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | headers for TSO but also for generic checksum offloading. Ideally we would only have one common function shared amongst all drivers, and perhaps when updating them for IPv6 we should introduce that. Eventually we should provide the meta information along with mbufs to avoid (re-)parsing entirely. To not break IPv6 (checksums and offload) and to be able to MFC the changes without risking to hurt 3rd party drivers, duplicate the v4 framework, as other OSes have done as well. Introduce interface capability flags for TX/RX checksum offload with IPv6, to allow independent toggling (where possible). Add CSUM_*_IPV6 flags for UDP/TCP over IPv6, and reserve further for SCTP, and IPv6 fragmentation. Define CSUM_DELAY_DATA_IPV6 as we do for legacy IP and add an alias for CSUM_DATA_VALID_IPV6. This pretty much brings IPv6 handling in line with IPv4. TSO is still handled in a different way and not via if_hwassist. Update ifconfig to allow (un)setting of the new capability flags. Update loopback to announce the new capabilities and if_hwassist flags. Individual driver updates will have to follow, as will SCTP. Reported by: gallatin, dim, .. Reviewed by: gallatin (glanced at?) MFC after: 3 days X-MFC with: r235961,235959,235958
* MFp4 bz_ipv6_fast:bz2012-05-192-1/+21
| | | | | | | | | | | | Allow tso4 and tso6 be set individually given we have the bits. This will help with drivers not working as expected during the transition time and later. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn MFC After: 1 week
* Skip nd6 line with no warning message when the system does not supporthrs2012-05-111-2/+4
| | | | | | INET6. Spotted by: flo
* Update man page date to the date of the last commit.monthadar2012-05-021-1/+1
| | | | Approved by: adrian
* * Modified ifconfig to show the IEEE80211_MESHRT_FLAGS_DISCOVER flag with a 'D';monthadar2012-05-011-0/+2
| | | | Approved by: adrian
* * Added new command to ifconfig to activate Mesh Gate Announcement calledmonthadar2012-05-012-0/+20
| | | | | | meshgate with corresponding explanation; Approved by: adrian
* Remove end of line whitespace introduced in previous commit.joel2012-04-071-1/+1
|
* Document syncdev, syncpeer and defer keywords forglebius2012-04-031-1/+19
| | | | pfsync(4) interfaces.
* Make it possible to switch pfsync(4) deferral mechanism on/off.glebius2012-04-031-3/+25
| | | | Obtained from: OpenBSD
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-13/+13
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Also fix the parameter usage in set80211meshpeering().bschmidt2012-03-231-1/+1
| | | | | | Submitted by: Monthadar Al Jaberi MFC after: 1 week X-MFC after: r233328
* Fix an incorrect parameter usage here.adrian2012-03-221-1/+1
| | | | Submitted by: monthadar@gmail.com
* Fix typo and bump the document date which I also forgot.thompsa2012-03-071-2/+2
| | | | Spotted by: Andrey Zonov
* Add the ability to set which packet layers are used for the load balance hashthompsa2012-03-062-0/+68
| | | | calculation.
* Update bridge(4) default values.brueffer2012-02-291-3/+3
| | | | | | PR: 164564 Submitted by: "Rudy (bulk)" <crapsh@monkeybrains.net> MFC after: 2 weeks
* Correct capitalization of "Hz" in user-visible text (manpages, printf(),gavin2012-02-281-2/+2
| | | | | | etc). MFC after: 3 days
* Disable jail support in ifconfig when either building a rescuermh2012-02-142-2/+15
| | | | | | | image or MK_JAIL knob has been set to "no". Reviewed by: bz Approved by: adrian (mentor)
* Fix warning when compiling with gcc46:eadler2012-01-101-3/+0
| | | | | | | error: variable 'firstkey' set but not used Approved by: dim MFC after: 3 days
* Spelling fixes for sbin/uqs2012-01-071-1/+1
|
* Adjust the VLAN section of the ifconfig(8) man page to better reflectrwatson2012-01-041-4/+5
| | | | | | | | | | | | reality: 1. Only 12-bit VLAN Identifiers, not full 16-bit VLAN tags can be set using ifconfig vlan. 2. When we mean VLAN Identifiers, spell it that way, rather than as VLAN tag. MFC after: 3 days Sponsored by: Adara Networks, Inc.
* Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksumbz2011-12-172-3/+5
| | | | | | | offloading on vlans and document the new option. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud