summaryrefslogtreecommitdiffstats
path: root/watchquagga/watchquagga.c
Commit message (Collapse)AuthorAgeFilesLines
* Removing compiler warnings.Chris Hall2010-04-161-1/+7
| | | | | | | | Removed nearly 100 compiler warnings in the various routing daemons which now clean compile. Removed one warning in vty.c, which was obscured by the other warnings. SO... this commit corrects the previous one.
* Getting BGP Engine to start and removing warnings.Chris Hall2010-01-241-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finish the wiring required to get bgp_msg_read to process OPEN messages into the connection's open_state, and be able to check for correct peer AS, etc. Removed bugs preventing messages from being written. Added BGP Id check to collision detection logic. Removed as many warnings from comilation as possible. Replaced horrible FIFO kludge in the process. (Introduced the even more horrible miyagi kludge.) modified: bgpd/bgp_advertise.c modified: bgpd/bgp_advertise.h modified: bgpd/bgp_connection.c modified: bgpd/bgp_connection.h modified: bgpd/bgp_debug.c modified: bgpd/bgp_fsm.c modified: bgpd/bgp_msg_read.c modified: bgpd/bgp_msg_write.c modified: bgpd/bgp_network.c modified: bgpd/bgp_nexthop.c modified: bgpd/bgp_notification.c modified: bgpd/bgp_open.c modified: bgpd/bgp_packet.c modified: bgpd/bgp_session.c modified: bgpd/bgp_session.h modified: bgpd/bgpd.c modified: lib/Makefile.am modified: lib/distribute.c modified: lib/if_rmap.c new file: lib/miyagi.h modified: lib/prefix.h modified: lib/sockopt.c modified: lib/stream.c modified: lib/thread.c modified: lib/vty.c modified: lib/zebra.h modified: tests/bgp_capability_test.c modified: tests/bgp_mp_attr_test.c modified: tests/ecommunity_test.c modified: tests/heavy-thread.c modified: tests/heavy-wq.c modified: tests/heavy.c modified: tests/main.c modified: tests/test-checksum.c modified: tests/test-sig.c modified: watchquagga/watchquagga.c modified: zebra/if_netlink.c modified: zebra/ioctl.c modified: zebra/rt_netlink.c modified: zebra/rtread_netlink.c
* all: check return value from daemon() callStephen Hemminger2009-08-131-1/+5
| | | | | | * */*main.c: (main) Current versions of Gcc warn if the return value for daemon() is not checked. So add a simple test and exit on failure.
* [autoconf] bugs 162,303,178: Fix 'present but can not be compiled' warningsPaul Jakma2007-05-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 2007-05-09 Paul Jakma <paul.jakma@sun.com> * configure.ac: sys/conf.h depends on sys/param.h, at least on FBSD 6.2. (bug #363) Should check for in_pktinfo for IRDP 2006-05-27 Paul Jakma <paul.jakma@sun.com> * configure.ac: General cleanup of header and type checks, introducing an internal define, QUAGGA_INCLUDES, to build up a list of stuff to include so as to avoid 'present but cant be compiled' warnings. Misc additional checks of things missing according to autoscan. Add LIBM, for bgpd's use of libm, so as to avoid burdening LIBS, and all the binaries, with libm linkage. Remove the bad practice of using m4 changequote(), just quote the []'s in the case statements properly. This should fix bugs 162, 303 and 178. * */*.{c,h}: Update all HAVE_* to the standard autoconf namespaced HAVE_* defines. I.e. HAVE_SA_LEN -> HAVE_STRUCT_SOCKADDR_SA_LEN, * bgpd/Makefile.am: Add LIBM to bgpd's LDADD, for pow().
* 2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-02-171-2/+2
| | | | * watchquagga.c: (handle_read) Use new ERRNO_IO_RETRY macro.
* 2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-02-161-13/+5
| | | | | * watchquagga.c: (try_connect) Use new set_nonblocking function instead of calling fcntl directly.
* 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-121-5/+8
| | | | | | | | | | | * watchquagga.c: (run_job) Fix bug: delay.tv_sec was being used without having been initialized when the "force" argument was true. (try_restart) When phased restart is stopping the routing daemons, it should tell run_job to update the restart interval. (phase_check) In final step of phased restart when the routing daemons are being started again, tell run_job not to update the restart interval (this is now done when the daemons are stopped).
* 2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-291-10/+10
| | | | | * watchquagga.c: In several places, cast pid_t to int for printf to avoid complaints on Solaris 8.
* 2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-291-22/+5
| | | | * watchquagga.c: Fix headers: get most stuff from zebra.h.
* 2004-12-23 Paul Jakma <paul@dishone.st>paul2004-12-231-1/+2
| | | | * watchquagga.c: Add missing getopt.h include
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-221-22/+26
| | | | | * watchquagga.c: Try for gcc 2.95 compatibility (avoid %z and a tricky initialization).
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-221-2/+45
| | | | | | * watchquagga.c: Add -b option to circumvent difficulties passing embedded spaces in command-line arguments. This is an ugly hack, we should probably use a config file instead.
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-221-3/+8
| | | | * watchquagga.c: Use new config.h define for DAEMON_VTY_DIR.
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-221-1/+9
| | | | * watchquagga.c: Get PATH_WATCHQUAGGA_PID from config.h.
* 2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-221-0/+1348
* {ChangeLog,watchquagga.c,Makefile.am}: Created.