kernel: Add an event kernel interfaces can raise if they create/destroy a TUN device

This commit is contained in:
Tobias Brunner
2013-06-21 17:03:21 +02:00
parent 0d2ad63fe2
commit 4868d1c3bc
3 changed files with 43 additions and 5 deletions
+9 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2006-2012 Tobias Brunner
* Copyright (C) 2006-2013 Tobias Brunner
* Copyright (C) 2006 Daniel Roethlisberger
* Copyright (C) 2005-2006 Martin Willi
* Copyright (C) 2005 Jan Hutter
@@ -561,6 +561,14 @@ struct kernel_interface_t {
*/
void (*roam)(kernel_interface_t *this, bool address);
/**
* Raise a tun event.
*
* @param tun TUN device
* @param created TRUE if created, FALSE if going to be destroyed
*/
void (*tun)(kernel_interface_t *this, tun_device_t *tun, bool created);
/**
* Register a new algorithm with the kernel interface.
*