Commit Graph

75 Commits

Author SHA1 Message Date
paul
0c0f9cd54b 2003-06-07 Paul Jakma <paul@dishone.st>
* (ospf_spf.c): Fix indentation - primarily the mix of tabs and spaces.
	Ran through indent -nut (GNU style, but only spaces for indentation)
2003-06-06 23:27:04 +00:00
paul
592c814898 2003-06-07 Paul Jakma <paul@dishone.st>
* Revert Cougar's sort interface names patch, causes problems with
	enabling of interfaces for OSPF in ospfd.
2003-06-06 23:24:55 +00:00
paul
bf9392c6e9 2003-06-7 kamatchi soundaram <kamatchi@tdd.sj.nec.com>
* (ospf_spf.c): Fix consideration of costs for PtP nexthops in
	  ospf_nexthop_calculation().
2003-06-06 23:23:36 +00:00
hasso
a939514c59 Patch from Cougar - sort iflist by name. 2003-06-05 17:50:01 +00:00
paul
edd7c245d3 2003-06-04 Paul Jakma <paul@dishone.st>
* Merge of zebra privileges
2003-06-04 13:59:38 +00:00
paul
cfc959b8f5 From: kamatchi soundaram <kamatchi@tdd.sj.nec.com>
Subject: [zebra 19263] Another memory leak!! is zebra OSPF

   This memory leak gets into picture whenever any interface goes down.

 Problem found and desctription: Whenever the interface goes down, the
 "def_params" (member of ospf_if_info) structure memory is not freed.

 Fix made: added the following line to free the "def_params" memory of
 ospf_if_info before calling the  "XFREE(MTYPE_OSPF_IF_INFO, ifp->info);"
 The added line is:
       ospf_del_if_params ((struct ospf_if_params *) IF_DEF_PARAMS (ifp));
2003-06-04 02:28:45 +00:00
paul
ec1ca63c18 From: kamatchi soundaram <kamatchi@tdd.sj.nec.com>
Subject: [zebra 19262] Re: Memory leak in OSPF

Fix applied for Kamatchi's original report was to remove the auth_crypt
initialisation from the wrong function. This should fix that.
2003-06-04 02:23:15 +00:00
paul
852ba0e2cf From: kamatchi soundaram <kamatchi@tdd.sj.nec.com>
Subject: [zebra 19259] Memory leak in OSPF

The detail of the memory leak follows:
 File name: ospf_interface.c
 Function name: ospf_if_new_hook().
 Type of leak: Overwriting the already allocated memory.
 Problem found and description:
 The ospf_new_if_params() fn allocates a memory for "auth_crypt" which
 is overwritten, down in the fn (ospf_if_new_hook) by explicitely allocating
 a memory for the same "auth_crypt".

 Fix: remove allocation from ospf_new_if_params()
2003-06-03 03:03:34 +00:00
hasso
704a6801ab Commit my hack to fix options mismatch in NSSA area DD packets. It shouln't
harm, but of course ... it is hack.
2003-05-29 22:18:15 +00:00
paul
800d61556c ospfd/ospfd.h: Change delay and holdtime to 1s. More appropriate values for
the class of machines which zebra runs on than the original defaults which
were taken from IOS (and even IOS uses much lower times these days). Lower
values greatly help with convergence.

Ideally, we'd use even lower times, but thread_add_timer() api will need to
be modified to use milliseconds. (eg JunOS uses 100ms for delay, and 700ms
for hold time, iirc from Hasso).
2003-05-29 17:26:24 +00:00
hasso
b3516a791d Tiny fixes from 6Wind patch. 2003-05-25 22:11:22 +00:00
paul
af8d0336a3 Fix missing bracket from previous commit. 2003-05-24 15:31:45 +00:00
paul
0a825c7933 2003-05-24 Kenji Yabuuchi
* ospf_interface.c(ospf_if_lookup_recv_if): Use the most specific
          match for interface lookup.
2003-05-24 13:48:16 +00:00
paul
32d2463ca2 From: Hasso Tepper <hasso@estpak.ee>
Add the 'no interface' command to all the daemons and vtysh. now it's
possible to delete interface from routeing daemons as well only if it
doesn't exist in os.

http://hasso.linux.ee/zebra/ht-no_interface_fix.patch
2003-05-23 09:25:20 +00:00
paul
7515cffe5e Undo Hasso last patch, about to apply a slightly updated patch. 2003-05-23 09:21:46 +00:00
paul
68f43848fa From: Hasso Tepper <hasso@estpak.ee>
http://hasso.linux.ee/zebra/ht-no_interface-23052003.patch

