| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
- aspath_gettoken(): use as_t to fix 4-byte ASN scanning (bug #484)
- set_aspath_prepend_cmd(): use CMD_AS_RANGE in message to match
actual range
- no_set_aspath_prepend_val_cmd(): idem
- set_aspath_exclude_cmd(): idem
- no_set_aspath_exclude_val_cmd(): idem
|
|
|
|
|
|
|
|
| |
The attached patch was already posted to the list once (thanks to
whoever found it first). However, it never made it into the code
base. It is a severe to critical bug affecting community deletions on
64-bit machines and is bug #515 in bugzilla.
|
| |
|
|
|
|
|
| |
Check result of daemon() call to fix warning
Make local variables static
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This table should be read-only.
Also, comment out some unused code.
|
| |
|
| |
|
|
|
|
| |
The finite state machine table is immutable.
|
|
|
|
|
| |
Message lists can be read-only, and hash tables are local to this
code.
|
|
|
|
| |
Fix printf format warning and make capability table 'const static'
|
|
|
|
| |
Save a little code, getaddrinfo hint can be static initialized.
|
|
|
|
|
|
| |
It is possible on BGP shutdown for routes to finish clearing while
peer is waiting deletion. Therefore the assertion check in bgp_clear_route
can be deleted.
|
|
|
|
|
|
|
|
|
| |
Bug 3436
Add reference counting on BGP structure. Don't free BGP instance until
all peer's are deleted.
Fix memory leak where self reference created but never freed
|
|
|
|
| |
This reverts commit 732ebcdfad6e3a786386e38a126c84477d192105.
|
|
|
|
|
|
| |
Bugfix 3436
Wait for all items in the peer clear queue to finish before
deleting BGP instance.
|
|
|
|
| |
These variables are const.
|
|
|
|
|
| |
bgp_terminate is used when process SIGHUP, clear workqueue references
after freeing them.
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, when accepting the connection, it can be left as zombie,
when the peer just initiates a connection, but never sends data (and
the TCP connection end packets are lost). This happens because for
accepted connections a temporary new peer entry is created until OPEN
message is exchanged, and this temporary peer entry does not get the
hold time parameter set at all.
Signed-off-by: Timo Teras <timo.teras@iki.fi>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bgpd/bgp_damp.c: Make bgp_damp_reuse_time_vty() accept a buffer and
length, rather than returning a local var buffer whose contents can get
trounced. Remove duplicate BGP_UPTIME_LEN define.
* bgpd/bgp_damp.h: bgp_damp_reuse_time_vty() prototype change.
* bgpd/bgp_route.c: Provide bgp_damp_reuse_time_vty() with a buffer and
length. Remove duplicate BGP_UPTIME_LEN define.
This problem was noticed in 2005...
http://hibernia.jakma.org/~paul/patches/quagga-test.diff
...but the fix didn't make it into the code.
Signed-off-by: Chris Caputo <ccaputo at alt.net>
|
|
|
|
|
| |
Compiled on 32-bit and 64-bit linux gcc 4.1.2 platforms.
No run-time testing on 32-bit and limited run-time testing on 64-bit.
|
|
|
|
|
|
|
|
| |
Based on:
[bgpd] AS4 bugfix by Chris Caputo <ccaputo@alt.net>
* bgpd/bgp_aspath.c: (aspath_make_str_count) "assert (len < str_size)" was
getting hit under certain 4-byte ASN conditions. New realloc strategy.
|
|
|
|
|
| |
"%d" -> "%u" 4-byte ASN corrections. Prevent negative number when ASN is
above 2^31.
|
| |
|
|
|
|
| |
Simple conversion of XMALLOC/memset to XCALLOC
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
Use Ansi-C prototypes rather than old K&R method of declaring
function without arguments
|
| |
| |
| |
| | |
A couple more trivial optimization.
|
|\|
| |
| |
| |
| |
| | |
Conflicts:
lib/checksum.c
|
| |
| |
| |
| |
| |
| |
| |
| | |
* bgp_vty.c: (show_bgp_views_cmd) new command to list all defined
views.
(with small edits by Paul Jakma)
Signed-off-by: Paul Jakma <paul@quagga.net>
|
|\ \
| | |
| | |
| | | |
Merge in current upstream version of quagga.
|
| |\|
| | |
| | |
| | | |
Resolve all conflicts by using upstream version.
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* bgpd/bgp_packet.c: (bgp_open_receive) Try fix the little race in the FSM,
where a accept-peer that progress faster than realpeer gets closed down if
realpeer is still just in Connect, by allowing the realpeer to be
bgp_stop'ed and doing the regular swapping-of-FSM state.
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | | |
* bgp_route.c: (show_ip_bgp_view_rsclient_route_cmd) Add the missing "ip"
to the command string.
Signed-off-by: Paul Jakma <paul@quagga.net>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* bgp_packet.c: (bgp_open_receive) the accept-peer hack can sometimes
cause a race between two peers that try to establish sessions to each other,
causing session setup to fail when it should have succeeded. In the worst
case, the race can 'loop', causing prolonged failure to establish sessions.
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* lib/command.h: Add a RESTRICTED_NODE, intended for use with
anonymous, 'no login' vtys, to provide a subset of 'view' mode
commands.
* lib/command.c: Add RESTRICTED_NODE bits, nothing special, just
following VIEW_NODE.
* lib/vty.c: (vty_auth) enable authentication should fall back to
restricted/view node as appropriate.
(vty_create) init vty's to restricted/view node as appropriate,
for the 'no login' case.
(vty_{no_,}restricted_mode_cmd) config commands to enable
'anonymous restricted' in vty configuration.
(vty_config_write) 'anonymous restricted' config.
(vty_init) Install some commands to restricted mode, and the
'anonymous restricted' config commands into VTY_NODE.
* bgpd/*.c: Install some of the safe(r) BGP commands into
'restricted mode', i.e. lookup commands of non-sensitive data.
Useful with looking-glass route-servers.
|
| | | | | |
| | | \ | |
| | |\ \ \
| | | | |/
| | | |/|
| | | | | |
'remotes/jocke/snmp_crosscompile'
|
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
--without-crypto
Autoconfig work by me, the rest was done by
"Kirill K. Smirnov" <lich@math.spbu.ru>
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
accepted conns"
Revert commit d664ae1182c29b74b409bc8594b7bd0575e91ce9. An experimental
patch which violates RFC4271 quite badly, but managed to accidently sneak
its way in.
|
| | |
| | |
| | |
| | | |
- Add more stuff, archive libraries, etc..
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
2008-08-17 Stephen Hemminger <stephen.hemminger@vyatta.com>
* bgp_damp.?: (bgp_config_write_damp) remove useless check
of statically allocated config storage, and useless return
value
Signed-off-by: Paul Jakma <paul@quagga.net>
|