X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/19dd2531cafe84927c845e548ec68587007f3ab2..179d81291e52ac1a163f404adaaa6b156aace11e:/server/tripe.h diff --git a/server/tripe.h b/server/tripe.h index 66fb091d..5f00718d 100644 --- a/server/tripe.h +++ b/server/tripe.h @@ -269,8 +269,10 @@ struct peer; typedef struct tunnel_ops { const char *name; /* Name of this tunnel driver */ void (*init)(void); /* Initializes the system */ - tunnel *(*create)(struct peer */*p*/); /* Initializes a new tunnel */ - const char *(*ifname)(tunnel */*t*/); /* Returns tunnel's interface name */ + tunnel *(*create)(struct peer */*p*/, char **/*ifn*/); + /* Initializes a new tunnel */ + void (*setifname)(tunnel */*t*/, const char */*ifn*/); + /* Notifies ifname change */ void (*inject)(tunnel */*t*/, buf */*b*/); /* Sends packet through if */ void (*destroy)(tunnel */*t*/); /* Destroys a tunnel */ } tunnel_ops;