diff options
author | qinyang <qiny@yusur.tech> | 2023-06-27 01:11:53 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-07-21 16:27:14 +0000 |
commit | af9b7156c8fd16c671ce9332613faaf864b075b3 (patch) | |
tree | 201f45dacba23771db635c563b34315b6594d4af /src/vcl/vcl_cfg.c | |
parent | ae916b39049669bbada12dbcfecbb4e3f9c09c69 (diff) |
vcl: ldp support SO_ORIGINAL_DST
Type: improvement
Support SO_ORIGINAL_DST socket option to get original dst_ip4 and dst_port if nat44 rule enabled.
Change-Id: If00e00d03e48f3b78a23a68f1b078954d79dd0f7
Signed-off-by: qinyang <qiny@yusur.tech>
Diffstat (limited to 'src/vcl/vcl_cfg.c')
-rw-r--r-- | src/vcl/vcl_cfg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vcl/vcl_cfg.c b/src/vcl/vcl_cfg.c index be142eaeb58..edea60dc60a 100644 --- a/src/vcl/vcl_cfg.c +++ b/src/vcl/vcl_cfg.c @@ -464,6 +464,11 @@ vppcom_cfg_read_file (char *conf_fname) VCFG_DBG (0, "VCL<%d>: configured with multithread workers", getpid ()); } + else if (unformat (line_input, "app_original_dst")) + { + vcl_cfg->app_original_dst = 1; + VCFG_DBG (0, "VCL<%d>: support original destination", getpid ()); + } else if (unformat (line_input, "}")) { vc_cfg_input = 0; |