Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2020 23:09:25 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r359023 - stable/12/sys/net
Message-ID:  <202003162309.02GN9POr046995@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Mon Mar 16 23:09:25 2020
New Revision: 359023
URL: https://svnweb.freebsd.org/changeset/base/359023

Log:
  MFC r358592:
  
  Expose ifr_buffer_get_(buffer|length) outside if.c.
  
  This is a preparatory commit for D23933.
  
  Reviewed by:	jhb
  Obtained from:	CheriBSD
  Sponsored by:	DARPA

Modified:
  stable/12/sys/net/if.c
  stable/12/sys/net/if_var.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/net/if.c
==============================================================================
--- stable/12/sys/net/if.c	Mon Mar 16 22:25:25 2020	(r359022)
+++ stable/12/sys/net/if.c	Mon Mar 16 23:09:25 2020	(r359023)
@@ -2483,7 +2483,7 @@ ifunit(const char *name)
 	return (ifp);
 }
 
-static void *
+void *
 ifr_buffer_get_buffer(void *data)
 {
 	union ifreq_union *ifrup;
@@ -2511,7 +2511,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: stable/12/sys/net/if_var.h
==============================================================================
--- stable/12/sys/net/if_var.h	Mon Mar 16 22:25:25 2020	(r359022)
+++ stable/12/sys/net/if_var.h	Mon Mar 16 23:09:25 2020	(r359023)
@@ -763,6 +763,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 *);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003162309.02GN9POr046995>