mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
linux(4): Add net epoch assert to the linux_ifhwaddr, linux_ifflags
Now this functions are intended to use in the net epoch. Reviewed by: emaste, melifaro Differential Revision: https://reviews.freebsd.org/D38795
This commit is contained in:
parent
f9b0675b01
commit
8d6dd96d50
1 changed files with 2 additions and 0 deletions
|
|
@ -477,6 +477,8 @@ int
|
|||
linux_ifhwaddr(struct ifnet *ifp, struct l_sockaddr *lsa)
|
||||
{
|
||||
|
||||
NET_EPOCH_ASSERT();
|
||||
|
||||
if (IFP_IS_LOOP(ifp)) {
|
||||
bzero(lsa, sizeof(*lsa));
|
||||
lsa->sa_family = LINUX_ARPHRD_LOOPBACK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue