summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Use __EXPORTED rather than EXPORT_SYMBOLKevin Cernekee2017-01-162-30/+19
| | | | | | | | | | | | | | clang is sensitive to the ordering of __attribute__((visibility("default"))) relative to the function body. gcc is not. So if we try to re-declare an existing function with default visibility, clang prints a warning and generates a broken .so file in which nfct_timeout_* are not exported to library callers. Move the attribute up into the function definition to make clang happy. Signed-off-by: Kevin Cernekee <cernekee@chromium.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: more minor improvements for the doxygen documentationPablo Neira Ayuso2012-05-261-1/+10
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: add new parameter type to nfct_timeout_snprintfPablo Neira Ayuso2012-05-262-17/+38
| | | | | | | Thus, we can extend this interface to support the timeout policy in XML output in the future. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: improvements for the doxygen documentationPablo Neira Ayuso2012-05-261-8/+57
| | | | | | Do this before the first official release. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* add missing ICMPv6 supportPablo Neira Ayuso2012-03-011-0/+9
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* don't add CTA_TIMEOUT_DATA nest if no policy attributes are presentPablo Neira Ayuso2012-03-011-1/+1
| | | | | | Thus, we don't send empty nests to kernel-space. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* add nfct_timeout_policy_attr_to_name(state_attr)Pablo Neira Ayuso2012-03-012-0/+18
| | | | | | | This function returns the state name as string by taking the state attribute as parameter. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* const-ify arguments of functionsJan Engelhardt2012-02-291-2/+3
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* Properly NUL-terminate name in nfct_timeout_attr_setJan Engelhardt2012-02-291-1/+2
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* Add stdint header and type correctionsJan Engelhardt2012-02-291-5/+6
| | | | | | | | | 1. stdint.h is needed since you use uintXX_t in various places. 2. mnl_attr_get_type yields uint16_t, prefer to use it. 3. Since ->nlattr_max is uint32_t, most dependent uses should be unsigned too. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* const-ify static data objectsJan Engelhardt2012-02-291-7/+7
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* initial commitPablo Neira Ayuso2012-02-294-0/+596
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>