Ondrej Zajicek
48e5f32db6
Many changes in I/O and OSPF sockets and packet handling.
...
I/O:
- BSD: specify src addr on IP sockets by IP_HDRINCL
- BSD: specify src addr on UDP sockets by IP_SENDSRCADDR
- Linux: specify src addr on IP/UDP sockets by IP_PKTINFO
- IPv6: specify src addr on IP/UDP sockets by IPV6_PKTINFO
- Alternative SKF_BIND flag for binding to IP address
- Allows IP/UDP sockets without tx_hook, on these
sockets a packet is discarded when TX queue is full
- Use consistently SOL_ for socket layer values.
OSPF:
- Packet src addr is always explicitly set
- Support for secondary addresses in BSD
- Dynamic RX/TX buffers
- Fixes some minor buffer overruns
- Interface option 'tx length'
- Names for vlink pseudoifaces (vlinkX)
- Vlinks use separate socket for TX
- Vlinks do not use fixed associated iface
- Fixes TTL for direct unicast packets
- Fixes DONTROUTE for OSPF sockets
- Use ifa->ifname instead of ifa->iface->name
2014-02-06 17:46:01 +01:00
Ondrej Zajicek
736e143fa5
Merge branch 'master' into add-path
...
Conflicts:
filter/filter.c
nest/proto.c
nest/rt-table.c
proto/bgp/bgp.h
proto/bgp/config.Y
2013-11-23 11:50:34 +01:00
Ondrej Zajicek
f623ab9875
Implements OSPF stub router option (RFC 3137).
...
Also fixes OSPFv3 routing table calculcation w.r.t.
errata 2078 to RFC 5340.
2013-06-11 12:12:11 +02:00
Ondrej Zajicek
094d2bdb79
Implements ADD-PATH extension for BGP.
...
Allows to send and receive multiple routes for one network by one BGP
session. Also contains necessary core changes to support this (routing
tables accepting several routes for one network from one protocol).
It needs some more cleanup before merging to the master branch.
2012-08-14 16:46:43 +02:00
Ondrej Zajicek
bbcfd5a048
Fixes default route in OSPF multiple area setting.
2012-07-26 13:59:50 +02:00
Ondrej Zajicek
2918e61046
Fixes for OSPF NSSA handling.
2011-09-03 21:31:26 +02:00
Ondrej Zajicek
ed317862c2
OSPF NSSA support, inter-area LSA translation.
2011-08-08 01:45:31 +02:00
Ondrej Zajicek
4160a9dd94
OSPF NSSA translator election.
2011-07-22 20:00:24 +02:00
Ondrej Zajicek
41b612c31b
OSPF NSSA support, part one.
2011-07-20 23:48:06 +02:00
Ondrej Zajicek
9008579b97
Fixes broken multi-area OSPF.
2011-07-20 23:46:03 +02:00
Ondrej Zajicek
ab16497189
Fixes a nasty bug in OSPF.
...
Sending malformed network prefixes in LSAs causes OSPF to crash
just after the LSA is propagated to the other routers.
2011-03-29 01:41:46 +02:00
Ondrej Zajicek
e7b4948cbd
A simplification of the next-hop calculation.
...
Thanks to Joakim Tjernlund for the idea.
2010-12-28 01:43:07 +01:00
Ondrej Zajicek
919f5411c4
Implements Point-to-MultiPoint interface type for OSPF.
2010-12-24 18:08:07 +01:00
Ondrej Zajicek
39847cda73
Add some comments.
2010-12-23 12:24:40 +01:00
Ondrej Zajicek
57c574d82a
Multipath support for OSPF
2010-12-07 23:35:39 +01:00
Ondrej Zajicek
9b061f7ea5
Minor fixes.
2010-05-28 11:16:39 +02:00
Ondrej Zajicek
e0a62ad0f8
Fixes a bug in duplicit configured stubnets.
...
If there was the same configured stubnet on local and remote
router, the remote route always won regardless of its cost.
2010-05-26 12:32:30 +02:00
Ondrej Zajicek
6d04ef8987
Comment update.
2010-05-21 16:40:09 +02:00
Ondrej Zajicek
54818e9beb
A minor bugfix in OSPF ext-LSA processing.
2010-05-03 00:10:48 +02:00
Ondrej Zajicek
6384c7d7aa
OSPF: most of summary LSA orig./flush logic rewritten.
...
Fixes many bugs in the old code and makes it much cleaner.
2010-05-02 19:58:34 +02:00
Ondrej Zajicek
48b0814ace
A fix in OSPFv3 next_hop calculation.
2010-04-27 18:29:01 +02:00
Ondrej Zajicek
0ea8fb4abe
Fixes and enhancements in 'show ospf state' command.
...
Now it shows a distance, option to change showing reachable/all network
nodes and better handling of AS-external LSAs in multiple areas. The
command 'show ospf topology' was changed to not show stubnets in both
OSPFv2 and OSPFv3 (previously it displayed stubnets in OSPFv2).
2010-04-24 15:18:21 +02:00
Ondrej Zajicek
3b89a2327b
Fixes several problems in OSPF vlink implementation.
2010-04-21 21:50:38 +02:00
Ondrej Zajicek
6e80676096
Fixes next hop calculation on NBMA and parallel PTP links.
2010-04-11 12:22:47 +02:00
Ondrej Zajicek
b8113a5e92
Implements BGP 'show protocols' info details.
2010-04-07 00:19:23 +02:00
Ondrej Zajicek
e60d55becd
Fixes OSPFv3 route generation for local stub networks.
2010-04-02 19:03:18 +02:00
Ondrej Zajicek
0aad2b9292
Temporary OSPF commit - sockets.
2010-03-14 16:36:59 +01:00
Ondrej Zajicek
54305181f6
Merge branch 'new' into socket2
2010-03-11 18:55:59 +01:00
Ondrej Zajicek
ff2857b03d
Many changes in (mainly) kernel syncers.
...
- BSD kernel syncer is now self-conscious and can learn alien routes
- important bugfix in BSD kernel syncer (crash after protocol restart)
- many minor changes and bugfixes in kernel syncers and neighbor cache
- direct protocol does not generate host and link local routes
- min_scope check is removed, all routes have SCOPE_UNIVERSE by default
- also fixes some remaining compiler warnings
2010-02-26 10:55:58 +01:00
Ondrej Zajicek
e81b440f68
Fix configure to enable warnings and fix most of them.
2010-02-21 14:34:53 +01:00
Ondrej Zajicek
353729f513
Temporary OSPF commit - socket changes.
2010-02-11 10:23:35 +01:00
Ondrej Zajicek
c27b2449d1
Shows source (Router ID) for OSPF routes and adds such attribute.
...
A sad thing is that we does not have a 'router_id' filter type,
so it must be given as decimal number in filters.
2010-02-08 16:01:03 +01:00
Ondrej Zajicek
99f5fc14cd
A partial vlink fix.
2010-01-08 22:19:41 +01:00
Ondrej Zajicek
cf0858c217
A fix of a previous fix.
2010-01-07 22:43:06 +01:00
Ondrej Zajicek
ba39197c11
Fixes vlinks for OSPFv2.
2010-01-07 22:22:10 +01:00
Ondrej Zajicek
3034b384dd
A minor fix in OSPF.
2010-01-07 11:46:11 +01:00
Ondrej Zajicek
f75747073e
Implements route reload for OSPF.
2009-12-14 21:17:15 +01:00
Ondrej Zajicek
34a877ccac
Minor updates.
2009-12-14 17:29:33 +01:00
Ondrej Zajicek
8a70a13e7e
Implements protocol-specific Router ID for OSPF.
...
And fixes one minor bug.
2009-12-11 11:06:51 +01:00
Ondrej Zajicek
9807690b41
Fixes link-back check.
2009-12-06 22:05:50 +01:00
Ondrej Zajicek
b76aeb8234
Fixes next hop handling.
2009-12-04 22:20:13 +01:00
Ondrej Zajicek
cbf8b08d62
Temporary OSPFv3 devel commit
2009-11-17 10:31:33 +01:00
Ondrej Zajicek
b66abe8ef9
Reimplements 'show ospf state' for OSPFv3 and fixes some bugs.
2009-10-15 00:28:04 +02:00
Ondrej Zajicek
d82fc18d75
Implement proper LSA ID generation.
2009-10-07 21:10:29 +01:00
Ondrej Zajicek
9f0ba7b1c7
Implements proper RID handling in OSPFv3.
2009-09-17 12:18:03 +02:00
Ondrej Zajicek
be86240662
Temporary OSPFv3 development commit.
...
Finally, it is working.
2009-09-08 13:45:02 +02:00
Ondrej Zajicek
f9c799a00e
Temporary OSPFv3 development commit (changing multicast support).
2009-09-04 11:06:51 +02:00
Ondrej Zajicek
061ab802a6
Temporary OSPFv3 development commit
2009-08-27 18:25:46 +02:00
Ondrej Zajicek
b49e6f5a65
Temporary OSPFv3 development commit
2009-08-25 16:42:14 +02:00
Ondrej Zajicek
c3226991a0
Temporary OSPFv3 development commit
2009-08-21 09:27:52 +02:00
Ondrej Zajicek
3aab39f589
Use %R in OSPF when appropriate.
2009-07-23 16:51:28 +02:00
Ondrej Zajicek
2389c46fe3
Another pile of ipa_from_u32() calls.
2009-07-05 21:18:55 +02:00
Ondrej Zajicek
f98e291579
The pipe cleanup.
2009-06-01 14:07:13 +02:00
Ondrej Zajicek
3f670371cf
OSPF routes appeared with random value of ospf_tag attribute.
...
This patch fixes it.
2008-11-14 21:13:56 +01:00
Ondrej Filip
a2d5b405d4
Bugfix in external routes calculation.
2005-03-14 10:59:52 +00:00
Ondrej Filip
63ca37f313
Cleanup - all unused variables deleted.
2005-02-20 18:56:06 +00:00
Ondrej Filip
dafaef9ba9
Originate default route into stub areas.
2005-02-20 16:53:06 +00:00
Ondrej Filip
7de7470a2a
Bugfix - count courrectly next hop on single hop virtual link.
2005-02-20 03:37:47 +00:00
Ondrej Filip
5506c82ce6
Bugfix in previous bugfix.
2005-02-18 19:36:32 +00:00
Ondrej Filip
60e04f0413
Minor bugfix: Summary LSA for aggregated area was always propagated with
...
metric = 1. Now it's metric of most distant component.
2005-02-18 18:51:42 +00:00
Ondrej Filip
27a1e3ac35
Minor bugfixes in routing table calsulation.
2005-02-15 16:17:42 +00:00
Ondrej Filip
5d3f555234
Many bugfixes in routing table calculation and summary LSA origination.
2005-02-13 23:36:31 +00:00
Ondrej Filip
89ba9a1806
Bugfix in inter-area route calculation and summary LSA origination.
...
Bugfix of some debugging commands.
2005-02-12 22:22:18 +00:00
Ondrej Filip
56e2a4b776
Bugfix in OSPF - BIRD sometimes failed during rt calculation with VLINKs.
2004-08-05 18:06:30 +00:00
Ondrej Filip
b37bb5ce03
Minor bugfix - add interface routes.
2004-07-15 16:48:12 +00:00
Ondrej Filip
28e8d862b7
Minor bugfix in calculation of external routes.
2004-07-15 16:42:06 +00:00
Ondrej Filip
86c84d76b7
Huge OSPF database redesign. Since now, all LSAs of all areas
...
are in single database. This avoids duplication of external LSAs and
fixes bug in external LSA distribution.
2004-07-15 16:37:52 +00:00
Ondrej Filip
3b16080c97
Multiple OSPF areas can be attached.
...
Origination of summary LSA works.
Routing table calculation works.
Virtual links works.
Well, I hope, OSPF is fully compatible with RFC2328!!!!
2004-07-14 21:46:20 +00:00
Ondrej Filip
621ccdfe5a
Bugfix - options bits were not included in LSAs
...
Bugfix - E bit was not unset on stub areas.
2004-07-13 11:58:50 +00:00
Ondrej Filip
3e2bd0f17a
Md5 authentification added (unsested).
...
Packet receiving clean up.
2004-06-26 20:15:34 +00:00
Ondrej Filip
98ac61766d
A lot of changes:
...
- metric is 3 byte long now
- summary lsa originating
- more OSPF areas possible
- virtual links
- better E1/E2 routes handling
- some bug fixes..
I have to do:
- md5 auth (last mandatory item from rfc2328)
- !!!!DEBUG!!!!! (mainly virtual link system has probably a lot of bugs)
- 2328 appendig E
2004-06-25 16:39:53 +00:00
Ondrej Filip
1a61882d37
Better routing table calculation. We are ready to work with
...
multiple OSPF areas.
2004-06-11 09:36:50 +00:00
Ondrej Filip
cd09226078
Be sure, that ospf_area is aged before routing table calculation.
2004-06-06 17:03:56 +00:00
Ondrej Filip
b8f17cf192
Small cleanup, indentation and preparation for multiple areas routing table calculation.
2004-06-06 16:00:09 +00:00
Ondrej Filip
2e10a170fe
Indentation.
2004-06-06 09:37:54 +00:00
Martin Mares
1512813e95
... and a whole bunch of unused parameters and variables in ospf.
2004-06-05 09:28:17 +00:00
Ondrej Filip
9b13345889
Hotfix for router's parent without nexthop.
...
It will probably work perfect, but I need to eliminate such situation.
2004-06-02 09:14:03 +00:00
Ondrej Filip
f9625e9aca
Bugfix in external routes calculation.
2004-06-01 14:06:25 +00:00
Ondrej Filip
baa5dd6ccc
Many spelling mistakes fixed.
...
Thanks you Harry Moyes.
2003-08-23 10:42:41 +00:00
Ondrej Filip
b78696282d
Bugfix in router importation.
2001-12-07 17:34:09 +00:00
Ondrej Filip
8e32493c56
Removed some useless (hope!) code in next hop calculation.
2001-08-21 17:00:15 +00:00
Ondrej Filip
68db89a2ce
Finally, next hop problem fixed.
2001-08-21 16:44:57 +00:00
Ondrej Filip
e8ab168030
Hope, bug in next hop calculation for stub routes fixed.
2001-08-21 15:00:29 +00:00
Ondrej Filip
24c00cb119
Install route into main routing table just if it's necessary.
2001-06-12 21:10:30 +00:00
Ondrej Filip
e9d3c3aaea
Bug in next-hop calculation fixed. (For dual connected neighbors.)
2001-06-09 14:55:10 +00:00
Ondrej Filip
501c5bb03f
Small bugfix in ext routes calculation.
2000-11-21 23:47:51 +00:00
Ondrej Filip
52fa3e3869
Fixed many bugs in rt calculation and interface adding. Now it seems to be
...
OK, I'm going to advertise 1.0.4.
2000-09-04 21:21:34 +00:00
Ondrej Filip
fdb1998202
Serious bug in ext lsa origination found. Going for 1.0.4.
2000-09-03 22:18:40 +00:00
Ondrej Filip
f321a61f77
Fixed bug in nex hop calculation of external routes.
2000-08-18 16:44:37 +00:00
Ondrej Filip
28a6e1aa0e
Stupid bug in next hop calculation of external routes.
2000-08-17 19:42:52 +00:00
Ondrej Filip
059fc1e94a
My calculation of external routes violated rfc. :-(
2000-08-16 19:37:04 +00:00
Ondrej Filip
972fdb4532
Routing table calculation clean up.
2000-06-19 15:12:50 +00:00
Martin Mares
0e376168c5
Shut up an uninitialized variable warning.
2000-06-09 06:54:01 +00:00
Ondrej Filip
25a3f3da7a
I mark all LSA as in distance INFINITY in process of aging.
...
I don't have to WALK twice through it.
2000-06-07 23:34:43 +00:00
Ondrej Filip
1186369bbd
Doc.
2000-06-07 23:23:37 +00:00
Ondrej Filip
abcbfd0400
Tracing.
2000-06-06 02:34:57 +00:00
Ondrej Filip
2a5d7caa95
I calculated next hop of parent instead of actual LSA. :-(
2000-06-05 16:13:50 +00:00
Ondrej Filip
88048fb3c9
Small patch to better hash type=2 LSAs.
2000-06-05 03:46:19 +00:00
Ondrej Filip
273fd2c164
Many bugfixes (I don't remember all of them):
...
Added link ID calculation for external routes with same prefix but
different mask.
Bugfix in NET lsa origination.
Bugfix in NET hashing.
Bugfix in LSA installing.
2000-06-05 02:23:20 +00:00
Martin Mares
df49d4e14b
Removed lots of trailing newlines in log messages.
...
Please note that the only calls which don't add newlines automatically
(i.e., don't print a full line of output) are debug() and DBG().
2000-06-04 19:56:06 +00:00