Skip Menu |

This queue is for tickets about the Net-BGP CPAN distribution.

Report information
The Basics
Id: 38247
Status: open
Worked: 5 min
Priority: 0/
Queue: Net-BGP

People
Owner: kbrint [...] rufus.net
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.10
Fixed in: (no value)



Subject: BGP not listening or connecting on Windows XP 5.8.8
Simple 'empty' code to establish a peer with a router doesn't connect, and doesn't listen (verified with TCPView and netstat) when using ActiveState build 822 on Windows XP, but does work with 5.8.8 on FreeBSD 6-STABLE. The timer callback gets called, and nothing appears to fail, but no networking happens either. The router in question is a Dynagen-emulated Cisco 7200, but I can't see how that would stop Net::BGP from listening (how would it know at that point?) Here's my sample code: my $bgp = Net::BGP::Process->new( ListenAddr => "192.168.1.1", Port => "179" ); my $peer = new Net::BGP::Peer( Start => 1, Listen => 1, ThisID => '192.168.1.1', ThisAS => 64512, PeerID => '192.168.1.2', PeerAS => 64513 ); $peer->add_timer(\&my_timer_callback, 5); $peer->set_error_callback(\&my_error_callback); $peer->set_open_callback(\&my_open_callback); $peer->set_update_callback(\&my_update_callback); $peer->set_notification_callback(\&my_notification_callback); $bgp->add_peer($peer); print "Starting BGP event loop.\n"; $bgp->event_loop(); print "Finished BGP event loop.\n"; sub my_timer_callback { print "TICK\n"; return 1;} sub my_update_callback { print "UPDATE\n"; return 1;} sub my_notify_callback { print "NOTIFY\n"; return 1;} sub my_open_callback { print "OPEN\n"; return 1; } sub my_reset_callback { print "RESET\n"; return 1;} sub my_refresh_callback { print "REFRESH\n"; return 1;}
Subject: Re: BGP not listening or connecting on Windows XP 5.8.8
On Wed Aug 06 10:17:58 2008, howie@thingy.com wrote: Show quoted text
> Simple 'empty' code to establish a peer with a router doesn't connect, > and doesn't listen (verified with TCPView and netstat) when using > ActiveState build 822 on Windows XP, but does work with 5.8.8 on FreeBSD > 6-STABLE.
Thank you for your bug report.. It will be difficult for me to reproduce a Windows Perl environment... Can you verify whether earlier versions of Net::BGP exhibit the same behavior in your environment? That would be very helpful. Thanks. kevin