[Xorp-hackers] gre tunnel problem
Zealot
zealot0630 at gmail.com
Wed Feb 20 22:26:43 PST 2008
I'm using Debian 2.6.22-3-686 and the gre tunnel is automatically add by ifupdown.
And this is corresponding configuration in interface file.
auto photo-cz-tele
iface photo-cz-tele inet manual
up ip tunnel add photo-cz-tele mode gre remote xxx.xxx.xxx.xxx local yyy.yyy.yyy.yyy ttl 64
up ip link set photo-cz-tele up
up ip addr add 192.168.82.29/32 peer 192.168.82.30/32 dev photo-cz-tele
up ip link set photo-cz-tele multicast on
down ip addr del 192.168.82.29/32 peer 192.168.82.30/32 dev photo-cz-tele
down ip link set photo-cz-tele down
down ip tunnel del photo-cz-tele mode gre remote xxx.xxx.xxx.xxx local yyy.yyy.yyy.yyy ttl 64
Pavlin Radoslavov wrote:
> Zealot <zealot0630 at gmail.com> wrote:
>
>> Hi, all:
>> Xorp seems can not get ip address from p2p interface. There is a patch to fix this.
>> It may cause some other problem, but at least it works
>
> Yes, this is a bug, and your solution appears correct.
> Applied in CVS:
> xorp/fea/data_plane/ifconfig/ifconfig_parse_netlink_socket.cc
> rev. 1.16
>
> BTW, what program and command did you use to create the p2p tunnel
> and to trigger the problem? This piece of information could be
> useful for future testing of the p2p cases.
>
> Thanks,
> Pavlin
>
>> --- xorp-1.5~cvs.20080128.orig/fea/data_plane/ifconfig/ifconfig_parse_netlink_socket.cc
>> +++ xorp-1.5~cvs.20080128/fea/data_plane/ifconfig/ifconfig_parse_netlink_socket.cc
>> @@ -688,7 +688,7 @@
>> if (vifp->point_to_point()) {
>> if ((rta_array[IFA_ADDRESS] != NULL) && !is_ifa_address_reassigned) {
>> if (rta_array[IFA_ADDRESS] != NULL) {
>> - if (nlm_decode_ipvx_address(family, rta_array[IFA_BROADCAST],
>> + if (nlm_decode_ipvx_address(family, rta_array[IFA_ADDRESS],
>> peer_addr, has_peer_addr,
>> error_msg)
>> != XORP_OK) {
>>
>> _______________________________________________
>> Xorp-hackers mailing list
>> Xorp-hackers at icir.org
>> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
More information about the Xorp-hackers
mailing list