Commit fc86983f authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

rename 'reverse-type' to 'reply-type'

parent 91cc4094
......@@ -264,7 +264,7 @@ function Rule:servoptfrags()
elseif util.contains({58, 'ipv6-icmp', 'icmpv6'}, sdef.proto) then
family = 'inet6'
oname = 'icmpv6-type'
elseif sdef.type or sdef['reverse-type'] then
elseif sdef.type or sdef['reply-type'] then
self:error('Type specification not valid with '..sdef.proto)
end
......@@ -279,7 +279,7 @@ function Rule:servoptfrags()
if sdef.type then
opts = opts..' --'..oname..' '..(
self.reverse and sdef['reverse-type'] or sdef.type
self.reverse and sdef['reply-type'] or sdef.type
)
end
table.insert(res, {family=family, opts=opts})
......
......@@ -82,8 +82,8 @@
"ospf": { "proto": "ospf" },
"pgsql": { "proto": "tcp", "port": 5432 },
"ping": [
{ "proto": "icmp", "type": 8, "reverse-type": 0 },
{ "proto": "icmpv6", "type": 128, "reverse-type": 129 }
{ "proto": "icmp", "type": 8, "reply-type": 0 },
{ "proto": "icmpv6", "type": 128, "reply-type": 129 }
],
"radius": [
{ "proto": "udp", "port": 1812 },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment