by krisfoster
A simple daemon and client for sending keepalive messages. The server keeps a list of hostname to IP address, useful for when a remote DHCP client changes IP addresses.
Using gnugetopt for getopt_long() and doing things right
Corrected a bug with the last heard from time. Wasn't converting to/from network byte order. little and big endian systems play happily again.
No changes in the programs, just added GNU autoconf to do some dirty work.
Added timestamps so alookup now returns with the last time the host sent a message to the alive server. Clean up some pieces of the code (nothing spectacular).
Code clean up and very minor fixes
Oops.. forgot to convert the long int that's returned for the address in alookup to a pretty dotted decimal.
Corrected header order in alookup.c to compile correctly in FreeBSD.. apparently it doesn't like it if sys/types.h doesn't come before sys/socket.h. server properly replaces old IPs if a machine gains a new IP. that was the point right?
Fixed problems with not properly converting to/from host and network byte orders. corrected the linked list code. blah blah.
Completed the alookup tool. It's very rough but will do the trick while I work on the server side.
Completed some of the linked list code in alived. The client information is being stored properly by the server, and alookup is getting proper answers back.
Copyright © 2009 SourceForge, Inc. All rights reserved. Terms of Use