25 #ifndef KERNEL_APPIF_H_ 26 #define KERNEL_APPIF_H_ 35 #define KERNEL_SOCKET_PATH "\0flexnic_os" 36 #define KERNEL_UXSOCK_MAXQ 8 41 } __attribute__((packed));
51 uint16_t flexnic_db_id;
52 uint16_t flexnic_qs_num;
57 } __attribute__((packed)) flexnic_qs[];
58 } __attribute__((packed));
63 enum kernel_appout_type {
64 KERNEL_APPOUT_INVALID = 0,
65 KERNEL_APPOUT_CONN_OPEN,
66 KERNEL_APPOUT_CONN_CLOSE,
67 KERNEL_APPOUT_CONN_MOVE,
68 KERNEL_APPOUT_LISTEN_OPEN,
69 KERNEL_APPOUT_LISTEN_CLOSE,
70 KERNEL_APPOUT_ACCEPT_CONN,
71 KERNEL_APPOUT_REQ_SCALE,
80 } __attribute__((packed));
82 #define KERNEL_APPOUT_CLOSE_RESET 0x1 91 } __attribute__((packed));
101 } __attribute__((packed));
103 #define KERNEL_APPOUT_LISTEN_REUSEPORT 0x1 110 } __attribute__((packed));
116 } __attribute__((packed));
120 uint64_t listen_opaque;
121 uint64_t conn_opaque;
123 } __attribute__((packed));
128 } __attribute__((packed));
144 } __attribute__((packed)) data;
146 } __attribute__((packed));
148 STATIC_ASSERT(
sizeof(
struct kernel_appout) == 64, kernel_appout_size);
154 enum kernel_appin_type {
155 KERNEL_APPIN_INVALID = 0,
156 KERNEL_APPIN_STATUS_CONN_CLOSE,
157 KERNEL_APPIN_STATUS_CONN_MOVE,
158 KERNEL_APPIN_STATUS_LISTEN_OPEN,
159 KERNEL_APPIN_STATUS_LISTEN_CLOSE,
160 KERNEL_APPIN_STATUS_REQ_SCALE,
161 KERNEL_APPIN_CONN_OPENED,
162 KERNEL_APPIN_LISTEN_NEWCONN,
163 KERNEL_APPIN_ACCEPTED_CONN,
170 } __attribute__((packed));
186 } __attribute__((packed));
192 uint16_t remote_port;
193 } __attribute__((packed));
208 uint16_t remote_port;
210 } __attribute__((packed));
220 } __attribute__((packed)) data;
222 } __attribute__((packed));
224 STATIC_ASSERT(
sizeof(
struct kernel_appin) == 64, kernel_appin_size);