Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105289924
D38102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
632 B
Referenced Files
None
Subscribers
None
D38102.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
@@ -4622,9 +4622,9 @@
}
int
-if_init(if_t ifp)
+if_init(if_t ifp, void *ctx)
{
- (*((struct ifnet *)ifp)->if_init)((struct ifnet *)ifp);
+ (*((struct ifnet *)ifp)->if_init)(ctx);
return (0);
}
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
@@ -784,7 +784,7 @@
void if_etherbpfmtap(if_t ifp, struct mbuf *m);
void if_vlancap(if_t ifp);
int if_transmit(if_t ifp, struct mbuf *m);
-int if_init(if_t ifp);
+int if_init(if_t ifp, void *ctx);
/*
* Traversing through interface address lists.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 15, 1:19 PM (19 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15391289
Default Alt Text
D38102.diff (632 B)
Attached To
Mode
D38102: ifnet API: Change if_init() to take context argument
Attached
Detach File
Event Timeline
Log In to Comment