Add the 'no interface' command to all the daemons and vtysh.
2003-05-23 06:58:44 +00:00
paul
551a897925 From: Hasso Tepper <hasso@estpak.ee>
Subject: [zebra 19093] [PATCH] Two more fixes

Show NSSA LSA route info in "show ip ospf database" output
2003-05-18 15:22:55 +00:00
paul
28a138419f Fix attribution 2003-05-16 20:30:37 +00:00
paul
445f143525 Update Changelogs 2003-05-16 19:00:31 +00:00
paul
d748032f10 From: Hasso Tepper <hasso@estpak.ee>
Subject: [zebra 19091] [PATCH] NSSA fixes try2

NSSA didn't work without problems even after my previous fixes. Seems
that I tracked down problems finally.
2003-05-16 17:31:51 +00:00
paul
843521964f Fix merge error of Hasso's patch "case case" :) 2003-05-11 12:59:11 +00:00
paul
4fb949e334 From: Hasso Tepper
Fix removal of Type-7 LSAs, http://bugzilla.dishone.st/show_bug.cgi?id=18
2003-05-10 20:06:51 +00:00
paul
ccd57affea Reverting the NSSA maxage walker loop addition for now, until all the other
problems with NSSA are resolved, and we can determine whether this had any
point.
2003-05-06 23:38:23 +00:00
paul
5376b5efb2 NSSA /might/ be missing this. I'm not sure.
It didnt solve a particular problem of Hasso's, but i'm committing it just
for posterities sakes, so i dont lose it (i'll revert it immediately).
2003-05-06 23:31:38 +00:00
paul
a2c6283126 From: Hasso Tepper
This one fixes "router xxx" node commands in vtysh. Don't get "unknown
command" error when entering "passive-interface eth0" command while
ospfd and ospf6d running etc.
2003-04-23 17:01:31 +00:00
paul
73ffb25bec Hasso Tepper
http://hasso.linux.ee/zebra/ht-routemap-18042003_5.patch
Trivial fixes to sync daemon's route-map commands to have same syntax. Fixes
a lot of errors with "match ..." and "set ..." commands when using vtysh.
2003-04-19 15:49:49 +00:00
paul
147193a28a From: Hasso Tepper <hasso@estpak.ee>
Subject: [zebra 17365] [PATCH] Ospf area id's DECIMAL -> ADDRESS

It was annoying for me to view area id's like 335544330 (20.0.0.10 in
address format) in configuration. Most of other network devices are
using address-like id's and so does zebra when using "show ip ospf *"
commands.

You can still enter id's in decimal format, but they are just shown in
address format.
2003-04-19 00:31:59 +00:00
paul
c2191eaee5 From: Sergey Vyshnevetskiy <serg@vostok.net>
Subject: [zebra 18689] [PATCH] misc patch

Add missing param to zlog
2003-04-18 23:59:35 +00:00
paul
b8311eab14 From: Sergey Vyshnevetskiy <serg@vostok.net>
Subject: [zebra 18689] [PATCH] misc patch

remove unused vars
2003-04-18 23:57:15 +00:00
paul
f645789b7a Denis Ovsienko <zebra@pilot.org.ua>
Subject: [zebra 18767] possible SIGSEGV

Fix incorrect memset
2003-04-17 16:11:30 +00:00
paul
645878f10f From: Hasso Tepper <hasso@estpak.ee>
To: zebra@zebra.org
Subject: [zebra 18648] [PATCH] Selforiginated Type-7 LSA's are not flushed
         from lsdb
2003-04-13 21:42:11 +00:00
paul
e05fba4387 Author: amir
Date: 2003-04-10 14:32:31 +0200 (Thu, 10 Apr 2003)
New Revision: 212

Modified:
   zebra-ag/trunk/ospfd/ospf_lsa.c
