Martin Mares
d272fe22dd
Separated `official protocol names' used in status dumps from name templates
...
used for automatic generation of instance names.
protocol->name is the official name
protocol->template is the name template (usually "name%d"),
should be all lowercase.
Updated all protocols to define the templates, checked that their configuration
grammar includes proto_name which generates the name and interns it in the
symbol table.
2000-01-17 11:52:50 +00:00
Ondrej Filip
1508757478
Preparing for building LS databaze. Huh, why is it so complicated? :-(
...
Adding definition of some constants.
2000-01-05 00:03:47 +00:00
Ondrej Filip
163b207346
Inicialisation of Topology Graph (TG).
1999-11-30 10:35:26 +00:00
Ondrej Filip
4364b47e48
ospf.c and ospc.h splitted into various files.
1999-11-17 15:50:41 +00:00
Ondrej Filip
2af2636a69
Another bugfix. (In EXCHANGE state.)
1999-11-17 13:28:51 +00:00
Ondrej Filip
e17baa3108
Fixed bug receiving dbdes packets in EXSTART state.
1999-11-17 13:15:01 +00:00
Ondrej Filip
986e34131d
Sending DBDES packet in EXSTART done.
1999-11-10 16:06:12 +00:00
Martin Mares
6ba36f06ae
Added LSA hashing table (parts of code stolen from rt-fib.c, but
...
heavily simplified since we don't need asynchronous walking).
1999-11-10 12:27:01 +00:00
Ondrej Filip
ecc3cf6f50
Working on db des receiving.
...
Preparing for building LDA database.
1999-11-03 12:59:38 +00:00
Ondrej Filip
c2250f91c7
Minor changes and bug fixes. Preparing for Exchange and higher states.
1999-10-19 16:13:06 +00:00
Ondrej Filip
96f1b8ba10
Huge changes. Neighbor and interface state machines rewritten.
...
It should be cleaner now, I'm preparing for file splitting.
Maybe I added some minor bugs. :-(
1999-10-18 21:48:51 +00:00
Ondrej Filip
2c1d1cc765
DD packet receiving in ExStart.
1999-08-25 18:44:50 +00:00
Ondrej Filip
1af664158d
A structure for receiving DD seq packets added.
1999-08-24 18:32:26 +00:00
Ondrej Filip
e3121112ab
Preparing to send DD packets.
1999-08-24 14:42:51 +00:00
Ondrej Filip
b332fcdfc8
Better dumping.
1999-08-16 10:32:05 +00:00
Ondrej Filip
032df28048
Small bux fixes. A neigh_chstate added.
1999-08-10 12:06:45 +00:00
Ondrej Filip
a7d388d23e
Multiple "hton problems" fixed. Now we're in EXSTART state.
1999-08-09 18:59:37 +00:00
Ondrej Filip
2be22ddb4c
"My own IP problem" fixed.
1999-08-09 18:49:50 +00:00
Ondrej Filip
a4c2ee717c
Bug fix in checksum calculation.
1999-08-09 18:34:08 +00:00
Ondrej Filip
b1693b8f74
Bug in election fixed.
1999-08-09 18:11:51 +00:00
Ondrej Filip
e83dc0d7e7
(Backup) Designated Router election added.
1999-08-09 17:58:01 +00:00
Ondrej Filip
8c51f96acf
Some interface state machine changes. I found some problem in RFC,
...
trying to conntact authors.
1999-08-09 13:03:28 +00:00
Ondrej Filip
39369d6fbe
Fixed stupid bug with hello vs inactim timers.
1999-06-02 16:31:13 +00:00
Ondrej Filip
bae0f7dbb1
Neigbor deleting done. (I have some problems with timers, so it does not
...
send hello.)
1999-06-01 17:29:56 +00:00
Ondrej Filip
cd70d93470
Detecting of new neighbor added. It starts inactivity timer.
1999-06-01 16:35:18 +00:00
Martin Mares
3e1f30610e
Defined IP_PREC_INTERNET_CONTROL and made all (well, both :)) protocols
...
use it when creating sockets.
1999-06-01 13:57:24 +00:00
Ondrej Filip
c72b09c850
IP socket priority (sock->tos) added. Constant taken from tcpdump of CISCO
...
and gated.
1999-05-31 19:07:31 +00:00
Ondrej Filip
35ff423d54
Some RX_Hello checks added.
1999-05-31 18:56:20 +00:00
Ondrej Filip
75b84c34e3
Sending and receving of hello pkts works. No I will start building neighbor
...
database.
1999-05-31 18:24:54 +00:00
Ondrej Filip
903a3f3928
struct ospf_neigbor corrected.
1999-05-24 21:49:22 +00:00
Ondrej Filip
c76674f0e9
struct ospf_neigbor added. Neigbor state machine implementation can start.
1999-05-24 21:17:16 +00:00
Ondrej Filip
65112dd270
ifa->time split into wait_timer and hello_timer. I will send hello in WAITING state.
1999-05-24 18:22:00 +00:00
Ondrej Filip
b9f8590025
IP header test added.
1999-05-24 17:29:05 +00:00
Martin Mares
b23c5e0ff4
Added ip_skip_header() and modified OSPF to use it.
1999-05-14 18:03:09 +00:00
Ondrej Filip
11ce4490fa
*** empty log message ***
1999-05-14 08:50:25 +00:00
Ondrej Filip
67ff91302f
Netmask checking for hello packets added.
1999-05-14 08:46:06 +00:00
Ondrej Filip
7426ee3d49
Checksum control added.
1999-05-13 09:18:36 +00:00
Ondrej Filip
296ecb56eb
OSPF RX implementation starts....
1999-05-11 15:34:33 +00:00
Ondrej Filip
f7103dfcfe
Better logging output. Added 'struct proto *' info 'struct ospf iface'.
1999-05-11 09:50:02 +00:00
Martin Mares
9a158361da
I rewrote the interface handling code, so that it supports multiple
...
addresses per interface (needed for example for IPv6 support).
Visible changes:
o struct iface now contains a list of all interface addresses (represented
by struct ifa), iface->addr points to the primary address (if any).
o Interface has IF_UP set iff it's up and it has a primary address.
o IF_UP is now independent on IF_IGNORED (i.e., you need to test IF_IGNORED
in the protocols; I've added this, but please check).
o The if_notify_change hook has been simplified (only one interface pointer
etc.).
o Introduced a ifa_notify_change hook. (For now, only the Direct protocol
does use it -- it's wise to just listen to device routes in all other
protocols.)
o Removed IF_CHANGE_FLAGS notifier flag (it was meaningless anyway).
o Updated all the code except netlink (I'll look at it tomorrow) to match
the new semantics (please look at your code to ensure I did it right).
Things to fix:
o Netlink.
o Make krt-iface interpret "eth0:1"-type aliases as secondary addresses.
1999-05-06 21:38:11 +00:00
Ondrej Filip
59e2188cb7
Just changes of comments.
1999-04-27 13:04:33 +00:00
Ondrej Filip
6376a96133
Hello timer implemented.
1999-04-27 12:56:52 +00:00
Ondrej Filip
93bde8dce2
Work on hello continues.
1999-04-22 13:12:28 +00:00
Ondrej Filip
b11d8a4f59
Redesigned struct ospf_iface & new struct ospf_sock.
1999-04-14 15:13:44 +00:00
Ondrej Filip
b31568a516
Small bug fix in memcpy.
1999-04-14 12:47:18 +00:00
Martin Mares
9da4d14340
A couple of OSPF fixes:
...
o ((flags & IF_CHANGE_UP) == IF_CHANGE_UP) -> (flags & IF_CHANGE_UP)
o bcopy -> memcpy (bcopy is unportable)
o Ifdeffed out add_tail(&(ifa->sk_list),NODE mcsk) -- the node in socket
structure is for internal use by the resource manager only. (Now, the
debugging dump of open sockets looks sane :-)).
1999-04-14 11:09:55 +00:00
Martin Mares
1ab4dee028
Removed redeclaration of `idval', so that it compiles :)
1999-04-14 10:49:31 +00:00
Ondrej Filip
4c630a6dd7
Added wait timer for eligible BCAST & NBMA interface.
1999-04-13 21:46:20 +00:00
Ondrej Filip
55e7732a5a
Change in ospf_iface. (My bad understanding of lists manipulation.)
1999-04-13 19:27:44 +00:00
Ondrej Filip
aec76c6e8e
IPv6 changes.
1999-04-13 18:21:53 +00:00