Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151316292
D37784.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D37784.id.diff
View Options
diff --git a/sys/net/if.h b/sys/net/if.h
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -657,6 +657,12 @@
MALLOC_DECLARE(M_IFMADDR);
#endif
+/*
+ * Opaque interface structure.
+ */
+
+typedef struct ifnet * if_t;
+
extern struct sx ifnet_detach_sxlock;
struct nvlist;
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
@@ -124,8 +124,6 @@
IFCOUNTERS /* Array size. */
} ift_counter;
-typedef struct ifnet * if_t;
-
typedef void (*if_start_fn_t)(if_t);
typedef int (*if_ioctl_fn_t)(if_t, u_long, caddr_t);
typedef void (*if_init_fn_t)(void *);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 1:27 PM (7 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31100547
Default Alt Text
D37784.id.diff (598 B)
Attached To
Mode
D37784: ifnet/DrvAPI: Move if_t typedef to a better place
Attached
Detach File
Event Timeline
Log In to Comment