summaryrefslogtreecommitdiffstats
path: root/xtoptions.c
Commit message (Collapse)AuthorAgeFilesLines
* libxtables: fix assignment in wrong offset (XTTYPE_UINT*RC)Jan Engelhardt2011-05-081-1/+1
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_PORTRC supportJan Engelhardt2011-05-011-0/+59
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxt_TOS: use guided option parserJan Engelhardt2011-05-011-0/+81
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* xtoptions: respect return value in xtables_getportbynameJan Engelhardt2011-04-141-0/+2
| | | | | | If ret was negative, ntohs may make it positive, which is undesired. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_PORT supportJan Engelhardt2011-04-131-0/+51
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_ONEHOST supportJan Engelhardt2011-04-131-0/+59
| | | | | | | | The bonus of the POSIX socket API is that it is almost protocol-agnostic and that there are ready-made functions to take over the gist of address parsing and packing. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_SYSLOGLEVEL supportJan Engelhardt2011-04-131-0/+48
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: pass struct xt_entry_{match,target} to x6 parserJan Engelhardt2011-04-131-0/+2
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT16 supportJan Engelhardt2011-04-131-0/+8
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT64RC supportJan Engelhardt2011-04-131-0/+8
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT8RC supportJan Engelhardt2011-04-131-3/+11
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT16RC supportJan Engelhardt2011-04-131-7/+21
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: linked-list name<->id mapJan Engelhardt2011-04-131-0/+99
| | | | | | This consolidates the maps from libxt_devgroup and libxt_realm. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT64 supportJan Engelhardt2011-04-131-2/+10
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_MARKMASK32 supportJan Engelhardt2011-04-131-0/+29
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_STRING supportJan Engelhardt2011-04-061-0/+25
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT32RC supportJan Engelhardt2011-04-061-1/+54
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT8 supportJan Engelhardt2011-04-061-1/+9
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: min-max option supportJan Engelhardt2011-04-061-0/+5
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: XTTYPE_UINT32 supportJan Engelhardt2011-04-061-2/+24
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: provide better final_checkJan Engelhardt2011-04-061-0/+40
| | | | | | | | This passes the per-extension data block to the new x6_fcheck function pointer, which can then do last alterations without using hacks like global variables (think libxt_statistic). Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* libxtables: guided option parserJan Engelhardt2011-04-061-0/+299
This patchset seeks to drastically reduce the code in the individual extensions by centralizing their argument parsing (breakdown of strings), validation, and in part, assignment. As a secondary goal, this reduces the number of static storage duration variables in flight. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>