Re: 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]

 



Aivis,

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

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


and see how it works.

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

----- Original Message ----- From: "Aivis Olsteins" <aivis@xxxxxxxxxxxxxxxx>
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



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


_______________________________________________________

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