1 | /* |
---|
2 | * Copyright (C) 2005, 2006 Mike Wray <mike.wray@hp.com> |
---|
3 | * |
---|
4 | * This program is free software; you can redistribute it and/or modify |
---|
5 | * it under the terms of the GNU General Public License as published by the |
---|
6 | * Free Software Foundation; either version 2 of the License, or (at your |
---|
7 | * option) any later version. |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, but |
---|
10 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
---|
11 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
---|
12 | * for more details. |
---|
13 | * |
---|
14 | * You should have received a copy of the GNU General Public License along |
---|
15 | * with this program; if not, write to the Free software Foundation, Inc., |
---|
16 | * 59 Temple Place, suite 330, Boston, MA 02111-1307 USA |
---|
17 | * |
---|
18 | */ |
---|
19 | #ifndef _VNET_FORWARD_H_ |
---|
20 | #define _VNET_FORWARD_H_ |
---|
21 | |
---|
22 | #include <if_varp.h> |
---|
23 | |
---|
24 | struct sk_buff; |
---|
25 | struct IOStream; |
---|
26 | |
---|
27 | extern int vnet_peer_add(struct VarpAddr *addr, uint16_t port); |
---|
28 | extern int vnet_peer_del(struct VarpAddr *addr); |
---|
29 | extern void vnet_peer_print(struct IOStream *io); |
---|
30 | |
---|
31 | extern int vnet_forward_send(struct sk_buff *skb); |
---|
32 | extern int vnet_forward_recv(struct sk_buff *skb); |
---|
33 | extern int vnet_forward_init(void); |
---|
34 | extern void vnet_forward_exit(void); |
---|
35 | |
---|
36 | #endif /* _VNET_FORWARD_H_ */ |
---|