blob: 6e0e891f8a00d0ca52ddcd0ce15b50bce6601c70 [file] [log] [blame]
Jeff Dikecd1ae0e2007-10-16 01:27:29 -07001/*
2 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 * Licensed under the GPL
4 */
5
Jeff Dikecd1ae0e2007-10-16 01:27:29 -07006#ifndef __DAEMON_H__
7#define __DAEMON_H__
8
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#include "net_user.h"
10
11#define SWITCH_VERSION 3
12
13struct daemon_data {
14 char *sock_type;
15 char *ctl_sock;
16 void *ctl_addr;
17 void *data_addr;
18 void *local_addr;
19 int fd;
20 int control;
21 void *dev;
22};
23
Jeff Dike5e7672e2006-09-27 01:50:33 -070024extern const struct net_user_info daemon_user_info;
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
Jeff Dikecd1ae0e2007-10-16 01:27:29 -070026extern int daemon_user_write(int fd, void *buf, int len,
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 struct daemon_data *pri);
28
Jeff Dikecd1ae0e2007-10-16 01:27:29 -070029#endif