Fix a cast so it can be compiled with gcc-6

This commit is contained in:
Daniel Adolfsson 2016-04-08 13:32:22 +02:00
parent b8b2d401b9
commit f19fa4be6a

View File

@ -147,7 +147,7 @@ ptr<iface> iface::open_pfd(const std::string& name)
// Bail if it's* not* ND_NEIGHBOR_SOLICIT.
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, ND_NEIGHBOR_SOLICIT, 0, 1),
// Keep packet.
BPF_STMT(BPF_RET | BPF_K, -1),
BPF_STMT(BPF_RET | BPF_K, (u_int32_t)-1),
// Drop packet.
BPF_STMT(BPF_RET | BPF_K, 0)
};