Re[2]: binding to particular IP on multi-ip machine failed with 2.2.0

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

 



Hi Michal,

just tested this for 2.2.1 on FreeBSD 4.10, works fine.



Best regards,
 Aivis                            mailto:aivis@xxxxxxxxxxxxxxxx

ZM> Aivis,

ZM> the problem is that SetGkHome in 2.2.0 requires that IPs
ZM> specified through the Home config variable are present
ZM> in the interface table, otherwise they are removed. I'd recommend
ZM> commenting out the following code fragment in Toolkit.cxx:

if (size >> 0) {
ZM>    // check if the interface is valid
ZM>    for (n = 0; n < size; ++n) {
ZM>     for (i = 0; i < is; ++i)
ZM>      if (m_GKHome[n] == it[i].GetAddress())
ZM>       break;
ZM>     if (i == is) {
ZM>      begin = m_GKHome.begin();
ZM>      copy(begin + n + 1, begin + size, begin + n);
ZM>      --size, --n;
ZM>     }
ZM>    }
ZM>   } 

ZM> and see how it works.

ZM> Now I see two possible solutions:
ZM> 1. Don't validate Home IPs.
ZM> 2. Parse somehow route table to detect IP aliases.
ZM>     But here I have a few doubts how to be sure that
ZM>     a given IP is really an alias (is it enough to check
ZM>     that netmask is 0xffffffff?).

ZM> ----- Original Message ----- 
ZM> From: "Aivis Olsteins" <aivis@xxxxxxxxxxxxxxxx>
ZM> Sent: Thursday, December 16, 2004 5:11 PM


>> here is output from netif:
>> 
>> # ./netif
>> Net Test Utility
>> 
>> The interface table has 2 entries
>> 0 sis0 10.1.156.186 255.255.255.0 .
>> 1 lo0 127.0.0.1 255.0.0.0 .
>> 
>> The route table has 29 entries
>> 0 0.0.0.0 0.0.0.0 10.1.156.1 sis0 0.
>> 1 10.1.156.0 255.255.255.0 0.0.0.0 sis0 0.
>> 2 10.1.156.110 255.255.255.255 0.0.0.0 sis0 0.
>> 3 10.1.156.111 255.255.255.255 0.0.0.0 sis0 0.
>> 4 10.1.156.112 255.255.255.255 0.0.0.0 sis0 0.
>> 5 10.1.156.113 255.255.255.255 0.0.0.0 sis0 0.
>> 6 10.1.156.115 255.255.255.255 0.0.0.0 sis0 0.
>> 7 10.1.156.116 255.255.255.255 0.0.0.0 sis0 0.
>> 8 10.1.156.117 255.255.255.255 0.0.0.0 sis0 0.
>> 9 10.1.156.118 255.255.255.255 0.0.0.0 sis0 0.
>> 10 10.1.156.121 255.255.255.255 0.0.0.0 sis0 0.
>> 11 10.1.156.123 255.255.255.255 0.0.0.0 sis0 0.
>> 12 10.1.156.125 255.255.255.255 0.0.0.0 sis0 0.
>> 13 10.1.156.126 255.255.255.255 0.0.0.0 sis0 0.
>> 14 10.1.156.128 255.255.255.255 0.0.0.0 sis0 0.
>> 15 10.1.156.176 255.255.255.255 0.0.0.0 sis0 0.
>> 16 10.1.156.178 255.255.255.255 0.0.0.0 sis0 0.
>> 17 10.1.156.179 255.255.255.255 0.0.0.0 sis0 0.
>> 18 10.1.156.180 255.255.255.255 0.0.0.0 sis0 0.
>> 19 10.1.156.182 255.255.255.255 0.0.0.0 sis0 0.
>> 20 10.1.156.183 255.255.255.255 0.0.0.0 sis0 0.
>> 21 10.1.156.190 255.255.255.255 0.0.0.0 sis0 0.
>> 22 127.0.0.1 255.255.255.255 127.0.0.1 lo0 0.
>> 23 0.0.0.0 255.255.255.255 0.0.0.0 lo0 0.
>> 24 0.0.0.0 255.255.255.255 0.0.0.0 sis0 0.
>> 25 0.0.0.0 255.255.255.255 0.0.0.0 lo0 0.
>> 26 0.0.0.0 255.255.255.255 0.0.0.0 lo0 0.
>> 27 0.0.0.0 255.255.255.255 0.0.0.0 sis0 0.
>> 28 0.0.0.0 255.255.255.255 0.0.0.0 lo0 0.
>> 
>> Default gateway is 10.1.156.1
>> 
>> Gateway is on sis0
>> 
>> regards, Aivis



ZM> -------------------------------------------------------
ZM> SF email is sponsored by - The IT Product Guide
ZM> Read honest & candid reviews on hundreds of IT Products from real users.
ZM> Discover which products truly live up to the hype. Start reading now. 
ZM> http://productguide.itmanagersjournal.com/

ZM> _______________________________________________________

ZM> List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
ZM> Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
ZM> Homepage: http://www.gnugk.org/




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux