Initialize headers as NULL.

This commit is contained in:
gamemann
2021-11-12 21:07:30 +00:00
parent 83e801f36c
commit c81987ceeb

View File

@@ -105,8 +105,8 @@ int xdp_prog_main(struct xdp_md *ctx)
__u64 blocktime = 1; __u64 blocktime = 1;
// Initialize IP headers. // Initialize IP headers.
struct iphdr *iph; struct iphdr *iph = NULL;
struct ipv6hdr *iph6; struct ipv6hdr *iph6 = NULL;
__u128 srcip6 = 0; __u128 srcip6 = 0;
// Set IPv4 and IPv6 common variables. // Set IPv4 and IPv6 common variables.