aboutsummaryrefslogtreecommitdiffstats
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-04-01 14:36:35 -0500
commit30634d4e65615fc5150409d9c5ba34b21e00dddf (patch)
tree9245c3f715bb0cf8d5996085c24a590cbf7416fb
parentmpm: eeprom: Improve E320 and N3x0 EEPROM code/comments (diff)
downloaduhd-30634d4e65615fc5150409d9c5ba34b21e00dddf.tar.xz
uhd-30634d4e65615fc5150409d9c5ba34b21e00dddf.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).
-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),