summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-11 15:14:29 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-11 15:14:29 -0800
commitec188eedeb370b4433a0bdb5b958f72588894fc7 (patch)
treec129246d28cee90348afafd9ac95a818c5dc730c /xsl
parent462d78e99366f81dc95ab126c62ddc13b027631d (diff)
downloadvyatta-nat-ec188eedeb370b4433a0bdb5b958f72588894fc7.tar.gz
vyatta-nat-ec188eedeb370b4433a0bdb5b958f72588894fc7.zip
use common implementation of source/destination handling for NAT and firewall.
Diffstat (limited to 'xsl')
-rw-r--r--xsl/show_nat_rules.xsl16
1 files changed, 8 insertions, 8 deletions
diff --git a/xsl/show_nat_rules.xsl b/xsl/show_nat_rules.xsl
index 4df6065..7afa095 100644
--- a/xsl/show_nat_rules.xsl
+++ b/xsl/show_nat_rules.xsl
@@ -100,8 +100,8 @@
<xsl:choose>
<xsl:when test="src_addr=''">
- <xsl:value-of select="src_network"/>
- <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(src_network))"/>
+ <xsl:value-of select="src_net"/>
+ <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(src_net))"/>
</xsl:when>
<xsl:when test="src_addr!='0.0.0.0'">
@@ -110,15 +110,15 @@
</xsl:when>
<xsl:when test="src_addr='0.0.0.0'">
- <xsl:value-of select="src_network"/>
- <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(src_network))"/>
+ <xsl:value-of select="src_net"/>
+ <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(src_net))"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="dst_addr=''">
- <xsl:value-of select="dst_network"/>
- <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(dst_network))"/>
+ <xsl:value-of select="dst_net"/>
+ <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(dst_net))"/>
</xsl:when>
<xsl:when test="dst_addr!='0.0.0.0'">
@@ -127,8 +127,8 @@
</xsl:when>
<xsl:when test="dst_addr='0.0.0.0'">
- <xsl:value-of select="dst_network"/>
- <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(dst_network))"/>
+ <xsl:value-of select="dst_net"/>
+ <xsl:value-of select="substring($pad20,1,$pad20_len - string-length(dst_net))"/>
</xsl:when>
</xsl:choose>