Libnl introduction:
Libnl is a library for applications dealing with Netlink sockets. The Library provides an interface for raw Netlink messaging and varous Netlink family specific interfaces.
Libnl is a library developed to facilitate applications to use the Netlink interface. This library provides a unified interface for original Netlink message transmission and different Netlink family-specific interfaces.
The API of libnl-2.0 is not compatible with libnl-1.0. Your application may break without adjustment of API usage.
Libnl2.0 APIs are not compatible with libnl1.0 APIs. If your application is not adjusted, it may become unavailable.
Note:
Porting libnl1.1 is part of hostapd porting. The libnl library used by hostapd is 1.x. The API of Version 2.0 is incompatible with version 1.0. Therefore, port version 1.1 here, but port 2.0 is the same.
Port:
Development Environment:
Ubuntu 10.04
Arm-Linux-GCC version 4.4.1
Target Environment
Friendly arm mini6410
Linux-2.6.36
Procedure
1. Download libnl1.1 from the official website, decompress it, and run CD To Go To The libnl directory.
2. Run./configure-Prefix =/usr/local/ARM/libnl1.1 to configure the libnl installation path.
3. Execute make cc = arm-Linux-GCC to complete compilation and obtain the libnl library.
4. Run Su, enter the password, log on as the root user, run make install, and install the libnl Library to the/usr/local/ARM/libnl1.1 path.
5. Copy all files under/usr/local/ARM/libnl1.1/lib to the/lib directory of the Development Board to ensure that hostapd runs on the Development Board and the location of the libnl library can be correctly found.
Recommended Website:
Http://www.infradead.org /~ Tgr/libnl/