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

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

 



On 07/07/2008 17:18, Benny Prijono wrote:
> On Mon, Jul 7, 2008 at 3:51 PM, Filippo Zangheri <filippo.zangheri at yahoo.it>
> wrote:
> 
>> Benny,
>>
>> I've reached desired behaviour (I guess that's desired behaviour!) by
>> adding the NULL check already mentioned and commenting out the loopback
>> address check a few lines below:
>>
>>  if (it->ifa_flags & IFF_LOOPBACK) {
>>
> 
> 
> Sorry I don't get you. Isn't it that even with this check is in place, you
> would still get "127.0.0.1" address returned by if_enum_by_af()?

No, I don't get loopback address returned by if_enum_by_af() when that check
is in place and when ppp connection is active. I mean, with the check in place:

 1. ppp on

  15:37:52.525 stateful_proxy Local host aliases:
  15:37:52.525 stateful_proxy  82.59.213.185:5060
  15:37:52.525 stateful_proxy  192.168.2.20:5060
  15:37:52.525 stateful_proxy  asus-laptop:5060
  15:37:52.525 stateful_proxy  localhost:5060

 2. ppp off

  15:40:29.949 stateful_proxy Local host aliases:
  15:40:29.949 stateful_proxy  127.0.0.1:5060
  15:40:29.949 stateful_proxy  asus-laptop:5060
  15:40:29.949 stateful_proxy  localhost:5060


But if I remove that check, I get:

 1. ppp on

  17:31:32.313 stateful_proxy  82.59.213.185:5060
  17:31:32.313 stateful_proxy  127.0.0.1:5060 <--- This was missing with check in place
  17:31:32.313 stateful_proxy  192.168.2.20:5060
  17:31:32.313 stateful_proxy  asus-laptop:5060
  17:31:32.313 stateful_proxy  localhost:5060
 
 2. ppp off

  15:39:34.583 stateful_proxy Local host aliases:
  15:39:34.583 stateful_proxy  127.0.0.1:5060
  15:39:34.583 stateful_proxy  asus-laptop:5060
  15:39:34.583 stateful_proxy  localhost:5060


So, that's ok. Isn't it?


> Thinking about the NULL address again, I think probably that's a valid
> behavior for "ppp" interface, e.g. during initial negotiation and when IP
> address is not assigned yet. So I'm not sure if this is a Linux bug.

I made my tests only when ppp0 had an assigned address, obviously. :p


> And regarding the duplicate interfaces that you reported, probably that's
> because of IPv6 address?

No, I have IPv6 disabled in kernel.

$ zcat /proc/config.gz | grep IPV6
# CONFIG_IPV6 is not set


Thanks.
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/f533af2d/attachment.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