4
* Portions Copyright (C) 2013 Crocodile RCS Ltd
6
* Based on "ser_stun.h". Copyright (C) 2001-2003 FhG Fokus
8
* This file is part of Kamailio, a free SIP server.
10
* Kamailio 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
15
* Kamailio 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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31
/* type redefinition */
32
typedef unsigned char UCHAR_T;
33
typedef unsigned short USHORT_T;
34
typedef unsigned int UINT_T;
35
typedef unsigned long ULONG_T;
37
#define MAGIC_COOKIE 0x2112A442
38
#define TRANSACTION_ID 12
40
struct transaction_id {
42
UCHAR_T id[TRANSACTION_ID];
48
struct transaction_id id;
56
typedef struct stun_event_info {
59
struct receive_info *rcv;
62
int stun_process_msg(char* buf, unsigned int len, struct receive_info* ri);