Difference between "struct addr" and "struct addrs"
hiren panchasara
hiren.panchasara at gmail.com
Tue Mar 6 07:08:33 UTC 2012
On Mon, Mar 5, 2012 at 10:57 PM, Sergey Kandaurov <pluknet at gmail.com> wrote:
> struct ifaddr is the in-kernel representation of the interface address.
> In kernel each network interface consists of a linked list of interface
> addresses, described by ifaddr structures.
> See man ifnet(9): http://man.freebsd.org/ifnet
>
> struct ifaddrs is used in the userland BSD API getifaddrs(3). This
> interface
> is used to get interface addresses in userland programs. See how it is
> used in e.g. ifconfig(8) sources: /usr/src/sbin/ifconfig/ifconfig.c
> See man getifaddrs(3): http://man.freebsd.org/getifaddrs
>
Thanks Sergey, appreciate your help.
Are they connected in any way? Can I get one if I have another?
Hiren
More information about the freebsd-net
mailing list