View | Details | Raw Unified | Return to bug 258513
Collapse All | Expand All

(-)b/net-mgmt/pmacct/files/patch-src_nfprobe__plugin_netflow9.c (+11 lines)
Added Link Here
1
--- src/nfprobe_plugin/netflow9.c.orig	2020-05-10 13:57:54 UTC
2
+++ src/nfprobe_plugin/netflow9.c
3
@@ -2233,7 +2233,7 @@ send_netflow_v9(struct FLOW **flows, int num_flows, in
4
 
5
 		/* Refresh template headers if we need to */
6
 		if (nf9_pkts_until_template <= 0) {
7
-			u_int16_t flows = 0, tot_len = 0;
8
+			u_int16_t flows = 0, tot_len  __attribute__((unused)) = 0;
9
 
10
 			memcpy(packet + offset, &v4_template, v4_template.tot_len);
11
 			offset += v4_template.tot_len;
(-)b/net-mgmt/pmacct/files/patch-src_sflow.c (+11 lines)
Added Link Here
1
--- src/sflow.c.orig	2020-05-10 13:57:54 UTC
2
+++ src/sflow.c
3
@@ -306,7 +306,7 @@ void decodeIPV4(SFSample *sample)
4
 
5
 void decodeIPV6(SFSample *sample)
6
 {
7
-  u_int32_t label;
8
+  u_int32_t label __attribute__((unused));
9
   u_int32_t nextHeader;
10
   u_char *end = sample->header + sample->headerLen;
11
 

Return to bug 258513