> If one has multiple variants of PF_NETLINK or PF_ROUTE, then you would > need to add specific versions for each such system, and _that_ is > ugly, and completely unmaintainable. The commands do small, specific > things, there is no harm, or what you percive as uglyness, in using > #ifdef here.
Then those PF_NETLINK variants can be #ifdefed in the netlink_*.c files. Same for PF_ROUTE. But combining entirely different socket families in one file is completely different. > You assume that PF_NETLINK and PF_ROUTE behave exactly the same across > all systems, they might not. No. I did not. Happy hacking, Debarshi _______________________________________________ bug-inetutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-inetutils
