svn commit: r358592 - head/sys/net
Brooks Davis
brooks at FreeBSD.org
Tue Mar 3 18:05:12 UTC 2020
Author: brooks
Date: Tue Mar 3 18:05:11 2020
New Revision: 358592
URL: https://svnweb.freebsd.org/changeset/base/358592
Log:
Expose ifr_buffer_get_(buffer|length) outside if.c.
This is a preparatory commit for D23933.
Reviewed by: jhb
Modified:
head/sys/net/if.c
head/sys/net/if_var.h
Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c Tue Mar 3 18:01:03 2020 (r358591)
+++ head/sys/net/if.c Tue Mar 3 18:05:11 2020 (r358592)
@@ -2414,7 +2414,7 @@ ifunit(const char *name)
return (ifp);
}
-static void *
+void *
ifr_buffer_get_buffer(void *data)
{
union ifreq_union *ifrup;
@@ -2442,7 +2442,7 @@ ifr_buffer_set_buffer_null(void *data)
ifrup->ifr.ifr_ifru.ifru_buffer.buffer = NULL;
}
-static size_t
+size_t
ifr_buffer_get_length(void *data)
{
union ifreq_union *ifrup;
Modified: head/sys/net/if_var.h
==============================================================================
--- head/sys/net/if_var.h Tue Mar 3 18:01:03 2020 (r358591)
+++ head/sys/net/if_var.h Tue Mar 3 18:05:11 2020 (r358592)
@@ -784,6 +784,8 @@ int if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsom
/* accessors for struct ifreq */
void *ifr_data_get_ptr(void *ifrp);
+void *ifr_buffer_get_buffer(void *data);
+size_t ifr_buffer_get_length(void *data);
int ifhwioctl(u_long, struct ifnet *, caddr_t, struct thread *);
More information about the svn-src-head
mailing list