helpers: make the proto field as a list rather than one option
authorPierre Lebleu <pme.lebleu@gmail.com>
Mon, 7 May 2018 14:17:16 +0000 (16:17 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 14 May 2018 14:15:02 +0000 (16:15 +0200)
commit08b2c61b4d66bb78d98135d8ddb87ce34be55c81
tree6ae78019add2d0a5b430b3dc87984782b1eb711f
parent35b3e74a184b709b8ddfaaa094919a656a6ec059
helpers: make the proto field as a list rather than one option

The field proto in the struct fw3_cthelper should be implemented
as a list in order to support multiple protocols.

For example, the helper for SIP should be able to support both
TCP and UDP within only one entry in the config file.

config helper
        option name 'sip'
        option description 'SIP VoIP connection tracking'
        option module 'nf_conntrack_sip'
        option family 'any'
        option proto 'tcpudp'
        option port '5060'

Signed-off-by: Pierre Lebleu <pme.lebleu@gmail.com>
helpers.c
helpers.h
options.h
redirects.c
rules.c