]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/if_fake_var.h
xnu-4903.241.1.tar.gz
[apple/xnu.git] / bsd / net / if_fake_var.h
index b6b14707051e7f259b8b08fb6736fbabf1e31ca7..1b8aaf4b169e3afe5e9a6bf31cee8cd8038a2309 100644 (file)
@@ -43,6 +43,7 @@ enum {
        IF_FAKE_S_CMD_NONE              = 0,
        IF_FAKE_S_CMD_SET_PEER          = 1,
        IF_FAKE_S_CMD_SET_MEDIA         = 2,
+       IF_FAKE_S_CMD_SET_DEQUEUE_STALL = 3,
 };
 
 /*
@@ -68,9 +69,15 @@ struct if_fake_request {
                char    iffru_buf[128];         /* stable size */
                struct if_fake_media    iffru_media;
                char    iffru_peer_name[IFNAMSIZ]; /* if name, e.g. "en0" */
+               /*
+                * control dequeue stall. 0: disable dequeue stall, else
+                * enable dequeue stall.
+                */
+               uint32_t        iffru_dequeue_stall;
        } iffr_u;
 #define iffr_peer_name iffr_u.iffru_peer_name
 #define iffr_media     iffr_u.iffru_media
+#define iffr_dequeue_stall     iffr_u.iffru_dequeue_stall
 };
 
 #endif /* _NET_IF_FAKE_VAR_H_ */