mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
move netmap_getna() to a freebsd-specific file
This commit is contained in:
parent
b6ae8b050b
commit
0dc809c034
2 changed files with 8 additions and 6 deletions
|
|
@ -223,6 +223,14 @@ generic_xmit_frame(struct ifnet *ifp, struct mbuf *m,
|
|||
}
|
||||
|
||||
|
||||
#if __FreeBSD_version >= 1100005
|
||||
struct netmap_adapter *
|
||||
netmap_getna(if_t ifp)
|
||||
{
|
||||
return (NA((struct ifnet *)ifp));
|
||||
}
|
||||
#endif /* __FreeBSD_version >= 1100005 */
|
||||
|
||||
/*
|
||||
* The following two functions are empty until we have a generic
|
||||
* way to extract the info from the ifp
|
||||
|
|
|
|||
|
|
@ -811,9 +811,3 @@ generic_netmap_attach(struct ifnet *ifp)
|
|||
|
||||
return retval;
|
||||
}
|
||||
|
||||
struct netmap_adapter *
|
||||
netmap_getna(if_t ifp)
|
||||
{
|
||||
return (NA((struct ifnet *)ifp));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue