xtables-addons: rtsp: fix compile warning/issue
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 3 Aug 2018 15:51:23 +0000 (17:51 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 6 Aug 2018 15:39:02 +0000 (17:39 +0200)
Fix compile issue with Werror:

nf_conntrack_rtsp.c:667:39: error: implicit declaration of function 'nf_ct_zone' [-Werror=implicit-function-declaration]
   exp_ct = nf_ct_expect_find_get(net, nf_ct_zone(ct), &t);

Fix compile warning:

nf_conntrack_rtsp.c:474:2: warning: enumeration value 'IP_CT_DIR_MAX' not handled in switch [-Wswitch]
  switch (CTINFO2DIR(ctinfo)) {
  ^~~~~~

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
net/xtables-addons/patches/100-add-rtsp-conntrack.patch

index 7ac2cc56386e600a428d6d1fd1a5d417b272073c..e280ec447c29d063b5f56ae73d067afe690172bc 100644 (file)
 +#endif /* _NETFILTER_MIME_H */
 --- /dev/null
 +++ b/extensions/rtsp/nf_conntrack_rtsp.c
-@@ -0,0 +1,732 @@
+@@ -0,0 +1,735 @@
 +/*
 + * RTSP extension for IP connection tracking
 + * (C) 2003 by Tom Marshall <tmarshall at real.com>
 +#include <net/netfilter/nf_conntrack.h>
 +#include <net/netfilter/nf_conntrack_expect.h>
 +#include <net/netfilter/nf_conntrack_helper.h>
++#include <net/netfilter/nf_conntrack_zones.h>
 +#include "nf_conntrack_rtsp.h"
 +
 +#define NF_NEED_STRNCASECMP
 +              ret = help_in(skb, rb_ptr, datalen, ct, ctinfo);
 +#endif
 +              break;
++      default:
++              break;
 +      }
 +
 +      spin_unlock_bh(&rtsp_buffer_lock);