chiark / gitweb /
peer, tunnels: New file-descriptor opening interface.
[tripe] / server / tun-slip.c
index d405cc49f41075fcaa8f0c0b9030b664b60a08db..4afef753d9ef43fc388fd2e9cd1903fbde566f25 100644 (file)
@@ -246,6 +246,7 @@ whine:
 /* --- @t_create@ --- *
  *
  * Arguments:  @peer *p@ = pointer to peer block
+ *             @int fd@ = file descriptor of tunnel device (unused)
  *             @char **ifn@ = where to put the interface name
  *
  * Returns:    A tunnel block if it worked, or null on failure.
@@ -253,7 +254,7 @@ whine:
  * Use:                Initializes a new tunnel.
  */
 
-static tunnel *t_create(peer *p, char **ifn)
+static tunnel *t_create(peer *p, int fd, char **ifn)
 {
   slipif *sl = 0;
   int pin[2] = { -1, -1 }, pout[2] = { -1, -1 };
@@ -440,6 +441,7 @@ static void t_destroy(tunnel *t)
 const tunnel_ops tun_slip = {
   "slip",
   t_init,
+  0,
   t_create,
   t_setifname,
   t_inject,