net: sockets: mgmt: Add AF_NET_MGMT address family support
Allow application to listen network management events using BSD socket API. Application needs to create the socket using AF_NET_MGMT address family. At this point we only support receiving network management events that the network subsystem is sending. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
02b3826fa0
commit
c0d6831bc0
5 changed files with 483 additions and 5 deletions
|
@ -44,13 +44,15 @@ extern "C" {
|
|||
#define PF_INET6 2 /**< IP protocol family version 6. */
|
||||
#define PF_PACKET 3 /**< Packet family. */
|
||||
#define PF_CAN 4 /**< Controller Area Network. */
|
||||
#define PF_NET_MGMT 5 /**< Network management info. */
|
||||
|
||||
/* Address families. */
|
||||
#define AF_UNSPEC PF_UNSPEC /**< Unspecified address family. */
|
||||
#define AF_INET PF_INET /**< IP protocol family version 4. */
|
||||
#define AF_INET6 PF_INET6 /**< IP protocol family version 6. */
|
||||
#define AF_PACKET PF_PACKET /**< Packet family. */
|
||||
#define AF_CAN PF_CAN /**< Controller Area Network. */
|
||||
#define AF_UNSPEC PF_UNSPEC /**< Unspecified address family. */
|
||||
#define AF_INET PF_INET /**< IP protocol family version 4. */
|
||||
#define AF_INET6 PF_INET6 /**< IP protocol family version 6. */
|
||||
#define AF_PACKET PF_PACKET /**< Packet family. */
|
||||
#define AF_CAN PF_CAN /**< Controller Area Network. */
|
||||
#define AF_NET_MGMT PF_NET_MGMT /**< Network management info. */
|
||||
|
||||
/** Protocol numbers from IANA/BSD */
|
||||
enum net_ip_protocol {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue