Page MenuHomeFreeBSD

D38348.1793777985.diff
No OneTemporary

Authored By
Unknown
Size
830 B
Referenced Files
None
Subscribers
None

D38348.1793777985.diff

diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -4472,6 +4472,21 @@
return (count);
}
+int
+if_foreach_ifnet(ifnet_iter_cb_t cb, void *cb_arg)
+{
+ if_t ifp;
+ int error;
+
+ error = 0;
+ CK_FOREACH(ifp, &V_ifnet, if_link) {
+ error = cb(ifp, cb_arg);
+ if (error != 0)
+ }
+
+ return (error);
+}
+
u_int
if_foreach_lladdr(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
@@ -506,6 +506,9 @@
#define MCDPRINTF(...)
#endif
+typedef int (*ifnet_iter_cb_t)(if_t, void *);
+int if_foreach_ifnet(ifnet_iter_cb_t, void *);
+
int if_addgroup(struct ifnet *, const char *);
int if_delgroup(struct ifnet *, const char *);
int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 4, 7:39 AM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41412691
Default Alt Text
D38348.1793777985.diff (830 B)

Event Timeline