Fix issue with dst_port when filter logging is disabled.
This commit is contained in:
@@ -341,7 +341,9 @@ int xdp_prog_main(struct xdp_md *ctx)
|
||||
rule.now = now;
|
||||
rule.pkt_len = pkt_len;
|
||||
rule.src_port = src_port;
|
||||
#ifdef ENABLE_FILTER_LOGGING
|
||||
rule.dst_port = dst_port;
|
||||
#endif
|
||||
rule.protocol = protocol;
|
||||
|
||||
rule.iph = iph;
|
||||
|
||||
@@ -28,7 +28,9 @@ struct rule_ctx
|
||||
u64 now;
|
||||
int pkt_len;
|
||||
u16 src_port;
|
||||
#ifdef ENABLE_FILTER_LOGGING
|
||||
u16 dst_port;
|
||||
#endif
|
||||
u8 protocol;
|
||||
|
||||
struct iphdr* iph;
|
||||
|
||||
Reference in New Issue
Block a user