Jeff Dike | cd1ae0e | 2007-10-16 01:27:29 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
Jeff Dike | cd1ae0e | 2007-10-16 01:27:29 -0700 | [diff] [blame] | 6 | #ifndef __DAEMON_H__ |
| 7 | #define __DAEMON_H__ |
| 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | #include "net_user.h" |
| 10 | |
| 11 | #define SWITCH_VERSION 3 |
| 12 | |
| 13 | struct 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 Dike | 5e7672e | 2006-09-27 01:50:33 -0700 | [diff] [blame] | 24 | extern const struct net_user_info daemon_user_info; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
Jeff Dike | cd1ae0e | 2007-10-16 01:27:29 -0700 | [diff] [blame] | 26 | extern int daemon_user_write(int fd, void *buf, int len, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | struct daemon_data *pri); |
| 28 | |
Jeff Dike | cd1ae0e | 2007-10-16 01:27:29 -0700 | [diff] [blame] | 29 | #endif |