#
00c9a680 |
| 06-Sep-2024 |
Mark Johnston <markj@FreeBSD.org> |
ifconfig: Add an allmulti verb
Similar to "promisc", this allows the IFF_ALLMULTI flag to be toggled from userspace if it happens to be useful to disable multicast packet filtering. One use-case is
ifconfig: Add an allmulti verb
Similar to "promisc", this allows the IFF_ALLMULTI flag to be toggled from userspace if it happens to be useful to disable multicast packet filtering. One use-case is when implementing IPv6 neighbour discovery over netmap.
Reviewed by: zlei, glebius MFC after: 2 weeks Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D46525
show more ...
|
Revision tags: release/14.1.0, release/13.3.0, release/14.0.0, release/13.2.0 |
|
#
9d269938 |
| 31-Mar-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
ipsec_offload: ifconfig support
Sponsored by: NVIDIA networking
|
#
a68e4f7a |
| 31-May-2024 |
Gordon Tetlow <gordon@FreeBSD.org> |
Migrate from printb to print_bits for locally defined bit fields.
Reviewed by: emaste Event: Kitchener-Waterloo Hackathon 202406 Differential Revision: https://reviews.freebsd.org/D45441
|
#
c3e94237 |
| 31-May-2024 |
Gordon Tetlow <gordon@FreeBSD.org> |
Move print_bits to ifconfig.c and make available to other src files.
Reviewed by: emaste Event: Kitchener-Waterloo Hackathon 202406 Differential Revision: https://reviews.freebsd.org/D45441
|
#
847ef59d |
| 14-May-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
ifconfig: Add format shortcuts.
MFC after: 1 week Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D45166
|
#
cd201c09 |
| 28-Nov-2023 |
Mike Karels <karels@FreeBSD.org> |
ifconfig: add -D option to print driver name for interface
Add -D option to add the drivername and unit number to ifconfig output for normal display, including -a. Use ifconfig_get_orig_name() from
ifconfig: add -D option to print driver name for interface
Add -D option to add the drivername and unit number to ifconfig output for normal display, including -a. Use ifconfig_get_orig_name() from libifconfig to fetch the name. Note that this is the original name for many drivers, but not for some exceptions like epair (which appends 'a' or 'b' to the unit number). epair interface pairs both display as "epair0", etc. Make -v imply -D; might as well be fully verbose.
MFC after: 1 week Reviewed by: zlei, kp Differential Revision: https://reviews.freebsd.org/D42721
show more ...
|
#
0b8224d1 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
#
51e16cb8 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl
sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
#
eba230af |
| 25-Sep-2023 |
John Baldwin <jhb@FreeBSD.org> |
Purge more stray embedded $FreeBSD$ strings
These do not use __FBSDID but instead use bare char arrays.
Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
|
#
24a81a96 |
| 25-Aug-2023 |
Gleb Smirnoff <glebius@FreeBSD.org> |
ifconfig: fix logical error in interface matching for '-l ether'
This affects only ifconfig(8) compiled WITHOUT_NETLINK_SUPPORT, which is not the default.
Reviewed by: melifaro Differential Revisi
ifconfig: fix logical error in interface matching for '-l ether'
This affects only ifconfig(8) compiled WITHOUT_NETLINK_SUPPORT, which is not the default.
Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D41584 Fixes: d1cd0344f7b7d81beda04c3cb8cfee99351c3eb8
show more ...
|
#
21c32ceb |
| 28-Jun-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
ifconfig: skip calling fnmatch once the result no longer matters
Because fnmatch has no side effects, we can safely avoid calling fnmatch if the end result does not matter anyway (the compiler canno
ifconfig: skip calling fnmatch once the result no longer matters
Because fnmatch has no side effects, we can safely avoid calling fnmatch if the end result does not matter anyway (the compiler cannot see this, so it calls fnmatch in the event it has side-effects).
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/747
show more ...
|
#
08992b20 |
| 19-Jun-2023 |
John Baldwin <jhb@FreeBSD.org> |
ifconfig: Avoid issues with trying to negate unsigned values.
The if_flags and if_cap fields hold a bitmask of flags. If a flag is the MSB of the field, then the logic in setifflags and setifcap wh
ifconfig: Avoid issues with trying to negate unsigned values.
The if_flags and if_cap fields hold a bitmask of flags. If a flag is the MSB of the field, then the logic in setifflags and setifcap which uses a < 0 check does the wrong thing (it tries to clear the flag rather than setting it). Also, trying to use -<FOO> doesn't actually work as the result is a nop. To fix, stop overloading setifcap and setifflags and instead add new dedicated action functions clearifcap and clearifflags for clearing a flag. The value passed in the argument to the command is now always the raw flag.
This was reported by a GCC warning after raising WARNS:
sbin/ifconfig/ifconfig.c:2061:33: error: integer overflow in expression '-2147483648' of type 'int' results in '-2147483648' [-Werror=overflow] 2061 | DEF_CMD("-txtlsrtlmt", -IFCAP_TXTLS_RTLMT, setifcap), | ^
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40608
show more ...
|
#
e77b2ea4 |
| 19-Jun-2023 |
Ed Maste <emaste@FreeBSD.org> |
ifconfig: set boolean to true rather than incrementing
GCC warns about "increment of a boolean expression."
Reported by: amd64-gcc12 Cirrus-CI run Sponsored by: The FreeBSD Foundation
|
#
c344eff9 |
| 16-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
netlink: dump interface capabilities with other interface data.
This change exports interface capabilities using the standard Netlink attribute type, bitset, and switches `ifconfig(8)` to use it whe
netlink: dump interface capabilities with other interface data.
This change exports interface capabilities using the standard Netlink attribute type, bitset, and switches `ifconfig(8)` to use it when displaying interface data. Bitset comes in two representations. The first one is "compact", where the bits are exported via two arrays - "mask" listing the "valid" bits and "values, providing the values for those bits. The second one is more verbose, listing each bit as a separate item, with its name, id and value. The latter option is handy when submitting update requests.
The support for setting capabilities will be added in the upcoming diffs.
Differential Revision: https://reviews.freebsd.org/D40331
show more ...
|
#
a3930cd4 |
| 14-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: use default (more rigid) WARNS level.
It helps catch more errors at compile time.
Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D40536 MFC after: 2 weeks
|
#
f414f37e |
| 14-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: remove global 'ifr' usage from ifmedia.c & remove 'ifr'.
Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D40535 MFC after: 2 weeks
|
#
7fa282e6 |
| 14-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: remove (most of) the usages of global 'struct ifreq ifr'.
It is hard to reason about the contents of 'ifr' at any given time as nearly every function sets random fields or pointers in this
ifconfig: remove (most of) the usages of global 'struct ifreq ifr'.
It is hard to reason about the contents of 'ifr' at any given time as nearly every function sets random fields or pointers in this structure. Use local on-stack clean 'struct ifreq' for each function instead.
Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D40534 MFC after: 2 weeks
show more ...
|
#
52ff8883 |
| 14-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: fix ifconfig crash when compiled w/WITHOUT_NETLINK.
Properly update the recently-introduced `ctx->ifname` when iterating over interfaces.
Reported by: Gary Jennejohn <garyj@gmx.de> MFC af
ifconfig: fix ifconfig crash when compiled w/WITHOUT_NETLINK.
Properly update the recently-introduced `ctx->ifname` when iterating over interfaces.
Reported by: Gary Jennejohn <garyj@gmx.de> MFC after: 2 weeks
show more ...
|
#
3927d0fb |
| 14-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: fix -Wunused warnings
MFC after: 2 weeks
|
#
a6094f84 |
| 14-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: remove 'newaddr' global variable
Differential Revision: https://reviews.freebsd.org/D40441 MFC after: 2 weeks
|
#
bbad5525 |
| 14-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: start ifconfig context from main()
Differential Revision: https://reviews.freebsd.org/D40440 MFC after: 2 weeks
|
#
ea73ff97 |
| 13-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: remove global_args variable.
This variable was temporarily introduced in the beginning of the code cleanup. Use on-stack instance in main() instead.
Reviewed By: kp Differential Revision:
ifconfig: remove global_args variable.
This variable was temporarily introduced in the beginning of the code cleanup. Use on-stack instance in main() instead.
Reviewed By: kp Differential Revision: https://reviews.freebsd.org/D40439 MFC after: 2 weeks
show more ...
|
#
85e0016a |
| 13-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: remove global 'name' variable.
Consistenly use newly-added 'ctx->ifname' as the name of the current target interface.
Reviewed By: kp Differential Revision: https://reviews.freebsd.org/D4
ifconfig: remove global 'name' variable.
Consistenly use newly-added 'ctx->ifname' as the name of the current target interface.
Reviewed By: kp Differential Revision: https://reviews.freebsd.org/D40438 MFC after: 2 weeks
show more ...
|
#
c6f0602f |
| 13-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: pass if_ctx instead of socket to the tunnel handlers.
This is a pre-requisite for the global 'name' variable removal.
Reviewed By: kp Differential Revision: https://reviews.freebsd.org/D4
ifconfig: pass if_ctx instead of socket to the tunnel handlers.
This is a pre-requisite for the global 'name' variable removal.
Reviewed By: kp Differential Revision: https://reviews.freebsd.org/D40432 MFC after: 2 weeks
show more ...
|
#
4106282e |
| 13-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifconfig: remove global 'printifname' variable.
This variable was used to print the created interface name in the atexit(3) handler. The interface name was calculated in the ifclonecreate() by match
ifconfig: remove global 'printifname' variable.
This variable was used to print the created interface name in the atexit(3) handler. The interface name was calculated in the ifclonecreate() by matching old & new names.
This change alter the implementation the following way: 1) the function responsible for the interface creation (ifcreate_ioctl) updates all necessary state internally. This removes the need for the name manipulation hack in wlan_create(). 2) As atexit(3) handler does not accept any parameters, explicitly store the name to print in the ifname_to_print variable read by the atexit(3) handler.
Reviewed By: kp Differential Revision: https://reviews.freebsd.org/D40431 MFC after: 2 weeks
show more ...
|