fixed some #include and data-type issues

This commit is contained in:
Thomas Ries 2014-09-26 21:37:21 +00:00
parent 80a63f30e3
commit 5a8837077a
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
0.8.2 0.8.2
===== =====
26-Sep-2014: - fixed some #include and data-type issues.
25-May-2014: - PLUGIN_PROCESS_RAW: properly deal with the situation if a 25-May-2014: - PLUGIN_PROCESS_RAW: properly deal with the situation if a
RAW plugin modifies the message lengh. RAW plugin modifies the message lengh.
11-Feb-2013: - plugin_defaulttarget: add "received from" IP to logging 11-Feb-2013: - plugin_defaulttarget: add "received from" IP to logging

View File

@ -19,10 +19,14 @@
*/ */
#include "config.h" #include "config.h"
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/socket.h>
#include <osipparser2/osip_parser.h> #include <osipparser2/osip_parser.h>

View File

@ -125,7 +125,7 @@ typedef struct {
*/ */
typedef struct { typedef struct {
char *raw_buffer; /* raw UDP packet */ char *raw_buffer; /* raw UDP packet */
int raw_buffer_len; /* length of raw data */ size_t raw_buffer_len; /* length of raw data */
osip_message_t *sipmsg; /* SIP */ osip_message_t *sipmsg; /* SIP */
struct sockaddr_in from; /* received from */ struct sockaddr_in from; /* received from */
#define PROTO_UNKN -1 #define PROTO_UNKN -1