Bug#327031: ifdown routine only works on Linux

Petter Reinholdtsen pere at hungry.com
Thu Sep 15 10:40:42 UTC 2005


[Robert Millan]
> This works, but only if you replace "ifr_flags" with
> "ifr_flagshigh".  It seems the system declaration is different, and
> kFreeBSD defines different macros for the high and low 16-bits of
> the flags int.

Oh, strange.  I'll have to consult the Stevens books and the POSIX
standard to figure out what the standard-compilant way to do this is.

> The attached patch (mostly like yours but with a pre-processor
> check) fixes the problem.

There is no pre-processor check in the patch you sent.  Was it
incomplete?

Sounds good that you managed to get it to work.  I'll review and test
the changes when I get time, hopefully some time next week.



More information about the Glibc-bsd-devel mailing list