aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-02-21 12:09:25 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-21 13:27:39 -0600
commit05211aa9a11085599e9428f53f1426d951fe3da9 (patch)
tree32b66b626344b5ccf6fd79602bbaa21f33d2b440 /mpm
parenta91d8e49655dd6f69ce1153498266c1a95230772 (diff)
downloaduhd-05211aa9a11085599e9428f53f1426d951fe3da9.tar.gz
uhd-05211aa9a11085599e9428f53f1426d951fe3da9.tar.bz2
uhd-05211aa9a11085599e9428f53f1426d951fe3da9.zip
mpm: xportmgr_udp: Match DNAT arguments to manpage
Change the --to argument to --to-destination. Both seem to work, but the latter is what is listed in iptables-extensions(8). What's confusing is that `--to` also exists in another context (in the `string` match extension).
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/xports/xportmgr_udp.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/xports/xportmgr_udp.py b/mpm/python/usrp_mpm/xports/xportmgr_udp.py
index 197a628e4..7075d38ad 100644
--- a/mpm/python/usrp_mpm/xports/xportmgr_udp.py
+++ b/mpm/python/usrp_mpm/xports/xportmgr_udp.py
@@ -251,14 +251,16 @@ class XportMgrUDP:
int_iface = internal_ifaces[0]
internal_ip_addr = self.get_fpga_internal_ip_address(int_iface)
- prerouting_arguments = ['PREROUTING',
+ prerouting_arguments = [
+ 'PREROUTING',
'-t', 'nat',
'-i', iface,
'-p', 'udp',
'--dport', str(self.chdr_port),
'-j', 'DNAT',
- '--to', internal_ip_addr]
- forward_arguments = ['FORWARD',
+ '--to-destination', internal_ip_addr]
+ forward_arguments = [
+ 'FORWARD',
'-p', 'udp',
'-d', internal_ip_addr,
'--dport', str(self.chdr_port),