Make hash table have comparison callback, it's needed.
[freeradius.git] / src / include / packet.h
1 #ifndef LRAD_PACKET_H
2 #define LRAD_PACKET_H
3
4 /*
5  * packet.h     Structures and prototypes
6  *              for packet manipulation
7  *
8  * Version:     $Id$
9  *
10  *   This program is free software; you can redistribute it and/or modify
11  *   it under the terms of the GNU General Public License as published by
12  *   the Free Software Foundation; either version 2 of the License, or
13  *   (at your option) any later version.
14  *
15  *   This program is distributed in the hope that it will be useful,
16  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *   GNU General Public License for more details.
19  *
20  *   You should have received a copy of the GNU General Public License
21  *   along with this program; if not, write to the Free Software
22  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23  *
24  * Copyright 2001,2002,2003,2004,2005,2006  The FreeRADIUS server project
25  */
26
27 uint32_t lrad_request_packet_hash(const RADIUS_PACKET *packet);
28 uint32_t lrad_reply_packet_hash(const RADIUS_PACKET *packet);
29 int lrad_packet_cmp(const RADIUS_PACKET *a, const RADIUS_PACKET *b);
30 void lrad_request_from_reply(RADIUS_PACKET *request,
31                              const RADIUS_PACKET *reply);
32 int lrad_socket(lrad_ipaddr_t *ipaddr, int port);
33
34 #endif /* LRAD_PACKET_H */