kernel: Add options to control DF and ECN header bits/fields via XFRM
The options control whether the DF and ECN header bits/fields are copied from the unencrypted packets to the encrypted packets in tunnel mode (DF only for IPv4), and for ECN whether the same is done for inbound packets. Note: This implementation only works with Linux/Netlink/XFRM. Based on a patch by Markus Sattler.
This commit is contained in:
@@ -319,6 +319,12 @@ enum child_cfg_option_t {
|
||||
|
||||
/** Set mark on inbound SAs */
|
||||
OPT_MARK_IN_SA = (1<<6),
|
||||
|
||||
/** Disable copying the DF bit to the outer IPv4 header in tunnel mode */
|
||||
OPT_NO_COPY_DF = (1<<7),
|
||||
|
||||
/** Disable copying the ECN header field in tunnel mode */
|
||||
OPT_NO_COPY_ECN = (1<<8),
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user