/*
 * UDP Logger, based on the iplogger package (specifically tcplog.c) by:
 *
 *	IpLogger Package
 *	Mike Edulla
 *	medulla@infosoc.com
 *
 * Modified by Psionic Alpha
 * psionic@darklight.com
 * Tue Jan 13 00:12:54 EST 1998
 * 
 * NOTES: (1) The define NAMESERVERIP is used to filter out all requests that
 *        go to whatever your most common name server is, as they are truely
 *        annoying and really there is no need to log them.  If you have need,
 *        just change it to something silly like "DONTSCANME", or anything else,
 *        that isn't an IP address, because its only doing a strcmp for a match.
 *
 *        (2) UDP logging is probably only for the truely paranoid.  There is 
 *        udp packets that are always flying around, because as far as I can 
 *        tell, the UDP protocol isn't streamed like TCP.  By this I mean,
 *        a TCP connection will connect on a port, and send data back and forth
 *        and eventually close, all with one connection.  A UDP connection will
 *        open a connection, send a packet, then close it.  Open a connection,
 *        send a packet, then close it.  What does this mean to you?
 *        ******ALOT****** of logging going on.
 *
 *        (3) You can NOT do a gethostbyname, or anything else, to determine
 *        what the hostname of the IP that made the connection.  Why? because
 *        the nameservice uses UDP packets.  When you go to look up the IP,
 *        the name server will send it back on a UDP packet, you'll log that,
 *        go to look up the IP of the name server that sent the UDP packet,
 *        etc, etc, and get into an infinite loop with your name server. BAD!
 *     
 *        (4) I've set the default openlog facility to LOG_LOCAL3, as I use
 *        uselog to dump everything from local3 into its own log file.  You
 *        can change this to whatever you like, or change it back to LOG_DAEMON,
 *        to have it sent to your default messages file.
 *
 *        (5) I have ONLY tried this on a linux 2.0.33 box, and while this
 *        should be portable to any OS that the original iplogger package
 *        was, I have no way of verifying it.
 *
 *        (6) I attempted to contact the original author of the tcplog.c
 *        package, but the E-Mail address was no longer valid.
 *
 *	  (7) I'm extremely busy, I made this for myself and am only releasing
 *        it because I havn't seen any other UDP loggers around.  I will not
 *        provide tech support, or anything else of that nature.  If you find
 *        a serious bug, you can e-mail me at the above address, but otherwise
 *        I probably won't respond.  (And I definately won't be adding anything
 *        else to it).
 * 
 */
