[mpls-linux-general] ldp_zebra
Status: Beta
Brought to you by:
jleu
|
From: Vincent J. <ja...@en...> - 2001-07-05 19:03:09
|
Hi
I have been testing ldp_linux with success in a very simple case that is
described in the README.
1/ the sessions was opened between LSR
2/ the advertisement messages are sent to open LSP
I have tried ldp_zebra with the same configuration.
1/ the discovery messages are sent and the LSR detect the peers.
2/ The TCP session is not opened.
3/ then the advertisement messages cannot be sent and therefore the LSPs
cannot be opened.
Who had some successful tests with ldp_zebra in order to open the LSPs and to
initiate the FECs ?
Vincent
PS: I have been looking for a long time to find a segmentation fault in
ldp_zebra.
The fix is to break the last loop of ldp_socket_udp_recvfrom :
int
ldp_socket_udp_recvfrom(ldp_socket_mgr_handle handle,
ldp_socket_handle socket, uint8_t * buffer, int size, ldp_dest * from)
{
...
}
} else { /* not p2p */
LIST_LOOP(iff->ads, c, n2) {
tmp.s_addr = 0;
masklen2ip(c->address->prefixlen, &tmp);
if ((((struct sockaddr_in *)&addr)->sin_addr.s_addr & tmp.s_addr) ==
(c->address->u.prefix4.s_addr & tmp.s_addr)) {
from->if_handle = (ldp_if_handle) iff;
break;
}
if (n2 == (void *)0xffffffff) {
break; // !?!?! XXX <--- FIX But n2 should be NULL. I did not
// figure out where the element is set to 0xfff...
// This fix might works only for me.
}
}
}
}
return retval;
}
|