Re: Bug#630206: libnss-myhostname: FTBFS: fatal error: asm/types.h: No such file or directory
On Tue, 14.06.11 23:01, Robert Millan (email@example.com) wrote:
> 2011/6/14 Lennart Poettering <firstname.lastname@example.org>:
> > if LEGACY
> > foo_SOURCES += legacy.c
> > else
> > foo_SOURCES += netlink.c
> > endif
> > In the Makefile.am file.
I have commited this now, though I am pretty sure this is actually
broken. You cannot just go and make up ifindexes. You need to determine
the kernel ifindexes for your interfaces. You probably simply need to
call if_nametoindex() on all ifa_name fields.
Lennart Poettering - Red Hat, Inc.