> On Sep 6, 2020, at 9:51 PM, Kim Barrett <kim.barr...@oracle.com> wrote: > Oh, good grief! This file contains 3 identical copies of getMTU and > getFlags, one each for linux, AIX, and BSD. And getIndex is kind of a > mess. If changing any of these for linux, probably similar changes > ought to be applied to the other copies to keep things in sync.
Is there any reason the linux version of getIndex couldn’t be changed to use if_nametoindex (like the AIX version)? That would eliminate one of the cases that is causing problems.