Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168744061
D39493.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
634 B
Referenced Files
None
Subscribers
None
D39493.diff
View Options
diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -4685,6 +4685,13 @@
return (count);
}
+bool
+if_maddr_empty(if_t ifp)
+{
+
+ return (CK_STAILQ_EMPTY(&ifp->if_multiaddrs));
+}
+
u_int
if_foreach_llmaddr(if_t ifp, iflladdr_cb_t cb, void *cb_arg)
{
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -657,6 +657,7 @@
u_int if_foreach_llmaddr(if_t, iflladdr_cb_t, void *);
u_int if_lladdr_count(if_t);
u_int if_llmaddr_count(if_t);
+bool if_maddr_empty(if_t);
int if_getamcount(const if_t ifp);
struct ifaddr * if_getifaddr(const if_t ifp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 30, 10:32 PM (10 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37631089
Default Alt Text
D39493.diff (634 B)
Attached To
Mode
D39493: IfAPI: Add if_maddr_empty() to check for any maddrs
Attached
Detach File
Event Timeline
Log In to Comment