]> git.puffer.fish Git - mirror/frr.git/commit
isisd: fix BPF ioctl() calls, treat "true" and "false" as reserved
authorDavid Ward <david.ward@ll.mit.edu>
Thu, 3 Dec 2009 17:44:35 +0000 (20:44 +0300)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 3 Dec 2009 17:44:35 +0000 (20:44 +0300)
commit362573e5642b29ffeef5000351adc2d6ed6dfca3
tree2b1c84f9498563959f43b54335ab8a07c4e7e6c2
parentcdb9950482e1180b4a2b6ba05d171bdf2649c84c
isisd: fix BPF ioctl() calls, treat "true" and "false" as reserved

Avoid a potential conflict with the C99 defines 'true' and 'false'
found in <stdbool.h> by choosing better variable names.

Also fix the calls to these ioctls, as described in <net/bpf.h>
in FreeBSD, NetBSD, and OpenBSD:

* BIOCGBLEN, BIOCIMMEDIATE, BIOCSSEESENT (the parameter should be
of type 'u_int')

* BIOCPROMISC (there should be no parameters)
isisd/isis_bpf.c