diff options
| author | 崔一鸣 <[email protected]> | 2019-09-06 16:50:37 +0800 |
|---|---|---|
| committer | 崔一鸣 <[email protected]> | 2019-09-06 16:50:37 +0800 |
| commit | cd7408e15586e5d6e5eb760e27e150d05797359d (patch) | |
| tree | 836e5e05af1c6e8753cabc1597cbee4ba2c90b65 /common | |
| parent | c6b2ffa5852eeecfdece9329182ae310a894c360 (diff) | |
支持tun模式调通
Diffstat (limited to 'common')
| -rw-r--r-- | common/include/kni_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/include/kni_utils.h b/common/include/kni_utils.h index 83f7ea7..5e3754f 100644 --- a/common/include/kni_utils.h +++ b/common/include/kni_utils.h @@ -158,6 +158,12 @@ enum kni_ipv6hdr_parse_error{ KNI_IPV6HDR_PARSE_ERROR_INVALID_TYPE = -3, }; + +enum kni_deploy_mode{ + KNI_DEPLOY_MODE_TUN = 0, + KNI_DEPLOY_MODE_NORMAL = 1, +}; + int kni_addr_trans_v4(struct stream_tuple4_v4 *tuple4, char *output, int len); int kni_addr_trans_v6(struct stream_tuple4_v6 *tuple4, char *output, int len); uint16_t kni_ip_checksum(const void *buf, size_t hdr_len); |
