svn commit: r359024 - stable/11/sys/net

Brooks Davis brooks at FreeBSD.org
Mon Mar 16 23:15:21 UTC 2020


Author: brooks
Date: Mon Mar 16 23:15:20 2020
New Revision: 359024
URL: https://svnweb.freebsd.org/changeset/base/359024

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/11/sys/net/if.c
  stable/11/sys/net/if_var.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/net/if.c
==============================================================================
--- stable/11/sys/net/if.c	Mon Mar 16 23:09:25 2020	(r359023)
+++ stable/11/sys/net/if.c	Mon Mar 16 23:15:20 2020	(r359024)
@@ -2422,7 +2422,7 @@ ifunit(const char *name)
 	return (ifp);
 }
 
-static void *
+void *
 ifr_buffer_get_buffer(void *data)
 {
 	union ifreq_union *ifrup;
@@ -2450,7 +2450,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/11/sys/net/if_var.h
==============================================================================
--- stable/11/sys/net/if_var.h	Mon Mar 16 23:09:25 2020	(r359023)
+++ stable/11/sys/net/if_var.h	Mon Mar 16 23:15:20 2020	(r359024)
@@ -667,6 +667,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-all mailing list