summaryrefslogtreecommitdiffstats
path: root/src/rtnl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtnl.c')
-rw-r--r--src/rtnl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index 1092c81..5ccb272 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -193,6 +193,15 @@ int rtnl_receive(struct rtnl_handle *rtnl_handle)
return 1;
}
+int rtnl_receive_multi(struct rtnl_handle *rtnl_handle)
+{
+ while (1) {
+ if (rtnl_receive(rtnl_handle) <= 0)
+ break;
+ }
+ return 1;
+}
+
/* rtnl_open - constructor of rtnetlink module */
struct rtnl_handle *rtnl_open(void)
{