]>
git.ipfire.org Git - people/ms/rstp.git/blob - bpdu_sock.h
1 /*****************************************************************************
2 Copyright (c) 2006 EMC Corporation.
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)
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
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.
18 The full GNU General Public License is included in this distribution in the
21 Authors: Srinivas Aji <Aji_Srinivas@emc.com>
23 ******************************************************************************/
28 #include "epoll_loop.h"
32 void bpdu_send(struct epoll_event_handler
*h
, unsigned char *data
, int len
);
34 int bpdu_sock_create(struct epoll_event_handler
*h
,
35 int if_index
, char *name
, struct ifdata
*ifdata
);
37 void bpdu_sock_delete(struct epoll_event_handler
*h
);
39 /* Externally provided, we call it */
40 void bpdu_rcv(struct ifdata
*ifdata
, unsigned char *data
, int len
);