diff options
| author | lishu <[email protected]> | 2019-03-15 16:59:18 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2019-03-15 16:59:18 +0800 |
| commit | e2c4b4e6a104162d3234c5e6a59756da254918dc (patch) | |
| tree | f7e3ad3c893ce078b910f3c8978594dcd0830d20 /src/hard_keepalive.h | |
| parent | 24bc0055e363475302563635e8114fcf7f23a62a (diff) | |
1. keepalive add state
2. support UDP send in SOQ
3. 上述功能写入安装使用手册
Diffstat (limited to 'src/hard_keepalive.h')
| -rw-r--r-- | src/hard_keepalive.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hard_keepalive.h b/src/hard_keepalive.h index 7eaa7d3..22f08c2 100644 --- a/src/hard_keepalive.h +++ b/src/hard_keepalive.h @@ -10,10 +10,15 @@ typedef struct bfd_port_s #define MY_ID_OFFSET 4 #define YOUR_ID_OFFSET 8 #define ID_SIZE 4 + +#define setbit(x,y) x|=(1<<y) +#define clrbit(x,y) x&=~(1<<y) +#define getbit(x,y) ((x) >> (y)&1) + typedef struct bfd_header_s { unsigned char version_diag; - unsigned char flags; + unsigned char flags; /*flagǰ2bit��state*/ unsigned char detect_time_multiplier; unsigned char length; unsigned char my_discriminator[4]; /* ҵ?º? ²²â*/ |
