Expose ifr_buffer_get_(buffer|length) outside if.c.
This is a preparatory commit for D23933. Reviewed by: jhb
This commit is contained in:
parent
91b685872c
commit
8ad798ae9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358592
@ -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;
|
||||
|
@ -784,6 +784,8 @@ int if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsomax *);
|
||||
|
||||
/* 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 *);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user