stateful_proxy-i686-pc-linux-gnu: segmentation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/07/2008 16:09, Benny Prijono wrote:
> ...
> 
> Thanks for the info, I've added the NULL check in the SVN.

I'm happy to contribute to this great project!


> Yeah I think it's probaby better to report this to the "authority" (not sure
> whom that will be). :)

Sure, but I'd be glad to know that I'm not the only one who experiences this
behaviour. Anyway I'm going to report it as soon as possible.

Further investigating, I've written a very simple program that lists network
interfaces:

#include <stdio.h>
#include <net/if.h>
#include <ifaddrs.h>

int main()
{
    struct ifaddrs *ifap = NULL;

    if (getifaddrs(&ifap) != 0) {
        fprintf(stdout, "getifaddrs() error\n");
        return 1;
    }
    
    for (; ifap != NULL; ifap = ifap->ifa_next)
        fprintf(stdout, "name: %s,\tifa_addr: %u \n", ifap->ifa_name, (unsigned)ifap->ifa_addr);

    return 0;
}

The result is as follows:

1. ppp connection enabled

name: lo,       ifa_addr: 134522340 
name: eth0,     ifa_addr: 134522472 
name: wmaster0, ifa_addr: 134522604 
name: wlan0,    ifa_addr: 134522736 
name: ppp0,     ifa_addr: 0 
name: lo,       ifa_addr: 134523000 
name: wlan0,    ifa_addr: 134523132 
name: ppp0,     ifa_addr: 134523264

The list of interfaces is somewhat buggy and redundant!


2. ppp connection disabled

name: lo,       ifa_addr: 134522012 
name: eth0,     ifa_addr: 134522144 
name: wmaster0, ifa_addr: 134522276 
name: wlan0,    ifa_addr: 134522408 
name: lo,       ifa_addr: 134522540


This is not of specific interest for this list.. Just to let you know! :)

Thank you.
Best regards.

-- 
Filippo Zangheri

GPG key ID: 0x6C1F2F2F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080707/14728bbc/attachment-0001.bin 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux