Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2013 13:05:22 +0330
From:      h bagade <bagadeh@gmail.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-net@freebsd.org, Kevin Oberman <kob6558@gmail.com>
Subject:   Re: failed to use getifaddrs on geli code
Message-ID:  <CAARSjE3GauXYE6u9foeX6Po0wAhJ9phmaZmhzomcDmxws3Dssw@mail.gmail.com>
In-Reply-To: <20130217082407.GE2598@kib.kiev.ua>
References:  <CAARSjE2ntUvgDR3B1u3hSc9NHi6BGHDSa8nTJAW5fXrh%2BxsQ_A@mail.gmail.com> <CAN6yY1vr6rTtTCzuUAi1NPAwQV-aJ5KMMF%2BcHOxLfqnbR9gryA@mail.gmail.com> <CAARSjE26hzs_w_sgG1TGju3W2b4N1%2BoZO-w_ngL0ywwUKBAxqg@mail.gmail.com> <20130217082407.GE2598@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 17, 2013 at 11:54 AM, Konstantin Belousov
<kostikbel@gmail.com>wrote:

> On Sun, Feb 17, 2013 at 11:49:10AM +0330, h bagade wrote:
> > On Sat, Feb 16, 2013 at 10:23 PM, Kevin Oberman <kob6558@gmail.com>
> wrote:
> >
> > > On Sat, Feb 16, 2013 at 5:40 AM, h bagade <bagadeh@gmail.com> wrote:
> > > > Hi all,
> > > >
> > > > I need to change the geli code and I want to use "getifaddrs"
> function
> > > > inside the code. I make and make install the code and it wasn't any
> > > problem
> > > > at all, but when I want to load the geom_eli.ko module, an error
> > > occurred:
> > > > kldload: can't load /boot/kernel/geom_eli.ko: Exec format error
> > > >
> > > > and in /var/log/messages, it stated:
> > > > link_elf_obj: symbol getifaddrs undefined
> > > >
> > > > how can I solve this problem?
> > > > Any hints or comments are really appreciated
> > >
> > > One possibility is that your sources from which you built the modified
> > > geom_eli module are not the same as were used to build the kernel you
> > > are running.
> > > --
> > > R. Kevin Oberman, Network Engineer
> > > E-mail: kob6558@gmail.com
> > >
> >
> > I've build the kernel once again with the modified geli code and the
> error
> > still exists!
>
> getifaddrs(3) is usermode interface, exported from libc. You cannot
> use it from the kernel.
>

Thank you alot for your precise answer. So does anybody know which method I
could replace to get out network interfaces properties?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAARSjE3GauXYE6u9foeX6Po0wAhJ9phmaZmhzomcDmxws3Dssw>