add winpcap 4.0.2 from url http://www.winpcap.org/
[natblaster.git] / src / peer / sniff.h
blob001b8c5b979105890d605f2c0a7c6575bbff20c0
1 /*****************************************************************************
2 * Copyright 2005 Daniel Ferullo *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 *****************************************************************************/
18 /**
19 * @file sniff.h
20 * @author Daniel Ferullo (ferullo@cmu.edu)
22 * @brief prototypes for functions that aid in sniffing packets
25 #ifndef __SNIFF_H__
26 #define __SNIFF_H__
28 #include "errorcodes.h"
29 #include "peerdef.h"
31 /**
32 * @brief finds a syn sent from the peer to the buddy, and puts it into the
33 * correct location in the peer_conn_info_t structure
35 * @param info pointer to the peer_conn_info_t structure
37 * @return SUCCESS, errorcode on failure
39 errorcode capture_peer_to_buddy_syn(peer_conn_info_t *info);
41 /**
42 * @brief finds a synack that was a part of a bday flood by the buddy
44 * @param info a pointer to the peer_conn_info_t structure
46 * @return SUCCESS, errorcode on failure
48 errorcode capture_flooded_synack(peer_conn_info_t *info);
50 #endif /* __SNIFF_H__ */