Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_pfsync.h
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
| #define PFSYNC_VERSION 5 | #define PFSYNC_VERSION 5 | ||||
| #define PFSYNC_DFLTTL 255 | #define PFSYNC_DFLTTL 255 | ||||
| enum pfsync_msg_versions { | enum pfsync_msg_versions { | ||||
| PFSYNC_MSG_VERSION_UNSPECIFIED = 0, | PFSYNC_MSG_VERSION_UNSPECIFIED = 0, | ||||
| PFSYNC_MSG_VERSION_1301 = 1301, | PFSYNC_MSG_VERSION_1301 = 1301, | ||||
| PFSYNC_MSG_VERSION_1400 = 1400, | PFSYNC_MSG_VERSION_1400 = 1400, | ||||
| PFSYNC_MSG_VERSION_1500 = 1500, | |||||
| }; | }; | ||||
| #define PFSYNC_MSG_VERSION_DEFAULT PFSYNC_MSG_VERSION_1400 | #define PFSYNC_MSG_VERSION_DEFAULT PFSYNC_MSG_VERSION_1500 | ||||
| #define PFSYNC_ACT_CLR 0 /* clear all states */ | #define PFSYNC_ACT_CLR 0 /* clear all states */ | ||||
| #define PFSYNC_ACT_INS_1301 1 /* insert state */ | #define PFSYNC_ACT_INS_1301 1 /* insert state */ | ||||
| #define PFSYNC_ACT_INS_ACK 2 /* ack of inserted state */ | #define PFSYNC_ACT_INS_ACK 2 /* ack of inserted state */ | ||||
| #define PFSYNC_ACT_UPD_1301 3 /* update state */ | #define PFSYNC_ACT_UPD_1301 3 /* update state */ | ||||
| #define PFSYNC_ACT_UPD_C 4 /* "compressed" update state */ | #define PFSYNC_ACT_UPD_C 4 /* "compressed" update state */ | ||||
| #define PFSYNC_ACT_UPD_REQ 5 /* request "uncompressed" state */ | #define PFSYNC_ACT_UPD_REQ 5 /* request "uncompressed" state */ | ||||
| #define PFSYNC_ACT_DEL 6 /* delete state */ | #define PFSYNC_ACT_DEL 6 /* delete state */ | ||||
| #define PFSYNC_ACT_DEL_C 7 /* "compressed" delete state */ | #define PFSYNC_ACT_DEL_C 7 /* "compressed" delete state */ | ||||
| #define PFSYNC_ACT_INS_F 8 /* insert fragment */ | #define PFSYNC_ACT_INS_F 8 /* insert fragment */ | ||||
| #define PFSYNC_ACT_DEL_F 9 /* delete fragments */ | #define PFSYNC_ACT_DEL_F 9 /* delete fragments */ | ||||
| #define PFSYNC_ACT_BUS 10 /* bulk update status */ | #define PFSYNC_ACT_BUS 10 /* bulk update status */ | ||||
| #define PFSYNC_ACT_TDB 11 /* TDB replay counter update */ | #define PFSYNC_ACT_TDB 11 /* TDB replay counter update */ | ||||
| #define PFSYNC_ACT_EOF 12 /* end of frame */ | #define PFSYNC_ACT_EOF 12 /* end of frame */ | ||||
| #define PFSYNC_ACT_INS_1400 13 /* insert state */ | #define PFSYNC_ACT_INS_1400 13 /* insert state */ | ||||
| #define PFSYNC_ACT_UPD_1400 14 /* update state */ | #define PFSYNC_ACT_UPD_1400 14 /* update state */ | ||||
| #define PFSYNC_ACT_MAX 15 | #define PFSYNC_ACT_INS_1500 15 /* insert state */ | ||||
| #define PFSYNC_ACT_UPD_1500 16 /* update state */ | |||||
| #define PFSYNC_ACT_MAX 17 | |||||
| /* | /* | ||||
| * A pfsync frame is built from a header followed by several sections which | * A pfsync frame is built from a header followed by several sections which | ||||
| * are all prefixed with their own subheaders. Frames must be terminated with | * are all prefixed with their own subheaders. Frames must be terminated with | ||||
| * an EOF subheader. | * an EOF subheader. | ||||
| * | * | ||||
| * | ... | | * | ... | | ||||
| * | IP header | | * | IP header | | ||||
| ▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines | |||||