Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159714916
D54045.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
888 B
Referenced Files
None
Subscribers
None
D54045.diff
View Options
diff --git a/sys/net/ifdi_if.m b/sys/net/ifdi_if.m
--- a/sys/net/ifdi_if.m
+++ b/sys/net/ifdi_if.m
@@ -117,6 +117,12 @@
{
return (false);
}
+
+ static int
+ null_get_downreason(if_ctx_t _ctx __unused, struct ifdownreason *_ifdr __unused)
+ {
+ return (ENOTSUP);
+ }
};
#
@@ -364,3 +370,8 @@
if_ctx_t _ctx;
enum iflib_restart_event _event;
} DEFAULT null_needs_restart;
+
+METHOD int get_downreason {
+ if_ctx_t _ctx;
+ struct ifdownreason *_ifdr;
+} DEFAULT null_get_downreason;
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -4540,6 +4540,11 @@
err = IFDI_PRIV_IOCTL(ctx, command, data);
CTX_UNLOCK(ctx);
break;
+ case SIOCGIFDOWNREASON:
+ CTX_LOCK(ctx);
+ err = IFDI_GET_DOWNREASON(ctx, (struct ifdownreason *)data);
+ CTX_UNLOCK(ctx);
+ break;
default:
err = ether_ioctl(ifp, command, data);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 18, 10:19 AM (14 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34048666
Default Alt Text
D54045.diff (888 B)
Attached To
Mode
D54045: iflib: Add support for SIOCGIFDOWNREASON IOCtl
Attached
Detach File
Event Timeline
Log In to Comment