6 Commits

Author SHA1 Message Date
Dario Binacchi
0b242d346d include: cache copy of can.h and can/netlink.h
Ensure that rtnl-link-can example compiles in any installation. These
headers are not installed in the system.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
2023-05-28 22:44:25 +02:00
Pablo Neira Ayuso
f94b2c6748 include: cache copy of include/linux/socket.h
This fixes compilation in Debian Squeeze:

  CC     attr.lo
In file included from ../include/libmnl/libmnl.h:9,
                 from socket.c:10:
../include/linux/netlink.h:35: error: expected specifier-qualifier-list before ‘__kernel_sa_family_t’
In file included from ../include/libmnl/libmnl.h:9,
                 from callback.c:11:
../include/linux/netlink.h:35: error: expected specifier-qualifier-list before ‘__kernel_sa_family_t’
socket.c: In function ‘mnl_socket_get_portid’:
socket.c:102: error: ‘const struct sockaddr_nl’ has no member named ‘nl_pid’
socket.c: In function ‘mnl_socket_bind’:
socket.c:146: error: ‘struct sockaddr_nl’ has no member named ‘nl_family’
socket.c:147: error: ‘struct sockaddr_nl’ has no member named ‘nl_groups’
socket.c:148: error: ‘struct sockaddr_nl’ has no member named ‘nl_pid’
socket.c:163: error: ‘struct sockaddr_nl’ has no member named ‘nl_family’
socket.c: In function ‘mnl_socket_sendto’:
socket.c:184: error: unknown field ‘nl_family’ specified in initializer
socket.c:185: warning: excess elements in struct initializer
socket.c:185: warning: (near initialization for ‘snl’)

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2014-06-13 11:20:55 +02:00
Pablo Neira Ayuso
419513fb3b include: cache copy of nfnetlink_conntrack.h
To ensure that examples compile in any installation. This header
is not installed in the system.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2013-06-11 17:58:32 +02:00
Stephen Hemminger
11cb82355d headers: update netlink.h to 3.9
Use sanitized kernel header from 3.9 upstream kernel.

Reported-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2013-03-26 22:07:54 +01:00
Jan Engelhardt
612770e648 include: use sanitized header from headers_install
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2011-03-17 23:42:30 +01:00
Pablo Neira Ayuso
516477a5d2 headers: add local copy of linux/netlink.h to libmnl
Davem suggested to add a copy of linux/netlink.h to avoid compilation
problems in all cases scenarios.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2010-12-22 20:46:46 +01:00