~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/pike/pike_top.c

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
static struct TopListItem_t *top_list_root = 0;
14
14
static struct TopListItem_t *top_list_iter = 0;
15
15
 
16
 
static char buff[128];
 
16
#define PIKE_BUFF_SIZE  128
 
17
static char buff[PIKE_BUFF_SIZE];
17
18
 
18
19
struct TopListItem_t *pike_top_get_root() { return top_list_root; }
19
20
 
20
21
char *pike_top_print_addr( unsigned char *ip, int iplen, char *buff, int buffsize )
21
22
{
22
23
        unsigned short *ipv6_ptr = (unsigned short *)ip;
23
 
        memset( buff, 0, sizeof(buff));
 
24
        memset(buff, 0, PIKE_BUFF_SIZE*sizeof(char));
24
25
        
25
26
        DBG("pike:top:print_addr(iplen: %d, buffsize: %d)", iplen, buffsize);
26
27