Skip to content
Permalink
Browse files

net/ipv4: Add a net mgmt event for IPv4 router deletion

There will probably be at some point a way to remove IPv4 router, and
thus it will require such event.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
  • Loading branch information...
tbursztyka authored and jukkar committed May 22, 2019
1 parent b5bcd25 commit b2d95840a5460c3f5c13e78fc25beb3e366a9bc7
Showing with 4 additions and 0 deletions.
  1. +4 −0 include/net/net_event.h
@@ -131,6 +131,7 @@ enum net_event_ipv4_cmd {
NET_EVENT_IPV4_CMD_ADDR_ADD = 1,
NET_EVENT_IPV4_CMD_ADDR_DEL,
NET_EVENT_IPV4_CMD_ROUTER_ADD,
NET_EVENT_IPV4_CMD_ROUTER_DEL,
};

#define NET_EVENT_IPV4_ADDR_ADD \
@@ -142,6 +143,9 @@ enum net_event_ipv4_cmd {
#define NET_EVENT_IPV4_ROUTER_ADD \
(_NET_EVENT_IPV4_BASE | NET_EVENT_IPV4_CMD_ROUTER_ADD)

#define NET_EVENT_IPV4_ROUTER_DEL \
(_NET_EVENT_IPV4_BASE | NET_EVENT_IPV4_CMD_ROUTER_DEL)

/** @endcond */

#ifdef CONFIG_NET_MGMT_EVENT_INFO

0 comments on commit b2d9584

Please sign in to comment.
You can’t perform that action at this time.