^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2007 Luca Bigliardi (shammash@artha.org).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef __UM_VDE_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define __UM_VDE_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct vde_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) char *vde_switch;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) char *descr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void *args;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void *conn;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct vde_init {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) char *vde_switch;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) char *descr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int port;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) char *group;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int mode;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern const struct net_user_info vde_user_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) extern int vde_user_read(void *conn, void *buf, int len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern int vde_user_write(void *conn, void *buf, int len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #endif