aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tun.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tun.h b/lib/tun.h
index 8fa1c61..67ef39d 100644
--- a/lib/tun.h
+++ b/lib/tun.h
@@ -61,6 +61,8 @@ struct tun_t {
int routes; /* One if we allocated an automatic route */
char devname[IFNAMSIZ]; /* Name of the tun device */
int (*cb_ind) (struct tun_t * tun, void *pack, unsigned len);
+ /* to be used by libgtp callers/users (to attach their own private state) */
+ void *priv;
};
extern int tun_new(struct tun_t **tun);