[Openh323gk-developer] Toolkit::RouteTable::GetLocalAddress() ERROR
H.323 Gatekeeper for VoIP and videconferencing
Brought to you by:
willamowius
From: <h3...@ke...> - 2002-11-08 13:52:07
|
Hi all ! Function Toolkit::RouteTable::GetLocalAddress can return correct value only for interfaces like eth0,eth1,lo0.... But when it use ppp0 interfaces or use pppoe - it have error on it (sample on systems that have default route over ppp0 interface). Function Toolkit::RouteTable::GetLocalAddress call "find_if" that use "RouteEntry::Compare" to compare value with different interfaces... As result of debugging "RouteEntry::Compare" was found that route table have correct "network" values for all interfaces but not for ppp0 interface. Correct sample: eth0 IP: 192.168.7.5 Mask: 255.255.255.0 Network: 192.168.7.0 GnuGK problem sample: ppp0 IP: 192.168.8.1 Mask: 255.255.255.255 Network: 192.168.9.122 Must be: ppp0 IP: 192.168.8.1 Mask: 255.255.255.255 Network: 192.168.8.1 As result "network" is not filled as "192.168.8.1" (result of logical "and" for value IP and value MASK). It is incorrectly filled with IP of remote end of PPP connection. As 2nd result "RouteEntry::Compare" can not correct compare for ppp interfrace because table is not correctly initialized. Sample if ppp connection that have problem with GnuGK: local ip: 192.168.8.1 remote ip: 192.168.9.122 mask: 255.255.255.255 Please help ! Where is problem ? In GnuGK ? In PWLIB ? Some where else ? Thanks ! |