Re: Redefinition of struct in6_addr in <netinet/in.h> and <linux/in6.h>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 17, 2013 at 2:59 AM, David Miller <davem@xxxxxxxxxxxxx> wrote:

When GLIBC doesn't provide it's own definition of some networking
macros or interfaces that the kernel provides, people include the
kernel header.

Recently I got a problem when copying a structure from kernel to userspace, after debugging I found:

kernel:   include/linux/inet.h

#define INET6_ADDRSTRLEN        (48)

glibc:  /usr/include/netinet/in.h

#define INET6_ADDRSTRLEN 46


Any reason to differentiate them from each other?

--
Thanks,
Jike
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]