]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/packet_mangler.h
xnu-3247.1.106.tar.gz
[apple/xnu.git] / bsd / net / packet_mangler.h
index 7042fe0c44a28f56b694505e97df9e6e16b23bc4..b2384991040b72d59e2cf75c7b07c5100f0e9edd 100644 (file)
@@ -52,37 +52,38 @@ typedef enum {
  * to be set in the sc_id field of sockaddr_ctl for connect(2)
  * Note: the sc_unit is ephemeral
  */
-#define PACKET_MANGLER_CONTROL_NAME "com.apple.packet-mangler"
-
-#define PKT_MNGLR_OPT_PROTO_ACT_MASK   1
-#define PKT_MNGLR_OPT_IP_ACT_MASK       2
-#define PKT_MNGLR_OPT_LOCAL_IP          3
-#define PKT_MNGLR_OPT_REMOTE_IP         4
-#define PKT_MNGLR_OPT_LOCAL_PORT        5
-#define PKT_MNGLR_OPT_REMOTE_PORT              6 
-#define PKT_MNGLR_OPT_DIRECTION         7
-#define PKT_MNGLR_OPT_PROTOCOL          8
-#define PKT_MNGLR_OPT_ACTIVATE         0xFFFFFFFF
+#define        PACKET_MANGLER_CONTROL_NAME "com.apple.packet-mangler"
+
+#define        PKT_MNGLR_OPT_PROTO_ACT_MASK    1
+#define        PKT_MNGLR_OPT_IP_ACT_MASK       2
+#define        PKT_MNGLR_OPT_LOCAL_IP          3
+#define        PKT_MNGLR_OPT_REMOTE_IP         4
+#define        PKT_MNGLR_OPT_LOCAL_PORT        5
+#define        PKT_MNGLR_OPT_REMOTE_PORT       6
+#define        PKT_MNGLR_OPT_DIRECTION         7
+#define        PKT_MNGLR_OPT_PROTOCOL          8
+#define        PKT_MNGLR_OPT_ACTIVATE          0xFFFFFFFF
 
 /* Packet mangler action masks */
 /* Packet Mangler TCP action mask */
-#define PKT_MNGLR_TCP_ACT_NOP_MPTCP    0x00000001
-#define PKT_MNGLR_TCP_ACT_SWAP_L_PORT   0x00000002
-#define PKT_MNGLR_TCP_ACT_SWAP_R_PORT   0x00000004
-#define PKT_MNGLR_TCP_ACT_CHK_EXTENDED  0x80000000
+#define        PKT_MNGLR_TCP_ACT_NOP_MPTCP     0x00000001
+#define        PKT_MNGLR_TCP_ACT_SWAP_L_PORT   0x00000002
+#define        PKT_MNGLR_TCP_ACT_SWAP_R_PORT   0x00000004
+#define        PKT_MNGLR_TCP_ACT_DSS_DROP      0x00000008
+#define        PKT_MNGLR_TCP_ACT_CHK_EXTENDED  0x80000000
 
 /* Packet Mangler IP action mask */
-#define PKT_MNGLR_IP_ACT_FLT_L_IP       0x00000001
-#define PKT_MNGLR_IP_ACT_FLT_R_IP       0x00000002
-#define PKT_MNGLR_IP_ACT_SWAP_L_IP      0x00000004
-#define PKT_MNGLR_IP_ACT_SWAP_R_IP      0x00000008
-#define PKT_MNGLR_IP_ACT_DROP_PACKET   0x00000010
-#define PKT_MNGLR_IP_ACT_CHK_EXTENDED   0x80000000
+#define        PKT_MNGLR_IP_ACT_FLT_L_IP       0x00000001
+#define        PKT_MNGLR_IP_ACT_FLT_R_IP       0x00000002
+#define        PKT_MNGLR_IP_ACT_SWAP_L_IP      0x00000004
+#define        PKT_MNGLR_IP_ACT_SWAP_R_IP      0x00000008
+#define        PKT_MNGLR_IP_ACT_DROP_PACKET    0x00000010
+#define        PKT_MNGLR_IP_ACT_CHK_EXTENDED   0x80000000
 
 /*
  * How many filter may be active simultaneously
  */
-#define        PKT_MNGLR_MAX_FILTER_COUNT      1       
+#define        PKT_MNGLR_MAX_FILTER_COUNT      1
 
 #define        PKT_MNGLR_VERSION_CURRENT 1