Skip to content
Commits on Oct 3, 2014
  1. Increment version to 1.9

    committed Oct 3, 2014
  2. Merge pull request #6 from benprew/master

    Found a few more things
    committed Oct 3, 2014
  3. Merge pull request #5 from benprew/patch-1

    Argv options
    committed Oct 3, 2014
Commits on Sep 24, 2014
  1. @benprew

    Several changes here, see below:

    1. chkport is now a string, since getaddrinfo expects service(port) as a string
    2. interval check time wasn't implemented, it was checking every cycle
    3. do_exit wasn't always stopping vpnc, so run stop_cmd explicity before exiting
    4. do_restart stops and starts since vpnc won't start if another instance is running
      4a. There was a bug where stop wasn't getting called before start, so do it in the same if
    benprew committed Sep 23, 2014
  2. @benprew

    rewrite is_network_up in terms of getaddrinfo

    is_network_up was failing to connect and gethostbyname is deprecated, so
    I rewrote it using getaddrinfo instead.
    benprew committed Sep 23, 2014
  3. @benprew
Commits on Sep 23, 2014
  1. @benprew

    Argv options

    Bug:
    
    `vpncwatch vpnc /etc/vpnc/vpnc.conf` wasn't using the config file specified.
    
    vpnc expects argv[0] to be the name of the binary, not the name of the config file
    benprew committed Sep 23, 2014
Commits on Oct 9, 2012
  1. Use assert(3) for input validation, clean up syslog(3) usage.

    Clean up the error reporting more and use assert(3) for input
    validation where it makes sense.
    committed Oct 9, 2012
Commits on Oct 7, 2012
  1. Start a TODO list.

    committed Oct 7, 2012
  2. Remove debugging syslog() statements.

    This was leftover from an attempt years ago to see what internal
    variables looked like on a uclibc system.
    committed Oct 7, 2012
  3. dcantrell@redhat.com -> david.l.cantrell@gmail.com

    Use my personal email address since this project really isn't
    something I do at work.
    committed Oct 7, 2012
  4. Prepare for 1.8.1 release.

    committed Oct 7, 2012
Commits on Oct 5, 2012
  1. Ignore some files in git.

    committed Oct 5, 2012
  2. Fix a problem with option handling and finding the vpnc command.

    #2
    
    Probably I do some mistake, I don't know. Here are examples:
    when i invoke command:
    vpncwatch /usr/sbin/vpnc /etc/vpnc/vpnc.conf
    everthing is ok. When I invoke such command:
    vpncwatch -c 1.2.3.4 -p 80 /usr/sbin/vpnc /etc/vpnc/vpnc.conf
    I'm getting such message in syslog:
    Sep 13 11:40:03 vpncwatch: -c not found in PATH
    Sep 13 11:40:03 vpncwatch: realpath failure: main:175
    
    vpncwatch-1.8
    OS-gentoo,gcc-4.5.4
    
    Also reported by other people.  The problem was with option handling
    after the getopt(3) loop.  The assumption in the code was that the
    vpnc program would always be argv[1], which is why vpncwatch would
    run in instances where you did not specify -c, -p, or -i.  This patch
    should fix things up for that problem.
    
    Error reporting and syslog usage still needs to be cleaned up and
    there are some debugging statements that could probably wrapped in
    an #ifdef DEBUG block.
    committed Oct 5, 2012
Commits on Sep 10, 2011
  1. Update Makefile for github.com

    Wow, it's been a long time since I used this Makefile.  It was still
    set up for code.google.com using svn.
    committed Sep 10, 2011
  2. Merge pull request #1 from jorrit/compilefix

    Fix compilation on modern gcc's and fix pidof() detection
    committed Sep 10, 2011
  3. @jorrit

    proc.c: change default return value of pidof() to 0 instead of -1 so …

    …the check in main() works
    jorrit committed Sep 10, 2011
  4. @jorrit

    net.c: Fix compile warning "format not a string literal and no format…

    … arguments" in is_network_up(). Fix derived from Gentoo patch set.
    jorrit committed Sep 10, 2011
  5. @jorrit

    proc.c: Reference proper header files for constants. Partially derive…

    …d from Gentoo patch set.
    jorrit committed Sep 10, 2011
  6. @jorrit
Commits on May 16, 2008
  1. Correctly call strcmp().

    committed May 16, 2008
Commits on May 4, 2008
  1. Ignore ChangeLog.

    committed May 4, 2008
  2. Make sure the source tree is up to date before generating a ChangeLog…

    …. Pipe the output of 'svn log' through fold so we wrap lines.
    committed May 4, 2008
  3. Zero errno before calling strtol(), because (from the Linux man page …

    …for the function) "Since strtol() can legitimately return 0, LONG_MAX, or LONG_MIN (LLONG_MAX or LLONG_MIN for strtoll()) on both success and failure, the calling program should set errno to 0 before the call, and then deter- mine if an error occurred by checking whether errno has a nonzero value after the call."
    committed May 4, 2008
Commits on Mar 19, 2008
  1. Initial import to code.google.com. Hooray for free project hosting th…

    …at's not overly complex like certain places (*cough* Sourceforge *cough*).
    committed Mar 19, 2008
Something went wrong with that request. Please try again.