freebsd-src/sbin/ifconfig
Kristof Provost 4f8f43b06e netlink: cope with growing requests
If a request ends up growing beyong the initially allocated space the
netlink functions (such as snl_add_msg_attr_u32()) will allocate a
new buffer. This invalidates the header pointer we can have received
from snl_create_msg_request(). Always use the hdr returned by
snl_finalize_msg().

Reviewed by:	melifaro
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D42223
2023-10-17 08:47:52 +02:00
..
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
af_inet.c netlink: cope with growing requests 2023-10-17 08:47:52 +02:00
af_inet6.c netlink: cope with growing requests 2023-10-17 08:47:52 +02:00
af_link.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
af_nd6.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
carp.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
ifbridge.c ifconfig: add static bridge addresses for vlan 0, not 1 2023-10-15 16:21:53 +02:00
ifclone.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
ifconfig.8 pfsync: Provide documentation regarding message version 2023-10-17 06:38:47 +02:00
ifconfig.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
ifconfig.h ifconfig: fix 'ifconfig -l ether' 2023-08-25 10:31:26 -07:00
ifconfig_netlink.c netlink: cope with growing requests 2023-10-17 08:47:52 +02:00
ifconfig_netlink.h ifconfig: make interface and address listing use Netlink as transport 2023-05-16 19:39:13 +00:00
iffib.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ifgif.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
ifgre.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
ifgroup.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
ifieee80211.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ifipsec.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
iflagg.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
ifmac.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ifmedia.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
ifpfsync.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ifstf.c ifconfig: remove (most of) the usages of global 'struct ifreq ifr'. 2023-06-16 07:19:21 +00:00
ifvlan.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
ifvxlan.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
sfp.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00