diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-11 15:14:29 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-11 15:14:29 -0800 |
commit | ec188eedeb370b4433a0bdb5b958f72588894fc7 (patch) | |
tree | c129246d28cee90348afafd9ac95a818c5dc730c /xsl | |
parent | 462d78e99366f81dc95ab126c62ddc13b027631d (diff) | |
download | vyatta-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.xsl | 16 |
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> |