Log:
I've fixed a small opaque lsa bug which got triggered when deleting opaque
lsa of type 11. It used area->ospf->.. when area was null. This was replaced
by a ospf = ospf_lookyp(); ospf->...
2003-04-13 20:20:53 +00:00
paul
ef4e09961d Add Makefile.in to the remaining .cvsignore's
Add ospfclient to ospfclient/.cvsignore
2003-04-09 06:37:27 +00:00
paul
1aa7b3993b Undo commenting of a debug conditional. make it conditional again. 2003-04-08 08:51:58 +00:00
paul
ead687e159 Hasso Tepper <hasso@estpak.ee>:
add NSSA debug statement
2003-04-07 17:12:12 +00:00
paul
e7b050cb01 Indentation fix 2003-04-07 06:38:02 +00:00
paul
23bd12c31d [zebra 18626] move zebra socket paths to configure.ac
moved definition of the various socket paths from the
per daemon header files into configure.ac. it will set the paths to
be in the directory specified by --localstatedir=<prefix> or
otherwise will try to guess as best it can ( a la pid file path
detection - which probably should try reference ${prefix} too).

the present hardcoded socket path, /tmp, isnt really correct. should
be in /var somewhere really.
2003-04-07 06:11:09 +00:00
paul
3a6440d756 Remove auto* files from the repository.
Developers working with the repository should have the appropriate tools.
Out-of-sync files cause far too many problems with users as well as auto*
scripts not being half as portable across systems as they ought to be.
make-dist exists for a reason.
Todo: make the CVS snapshot script do make-dist, and use the resulting
tarball as the snapshot.
2003-04-07 06:02:17 +00:00
paul
f6386eebb9 Compile fix - convert foreach_lsa to LSDB_LOOP 2003-04-07 04:29:27 +00:00
paul
99b7c5d6e6 Latest ospfapi sync from Amir to fixup wrt to zebra.org changes. 2003-04-06 01:19:28 +00:00
paul
7d5e26814f Fixes from Amir to merge apiserver with zebra.org changes 2003-04-05 19:41:07 +00:00
paul
1cc8f7624c Add tests for debug enabled to PtMP LSA creation functions 2003-04-05 19:34:32 +00:00
paul
020709f993 2003-04-04 Paul Jakma <paul@dishone.st>
* Sync to Zebra CVS
        * Fix lib/thread.h leak
        * Fix small Opaque LSA leak
        * Do not configure OSPF interfaces for secondary addresses
        * vtysh fixes from Hasso
        * Dave Watson's missing ntohs fix
2003-04-04 02:44:16 +00:00
paul
d18258304a From: David Watson <dwatson@eecs.umich.edu>
Subject: [zebra 18573] PATCH ospfd: byte order error in assert statement

 I found a bug in the ospfd code tickled this morning by a Type 1
 LSA with exactly 62 entries (LSA length of 768, or 0x0300).
 A missing ntohs in ospf_lsa.c:ospf_lsa_different() causes an assert
 statement to fail, stopping ospfd.
 >   assert (l1->data->length > OSPF_LSA_HEADER_SIZE);
 So, a length of type 768 turns into a length of 3 which is
 obviously less than 20.
 David
2003-04-03 01:27:01 +00:00
paul
800dc10516 Do not configure ospf for secondary prefixes.
Preliminary fix to at least allow heartbeat to work with ospfd when
Heartbeat failover address has same prefixlength as main address.
2003-03-28 01:51:40 +00:00
paul
a15f45d44b Amir Guindehi <amir@datacore.ch>:
I got it to compile. The problem was that major functions newly need a
struct ospf *ospf as the first argument. I tried to take the nearest
struct ospf *ospf around the function needing it, because i was not sure
if all those pointers to struct ospf * all point to the same (global)
struct ospf * which you also get when you call ospf_get().

I used area->ospf where I had the area, I used oi->ospf, where I had an
interface, I used lsa->oi->ospf where I had an lsa and i used ospf_get()
where I had nothing. I hope that's correct and works. We will see.

It compiles now without errors. Daemon is tested and works. The opaque lsa
part is not yet tested. I will do that as soon as srrd is ready.
2003-03-28 01:50:03 +00:00
paul
683b22652e Fix leak of an opaque-lsa scratch link-list 2003-03-28 00:43:48 +00:00
paul
bdf94e447a Remove redundant memset 2003-03-28 00:42:45 +00:00
paul
6898008484 2003-03-25 Paul Jakma <paul@dishone.st>
* sync to latest zebra CVS
	* spec file: updated and added define for ospf-api/client

NB: OSPF-API has been broken by the zebra.org changes, which
has added struct ospf * as a new arg to many functions
2003-03-25 05:07:42 +00:00
paul
1ef74ef70b Amir Guindehi <amir@datacore.ch>:
Fix up build for OSPF-API (dependent on opaque-lsa)
Add disable-ospfapi.
Fix up net-snmp detection.
2003-03-21 15:16:05 +00:00