tunctl: -g (group permission) and -n added (TUN instead of TAP).
[vde.git] / ipn / ipn_chrdev.h
blob1f2e181439ff03e5ea94ebbeb2706a8188e0acc0
1 #ifndef _IPN_CHRDEV_H
2 #define _IPN_CHRDEV_H
3 /*
4 * Inter process networking (virtual distributed ethernet) module
5 * Char device support
7 * Copyright (C) 2009 Renzo Davoli (renzo@cs.unibo.it)
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * Due to this file being licensed under the GPL there is controversy over
15 * whether this permits you to write a module that #includes this file
16 * without placing your module under the GPL. Please consult a lawyer for
17 * advice before doing this.
19 * WARNING: THIS CODE IS ALREADY EXPERIMENTAL
22 #include "af_ipn.h"
24 /* register a chr device range for this ipn network */
25 int ipn_register_chrdev(struct ipn_network *ipnn, struct chrdevreq *devr);
26 /* unregister the chr device of this ipn network */
27 int ipn_deregister_chrdev(struct ipn_network *ipnn);
28 /* set/unset persistence */
29 int ipn_chrdev_persistence(struct ipn_network *ipnn, int persistent);
30 /* test persistence */
31 int ipn_is_persistent_chrdev(struct ipn_network *ipnn);
32 /* search which ipn network registered a chr device */
33 struct ipn_network *ipn_find_chrdev(struct chrdevreq *devr);
35 #endif