mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
IfAPI: make if_getlladdr() to return char *
No functional change. The caddr_t is a relic typedef from C version that didn't have void pointer. In this particular change we really need a char * pointer rather than void, because some consumers use the link level address as a char array.
This commit is contained in:
parent
d3f035f8d9
commit
8e1af80243
2 changed files with 2 additions and 2 deletions
|
|
@ -4888,7 +4888,7 @@ if_setifheaderlen(if_t ifp, int len)
|
|||
return (0);
|
||||
}
|
||||
|
||||
caddr_t
|
||||
char *
|
||||
if_getlladdr(const if_t ifp)
|
||||
{
|
||||
return (IF_LLADDR(ifp));
|
||||
|
|
|
|||
|
|
@ -643,7 +643,7 @@ void if_setrcvif(struct mbuf *m, if_t ifp);
|
|||
void if_setvtag(struct mbuf *m, u_int16_t tag);
|
||||
u_int16_t if_getvtag(struct mbuf *m);
|
||||
int if_vlantrunkinuse(if_t ifp);
|
||||
caddr_t if_getlladdr(const if_t ifp);
|
||||
char *if_getlladdr(const if_t ifp);
|
||||
struct vnet *if_getvnet(const if_t ifp);
|
||||
void *if_gethandle(u_char);
|
||||
void if_vlancap(if_t ifp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue