netsniff-ng: nlmsg: Fix build for older kernel headers
commitb7ece46f62b1fbece160cc7bd2905a6d0d3970a9
authorTobias Klauser <tklauser@distanz.ch>
Mon, 8 Jun 2015 14:01:13 +0000 (8 16:01 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 8 Jun 2015 14:03:29 +0000 (8 16:03 +0200)
tree738419a37cd797b5ecbd930d43ff0d5440177c0f
parentc00c007be4a00f299bde428068b4f93698256ee8
netsniff-ng: nlmsg: Fix build for older kernel headers

IFA_FLAGS and RTPROT_MROUTED might not be defined on older kernel
versions (as is evident from the Travis CI build failing [1]). Fix it by
conditionally using the two definitions.

[1] https://travis-ci.org/netsniff-ng/netsniff-ng/jobs/65887691

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
proto_nlmsg.c