| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
When flushing lots of entries the performance of ospf_lsa_maxage
is terrible because it looks up entry before deleting (N^2).
Use a flag to mark whether entry is already in maxage list.
Bug 4421
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
ospf_network_match_iface - make static so it can be inlined and
remove old #ifdef'd out code that just confuses
Other functions were defined static in prototype, but not
declared static.
|
|\ \ |
|
| |\ \
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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
|
| |\ \ |
|
|\| | |
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | | |
Since BGPD now has flag to default to import-check on, show the
current state of import-check in dump output.
|
|/ / |
|
| |
| |
| |
| |
| | |
The old algorithim looked up every node twice as it withdrew
the entry. This may explain the slow performance in Bug 4421
|
| |
| |
| |
| | |
Make some strings static, and remove strings that are not used.
|
| |
| |
| |
| | |
route_node_delete used by inline before defined.
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
bgpd/bgp_aspath.c
bgpd/bgpd.c
lib/smux.c
lib/workqueue.c
ospfd/ospf_snmp.c
|
| |\ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
* bgpd/bgp_community.c: (community_del_val) Fix bug in memcpy that was
using the wrong size on architectures where a pointer is not 32 bits.
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Macro SNMP_INTEGER() prepares data which is eventually processed
by asn_build_int(). SNMP_INTEGER() was using "int32_t" whereas
asn_build_int() uses "long". On 32-bit systems these are the
same, both 4 bytes, but on x86 64-bit systems "long" is 8 bytes.
asn_build_int()'s reaction to an improperly sized value is to return
a NULL pointer. Quagga's smux.c would eventually get this NULL
pointer and use it in calculations to determine how much data to send
over the smux connection, resulting in garbage being sent to the
SNMP agent.
Corrected SNMP_INTEGER() to use "long".
Tested on 32-bit and 64-bit x86 Linux 2.6.27.10 systems running
Quagga 0.99.11 with bgpd smux.
|
| | |
| | |
| | |
| | | |
"no ospf abr-type standard" was broken
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fix a potential problem (most probably not triggering a real problem, at
least on Linux). When an interface goes down and ripd tries to delete the
corresponding route it errorneously passes the interface's index instead of
the metric to zebra.
|
| |/
| |
| |
| |
| |
| |
| | |
* lib/workqueue.c: free-ing workqueues had never been tested obviously,
queue's thread was not being stopped
* bgpd/bgpd.c: null out freed workqueues, to prevent acting on freed
workqueues
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
When bgp calls getaddrinfo, it gets both ipv6 and ipv4 addresses.
Unless IPV6_ONLY is set on Linux, only the ipv6 bind will succeed,
and the IPV4 connections will come in as mapped connections on the
IPV6 socket.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* bgpd/bgp_aspath.c: (aspath_make_str_count) "assert (len < str_size)" was
getting hit under certain 4-byte ASN conditions. New realloc strategy.
* bgpd/bgp_aspath.c: (aspath_key_make) const warning fix.
"%d" -> "%u" 4-byte ASN corrections. Prevent negative number when ASN is
above 2^31.
|
| |
| |
| |
| |
| | |
Don't enable HAVE_BSD_STRUCT_IP_MREQ_HACK for FreeBSD 7.0 and upper,
because OS behaviour has changed.
|
| |
| |
| |
| |
| | |
ospf cost <1-65535> A.B.C.D
no ospf cost <1-65535>
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
This may fix BUG 3096. The reference count for OSPF route table
was never completely freed on deleting all neighbors.
|
|\| | |
|
| | |
| | |
| | |
| | | |
route_node_lock/route_node_unlock are trivial and used often.
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | | |
This may fix BUG 3096. The reference count for OSPF route table
was never completely freed on deleting all neighbors.
|
| | | |
|
|\| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds a flag to bgpd that makes each BGP instance start with
import-check enabled. With Vyatta CLI, this resolves issues resulting
from ordering at startup and how command elements for disable-import-check
are used.
|
|/ / |
|
| |
| |
| |
| |
| | |
Implement new ospf6 debugging command
Bug 4188
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Quagga has code to support monotonic clock to avoid issues where
time of day changes. The support was incomplete since it was not being
detected by autoconf.
|
| | |
|