summaryrefslogtreecommitdiff
path: root/src/interface-map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface-map.c')
-rw-r--r--src/interface-map.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/interface-map.c b/src/interface-map.c
index aef697e..44ece42 100644
--- a/src/interface-map.c
+++ b/src/interface-map.c
@@ -290,3 +290,16 @@ int interface_map_dumpdot(struct interface_map *index)
return 0;
}
+
+struct interface_map_entry *
+interface_map_inherit_entry(struct interface_map *map,
+ struct interface_map_entry *entry)
+{
+ struct interface_map_entry *res = NULL;
+
+ if ((entry != NULL) &&
+ (entry->inherit_idx != -1)) {
+ res = &map->entries[entry->inherit_idx];
+ }
+ return res;
+}