Hi Daniel,
+
+/*
+ * Tie the table number to interface index number, substract 1 because
+ * indexes are > 0
+ */
+static uint32_t get_table_id(int ifindex)
+{
+ const uint32_t value = ('c' << 24) | ('m' << 16) | ('a' << 8) | 'n';
+
+ return value + ifindex - 1;
+}
Don't introduce
From: Jukka Rissanen
---
src/connman.h | 2 ++
src/inet.c| 77 +++
2 files changed, 79 insertions(+)
diff --git a/src/connman.h b/src/connman.h
index df24f1e..2617718 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -191,6 +191,8 @@