History

ipv6: add inet6_rt_del_notify()

Move the body of inet6_rt_notify() to __inet6_rt_notify() and give it the deletion reason. inet6_rt_notify() keeps its prototype, so the route addition path does not change. Add inet6_rt_del_notify() and call it from fib6_del_route(). RTA_DEL_REASON now reaches user space on RTM_DELROUTE for routes the kernel deleted on its own.

Yuyang Huang committed 3 months ago

Commit 09f19ce1 parent 1e6a83a3 files · +19 −5Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/net/ip6_fib.h+2−0
@@ -533,6 +533,8 @@ static inline void fib6_rt_update(struct net *net, struct fib6_info *rt, · 532 unmodified lines
533#endif533#endif
534void inet6_rt_notify(int event, struct fib6_info *rt, struct nl_info *info,534void inet6_rt_notify(int event, struct fib6_info *rt, struct nl_info *info,
535 unsigned int flags);535 unsigned int flags);
536void inet6_rt_del_notify(struct fib6_info *rt, struct nl_info *info,
537 enum rt_del_reason del_reason);
536 538
537void fib6_age_exceptions(struct fib6_info *rt, struct fib6_gc_args *gc_args,539void fib6_age_exceptions(struct fib6_info *rt, struct fib6_gc_args *gc_args,
538 unsigned long now);540 unsigned long now);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t