[PATCH nft 2/3] src: allow for misspellings in object names

2018-11-30 Thread Pablo Neira Ayuso
Use this from the lookup path, to check for mispellings: # nft add table filter # nft add chain filtre test Error: No such file or directory; did you mean table ‘filter’ in family ip? add chain filtre test ^^ Signed-off-by: Pablo Neira Ayuso --- include/misspell.h | 13

[PATCH nft 1/3] utils: remove type checks in min() and max()

2018-11-30 Thread Pablo Neira Ayuso
So we can pass functions as parameters, needed by follow up patch. Signed-off-by: Pablo Neira Ayuso --- include/utils.h | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/include/utils.h b/include/utils.h index 01560eae8d7f..e791523c0471 100644 ---

[PATCH nft 3/3] misspell: add distance threshold for suggestions

2018-11-30 Thread Pablo Neira Ayuso
Restrict suggestions to threshold, like gcc does. Signed-off-by: Pablo Neira Ayuso --- src/misspell.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/misspell.c b/src/misspell.c index 922d305d5e01..059d2e20de7a 100644 --- a/src/misspell.c +++

[PATCH v2] netfilter: nf_conntrack_sip: add sip_external_media logic

2018-11-30 Thread Alin Nastac
From: Alin Nastac Allow media streams that are not passing through this router. When enabled, the sip_external_media logic will leave SDP payload untouched when it detects that interface towards INVITEd party is the same with the one towards media endpoint. Signed-off-by: Alin Nastac ---