summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-10-112004-10-11 Paul Jakma <paul@dishone.st>paul
* (global) Const char update and signed/unsigned fixes. * (various headers) size defines should be unsigned. * ospf_interface.h: remove duplicated defines, include the authoritative header - though, these defines should probably be moved to a dedicated header, or ospfd.h. * ospf_lsa.h: (struct lsa) ls_seqnum should be unsigned. * ospf_packet.c: (ospf_write) cast result of shift to unsigned.
2004-10-112004-10-11 Paul Jakma <paul@dishone.st>paul
* ospf_dump.c: (ospf_ip_header_dump) Assume header is in host order remove ntohs that should have dissappeared. Take struct ip as argument, caller has to know there's an IP header at start of stream anyway. * ospf_dump.h: update declaration of ospf_ip_header_dump. * ospf_packet.c: (ospf_write) correct call to sockopt_iphdrincl_swab_htosys which was munging the header. (ospf_recv_packet) ip_len is needed for old OpenBSD fixup. (ospf_read) sockopt_iphdrincl_swab_systoh ip header as soon as we have it.
2004-10-112004-10-11 Paul Jakma <paul@dishone.st>paul
* thread.c: (funcname_thread_add_timer) (funcname_thread_add_timer_msec) Fix mistakes from last change. Pointed out by Liu Xin in [quagga-dev 1609].
2004-10-102004-10-10 Paul Jakma <paul@dishone.st>paul
* ospf6_route.c: Add const qualifier to various char arrays of constants. signed/unsigned fixes. (ospf6_linkstate_table_show) argv is const * ospf6_snmp.c: listnode typedef is dead. (ospf6_snmp_init) Take struct thread_master arg, needed for smux_init. * ospf6_snmp.h: update ospf6_snmp_init declaration. * ospf6d.c: (ospf6_init) add const qualifier to sargv, pass master to ospf_snmp6_init. * ospf6_asbr.c: const char update. * ospf6_interface.c: ditto, plus signed/unsigned fixes. (ipv6_ospf6_cost) Check whether cost fits in u_int32_t and use strtoul. * ospf6_intra.c: const char update. Parenthesise expression. * ospf6_lsa.c: signed/unsigned and const char updates. * ospf6_proto.c: ditto. * ospf6_message.c: ditto. * ospf6_lsdb.c: signed/unsigned update. * ospf6_main.c: const char update. * ospf6_neighbor.c: ditto. * ospf6_spf.c: ditto. * ospf6_top.c: ditto.
2004-10-102004-10-10 Paul Jakma <paul@dishone.st>paul
* version.h.in: (pid_output*) add const qualifier. * command.h: Change DEFUN func to take const char *[] rather than char **, to begin process of fixing compile warnings in lib/. Nearly all other changes in this commit follow from this change. * buffer.{c,h}: (buffer_write) pointer-arithmetic is gccism, take const void * and cast an automatic const char *p to it. (buffer_putstr) add const * command.c: (zencrypt) const qualifier (cmd_execute_command_real) ditto (cmd_execute_command_strict) ditto (config_log_file) ditto. Fix leak of getcwd() returned string. * memory.{c,h}: Add MTYPE_DISTRIBUTE_IFNAME for struct dist ifname. * distribute.{c,h}: Update with const qualifier. (distribute_free) use MTYPE_DISTRIBUTE_IFNAME (distribute_lookup) Cast to char *, note that it's ok. (distribute_hash_alloc) use MTYPE_DISTRIBUTE_IFNAME. (distribute_get) Cast to char *, note that it's ok. * filter.c: Update with const qualifier. * if.{c,h}: ditto. * if_rmap.{c,h}: ditto. (if_rmap_lookup) Cast to char *, note that it's ok. (if_rmap_get) ditto. * log.{c,h}: Update with const qualifier. * plist.{c,h}: ditto. * routemap.{c,h}: ditto. * smux.{c,h}: ditto. Fix some signed/unsigned comparisons. * sockopt.c: (getsockopt_cmsg_data) add return for error case. * vty.c: Update with const qualifier.
2004-10-102004-10-10 Paul Jakma <paul@dishone.st>paul
* Makefile.am: fix listing of ospf_snmp.c in noinst_HEADERS
2004-10-102004-10-05 Paul Jakma <paul@dishone.st>paul
* version.h.in: (pid_output*) add const qualifier.
2004-10-08Merge svn revisions 1065 and 1066 from Zebra CVS.hasso
2004-10-08Compiler warnings fixes round 1.hasso
2004-10-08Argh, fix typo.hasso
2004-10-08There is no warnings here any more.hasso
2004-10-08Only warning left is the known lvalue problem in ripng_nexthop.c.hasso
2004-10-08More const strings.hasso
2004-10-08Although we don't look at current directory for config any more, it's nicehasso
to have modified config file here for development.
2004-10-082004-10-05 Paul Jakma <paul@dishone.st>paul
* version.h.in: print_version declaration is here, not in autoconf generated version.h.
2004-10-08- ospfclient should be in -devel package, if anywhere.paul
2004-10-07Vtysh compiles cleanly as well.hasso
2004-10-07Even more const strings and fix to bugfix.hasso
2004-10-072004-10-07 Paul Jakma <paul@dishone.st>paul
* ChangeLog: commit this too... * bump version to 0.97.0, release imminent.
2004-10-07Fix warnings. Didn't even look at files not compiled in Linux though.hasso
2004-10-07No warnings here any more.hasso
2004-10-072004-10-07 Greg Troxel <gdt@claude.ir.bbn.com>gdt
* ospf_apiserver.c (ospf_apiserver_unregister_opaque_type): Don't use of variable names 'node' and 'nextnode' to avoid possible conflict with list macros. Move variable declaration inside for loop after a statement to top of function.
2004-10-07Make more strings const.hasso
2004-10-072004-10-07 Paul Jakma <paul@dishone.st>paul
* bump version to 0.97.0, release imminent.
2004-10-07- make specfile actually workpaul
2004-10-072004-10-07 Paul Jakma <paul@dishone.st>paul
* ospf_snmp.c: Missed list typedef update * ospf_dump.c: Include sockopt.h for header swab functions.
2004-10-072004-10-07 Greg Troxel <gdt@sunpal7.mit.edu>gdt
* configure.ac: remove -Wpacked; 2.95.3 doesn't support it.
2004-10-05Number of warnings is down to 3 again in lib directory. A lot of const'shasso
added to strings and a lot of int -> unsigned int changes.
2004-10-052004-10-05 Paul Jakma <paul@dishone.st>paul
* thread.c: (funcname_thread_add_timer_timeval) new function, add timer at specified timeval. (funcname_thread_add_timer) use funcname_thread_add_timer_timeval. (funcname_thread_add_timer_msec) ditto
2004-10-052004-10-05 Paul Jakma <paul@dishone.st>paul
* irdp_packet.c: (parse_irdp_packet) style issues. Use sockopt_iphdrincl_swab_systoh. Try unbork the code. Checksum the ICMP data and actually compare it to received checksum. Check data length against claimed length in header. Always use ntoh.. when accessing addresses, even when the comparison happens to be endian-safe. (send_packet) minor style isues. Use sockopt_iphdrincl_swab_htosys. (irdp_iph_hton/ntoh) IP header to/from network/host order.
2004-10-052004-10-05 Paul Jakma <paul@dishone.st>paul
* ospf_packet.c: replace ospf_swap_iph_to... with sockopt_iphdrincl_swab_...
2004-10-052004-10-05 Paul Jakma <paul@dishone.st>paul
* sockopt.{c,h}: add sockopt_iphdrincl_swab_{htosys,systoh}, functions to change byte order between system IP_HDRINCL order and host order.
2004-10-05Even my time is limited :).hasso
2004-10-05Remove dead files.hasso
2004-10-04First small part of lib cleanup. Mainly "constification" of arguments andhasso
adding FIXME's.
2004-10-04Every file includes it and warns about it.hasso
2004-10-03Document stuff I broke today.hasso
2004-10-03Big vtysh cleanup. See changelogs for details.hasso
2004-10-03New way to handle secondary addresses from Gilad Arnold.hasso
2004-10-03Common router id.hasso
2004-09-302004-09-30 Paul Jakma <paul@dishone.st>paul
* Update default CFLAGS for gcc to keep Hasso busy.
2004-09-30* Wed Sep 15 2004 Paul Jakma <paul@dishone.st>paul
- build snmp support by default - build irdp support - build with shared libs - devel subpackage for archives and headers
2004-09-29Merge svn revision 1048 from Zebra cvs. Also add missing sokopt.h includehasso
to ospf6_network.h.
2004-09-28I think that it's better to report bugs into Bugzilla.hasso
2004-09-28CVS ignores symlinks, but I recently updated update-autotools to havepaul
libtool copy files rather than symlink. Ignore these now copied files.
2004-09-27This code didn't survive valgrinding. I wonder how it survived normal run.hasso
2004-09-272004-09-27 Paul Jakma <paul@dishone.st>paul
* ospf_dump.c: (ospf_ip_header_dump) Use HAVE_IP_HDRINCL_BSD_ORDER Apply to offset too. Print ip_cksum, lets not worry about possible 2.0.37 compile problems. * ospf_packet.c: (ospf_swap_iph_to{n,h}) Use HAVE_IP_HDRINCL_BSD_ORDER. (ospf_recv_packet) ditto. (ospf_write) Fixup iov argument to ospf_write_frags.
2004-09-272004-09-27 Paul Jakma <paul@dishone.st>paul
* zebra.h: Add WANT_OSPF_WRITE_FRAGMENT for ospfd to try to fragment oversized packets. Enabled only for Linux. Add HAVE_IP_HDRINCL_BSD_ORDER to define struct ip byte order, to consolidate various ad-hoc platform defines for same thing.
2004-09-272004-09-27 Paul Jakma <paul@dishone.st>paul
* update-autotools: libtoolize should copy files, rather than link. the whole idea is that dist files should not need auto*, etc. installed to be able to compile.
2004-09-272004-09-27 Paul Jakma <paul@dishone.st>paul
* ospf_packet.c: (ospf_write) (struct msghdr).msg_name is caddr_t on most platforms. (ospf_recv_packet) ditto. And msg_flags is not always there memset struct then set fields we care about rather than initialise all fields individually.