]> git.ipfire.org Git - people/ms/rstp.git/blob - bpdu_sock.h
update ignore file
[people/ms/rstp.git] / bpdu_sock.h
1 /*****************************************************************************
2 Copyright (c) 2006 EMC Corporation.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2 of the License, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 more details.
13
14 You should have received a copy of the GNU General Public License along with
15 this program; if not, write to the Free Software Foundation, Inc., 59
16 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 The full GNU General Public License is included in this distribution in the
19 file called LICENSE.
20
21 Authors: Srinivas Aji <Aji_Srinivas@emc.com>
22
23 ******************************************************************************/
24
25 #ifndef BPDU_SOCK_H
26 #define BPDU_SOCK_H
27
28 #include "epoll_loop.h"
29
30 struct ifdata;
31
32 void bpdu_send(struct epoll_event_handler *h, unsigned char *data, int len);
33
34 int bpdu_sock_create(struct epoll_event_handler *h,
35 int if_index, char *name, struct ifdata *ifdata);
36
37 void bpdu_sock_delete(struct epoll_event_handler *h);
38
39 /* Externally provided, we call it */
40 void bpdu_rcv(struct ifdata *ifdata, unsigned char *data, int len);
41
42 #endif