1 /*****************************************************************************
2 * Copyright 2005 Daniel Ferullo *
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 *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
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. *
16 *****************************************************************************/
20 * @author Daniel Ferullo (ferullo@cmu.edu)
22 * @brief prototypes for functions that aid in sniffing packets
28 #include "errorcodes.h"
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
);
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__ */