feat: add config_parser

This commit is contained in:
mzz2017
2023-01-27 02:10:27 +08:00
parent 916a55d480
commit edbce81e88
53 changed files with 6696 additions and 733 deletions

View File

@ -20,8 +20,6 @@ const (
BigEndianTproxyPortKey
DisableL4TxChecksumKey
DisableL4RxChecksumKey
EpochKey
RoutingsLenKey
)
type DisableL4ChecksumPolicy uint32
@ -50,6 +48,7 @@ type OutboundIndex uint8
const (
OutboundDirect OutboundIndex = 0
OutboundBlock OutboundIndex = 1
OutboundControlPlaneDirect OutboundIndex = 0xFE
OutboundLogicalAnd OutboundIndex = 0xFF
)
@ -58,6 +57,8 @@ func (i OutboundIndex) String() string {
switch i {
case OutboundDirect:
return "direct"
case OutboundBlock:
return "block"
case OutboundControlPlaneDirect:
return "<Control Plane Direct>"
case OutboundLogicalAnd:

View File

@ -19,4 +19,6 @@ const (
Function_Mac = "mac"
Function_L4Proto = "l4proto"
Function_IpVersion = "ipversion"
Declaration_Final = "final"
)