summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/interface.h
diff options
context:
space:
mode:
authorMichael Brown2020-12-07 14:49:47 +0100
committerMichael Brown2020-12-07 14:50:24 +0100
commit09fe2bbd343a46010e89d848e5887bfb5fc3f6f6 (patch)
tree7d34c1b508c2cf63a3cc298bb2a2a595134fb243 /src/include/ipxe/interface.h
parent[interface] Ignore any attempts to plug in the null interface (diff)
downloadipxe-09fe2bbd343a46010e89d848e5887bfb5fc3f6f6.tar.gz
ipxe-09fe2bbd343a46010e89d848e5887bfb5fc3f6f6.tar.xz
ipxe-09fe2bbd343a46010e89d848e5887bfb5fc3f6f6.zip
[interface] Provide intf_insert() to insert a filter interface
Generalise the filter interface insertion logic from block_translate() and expose as intf_insert(), allowing a filter interface to be inserted on any existing interface. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/interface.h')
-rw-r--r--src/include/ipxe/interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/interface.h b/src/include/ipxe/interface.h
index 9281aeef5..19f58a4b4 100644
--- a/src/include/ipxe/interface.h
+++ b/src/include/ipxe/interface.h
@@ -169,6 +169,8 @@ extern void intfs_shutdown ( int rc, ... ) __attribute__ (( sentinel ));
extern void intf_restart ( struct interface *intf, int rc );
extern void intfs_vrestart ( va_list intfs, int rc );
extern void intfs_restart ( int rc, ... ) __attribute__ (( sentinel ));
+extern void intf_insert ( struct interface *intf, struct interface *upper,
+ struct interface *lower );
extern void intf_poke ( struct interface *intf,
void ( type ) ( struct interface *intf ) );