]> jfr.im git - irc/ircd-hybrid/libopm.git/log
irc/ircd-hybrid/libopm.git
21 years agoMissed one instance of inetpton() AFTER-BOPM3-MERGE
andy [Mon, 16 Dec 2002 19:46:53 +0000 (19:46 +0000)] 
Missed one instance of inetpton()

21 years agoAdd configure check for inet_pton.
andy [Mon, 16 Dec 2002 17:53:13 +0000 (17:53 +0000)] 
Add configure check for inet_pton.

Rename inetpton() in inet.c to inet_pton() and only use it if build host
does not have its own inet_pton().

21 years agoPut in ufds_size file descriptors instead of 1024
strtok [Mon, 16 Dec 2002 01:22:11 +0000 (01:22 +0000)] 
Put in ufds_size file descriptors instead of 1024

21 years agoChanged timeout to 0 seconds!
strtok [Mon, 16 Dec 2002 01:03:44 +0000 (01:03 +0000)] 
Changed timeout to 0 seconds!

21 years agolibopm.c: Grow ufds (poll array) as needed, rather than hard coded 1024 limit
strtok [Sun, 15 Dec 2002 03:02:45 +0000 (03:02 +0000)] 
libopm.c: Grow ufds (poll array) as needed, rather than hard coded 1024 limit

21 years agoAdded opm_scanend and opm_end functions to API
strtok [Wed, 11 Dec 2002 00:34:52 +0000 (00:34 +0000)] 
Added opm_scanend and opm_end functions to API

21 years agoAdded OPM_TYPE_STRINGLIST
strtok [Tue, 10 Dec 2002 00:44:57 +0000 (00:44 +0000)] 
Added OPM_TYPE_STRINGLIST
Allow multiple entries for TARGET_STRING

21 years agoRemoved inet.h from opm.h. There was no reason for this inclusion.
strtok [Sat, 7 Dec 2002 05:28:33 +0000 (05:28 +0000)] 
Removed inet.h from opm.h. There was no reason for this inclusion.

21 years agoUpdate autotools.
andy [Mon, 2 Dec 2002 21:35:14 +0000 (21:35 +0000)] 
Update autotools.

21 years ago*** empty log message ***
andy [Mon, 2 Dec 2002 21:34:39 +0000 (21:34 +0000)] 
*** empty log message ***

21 years agoAdded data element to OPM_REMOTE_T
strtok [Tue, 12 Nov 2002 22:02:25 +0000 (22:02 +0000)] 
Added data element to OPM_REMOTE_T

21 years agoAnalogX proxy
dgl [Sun, 10 Nov 2002 11:56:40 +0000 (11:56 +0000)] 
AnalogX proxy
(http://www.analogx.com/contents/download/network/proxy.htm)
seems to use port 6588

21 years agoAdded proper GPL to hybrid copyright
strtok [Fri, 8 Nov 2002 02:56:03 +0000 (02:56 +0000)] 
Added proper GPL to hybrid copyright

21 years agoAdded (void **) cast to MyFree #define to avoid warning
strtok [Thu, 7 Nov 2002 21:09:33 +0000 (21:09 +0000)] 
Added (void **) cast to MyFree #define to avoid warning

21 years agoAdded code to MyFree to NULL a pointer after freeing it
strtok [Thu, 7 Nov 2002 20:19:06 +0000 (20:19 +0000)] 
Added code to MyFree to NULL a pointer after freeing it

21 years agoAdded != NULL check on MyFree as to avoid having to check for NULL BEFORE MyFree...
strtok [Thu, 7 Nov 2002 19:53:50 +0000 (19:53 +0000)] 
Added != NULL check on MyFree as to avoid having to check for NULL BEFORE MyFree is called everytime

21 years agoAdded SENDBUFLEN and READBUFLEN.
strtok [Thu, 7 Nov 2002 01:37:33 +0000 (01:37 +0000)] 
Added SENDBUFLEN and READBUFLEN.

21 years agoAdded some more http ports and put the adding code in a loop as
dgl [Thu, 7 Nov 2002 00:38:56 +0000 (00:38 +0000)] 
Added some more http ports and put the adding code in a loop as
generally http post and http are the same ports.

21 years agoIt does help if you test after changing from using a : to a space as the
dgl [Thu, 7 Nov 2002 00:31:36 +0000 (00:31 +0000)] 
It does help if you test after changing from using a : to a space as the
seperator
----------------------------------------------------------------------
Enter Log.  Lines beginning with `CVS:' are removed automatically
Committing in . CVS: CVS: Modified Files: CVS: bopchecker.pl
----------------------------------------------------------------------

21 years agoMake use of the opm_remote_addtype function by adding support for
dgl [Thu, 7 Nov 2002 00:26:06 +0000 (00:26 +0000)] 
Make use of the opm_remote_addtype function by adding support for
scanning additional ports in bopchecker.pl

Changed names to be consistant with rest of libopm
Cisco -> ROUTER
POST -> HTTPPOST
and all uppercase names.

21 years agoFixed memory leaks in config.c
strtok [Wed, 6 Nov 2002 07:36:35 +0000 (07:36 +0000)] 
Fixed memory leaks in config.c

21 years agoFixed a bug where a freed conn was possibly used in the scan end code
strtok [Wed, 6 Nov 2002 07:12:20 +0000 (07:12 +0000)] 
Fixed a bug where a freed conn was possibly used in the scan end code

21 years agoAdded note about the void * argument to the callback functions in the API documentation
strtok [Tue, 5 Nov 2002 23:03:55 +0000 (23:03 +0000)] 
Added note about the void * argument to the callback functions in the API documentation

21 years agoAdded opm_remote_addtype function
strtok [Tue, 5 Nov 2002 21:42:20 +0000 (21:42 +0000)] 
Added opm_remote_addtype function

21 years ago10 seconds timeout isn't always quite enough..
dgl [Sat, 2 Nov 2002 11:18:20 +0000 (11:18 +0000)] 
10 seconds timeout isn't always quite enough..

21 years agolowered fdlimit
dgl [Thu, 31 Oct 2002 20:07:15 +0000 (20:07 +0000)] 
lowered fdlimit

21 years agoRemoved TYPE_CUSTOM from perl module.
strtok [Mon, 28 Oct 2002 06:34:13 +0000 (06:34 +0000)] 
Removed TYPE_CUSTOM from perl module.
Added TYPE_HTTPPOST to perl module.

21 years agoAdded dg's post proxy detection code. Tested on webcache.bt.net
strtok [Mon, 28 Oct 2002 06:06:07 +0000 (06:06 +0000)] 
Added dg's post proxy detection code. Tested on webcache.bt.net

21 years agoAdded assert on calloc fail
strtok [Mon, 28 Oct 2002 05:49:39 +0000 (05:49 +0000)] 
Added assert on calloc fail

21 years agoCleaned up write_function/read_function and added read_function functionality.
strtok [Mon, 28 Oct 2002 01:20:22 +0000 (01:20 +0000)] 
Cleaned up write_function/read_function and added read_function functionality.

21 years agoRemoved libopm_addcustom and custom protocol support.
strtok [Mon, 28 Oct 2002 01:13:33 +0000 (01:13 +0000)] 
Removed libopm_addcustom and custom protocol support.

21 years agoAdded comment for opm_active
strtok [Sun, 27 Oct 2002 21:52:04 +0000 (21:52 +0000)] 
Added comment for opm_active

21 years agoFixed bug where on timeouts, libopm did a callback after freeing the conn struct...
strtok [Sun, 27 Oct 2002 21:45:16 +0000 (21:45 +0000)] 
Fixed bug where on timeouts, libopm did a callback after freeing the conn struct! (found by dg)

21 years agoremoved remote callbacks
dgl [Sun, 27 Oct 2002 20:07:49 +0000 (20:07 +0000)] 
removed remote callbacks

21 years agoRemoved remote struct callbacks, now only scanner-wide callbacks are
strtok [Sun, 27 Oct 2002 19:20:18 +0000 (19:20 +0000)] 
Removed remote struct callbacks, now only scanner-wide callbacks are
used.

21 years agoreturn textual versions of the protocols (and http post scanning in
dgl [Sun, 27 Oct 2002 15:35:12 +0000 (15:35 +0000)] 
return textual versions of the protocols (and http post scanning in
bopchecker - when custom protocols work that is)

21 years agoignore Makefile too
dgl [Sun, 27 Oct 2002 14:45:34 +0000 (14:45 +0000)] 
ignore Makefile too

21 years agoport wrong around around
dgl [Sun, 27 Oct 2002 14:45:15 +0000 (14:45 +0000)] 
port wrong around around

21 years agoOPM/bopchecker.pl:
dgl [Sun, 27 Oct 2002 14:17:06 +0000 (14:17 +0000)] 
OPM/bopchecker.pl:
Added bopchecker.pl script (if you don't want to install the module to
the whole system you can test it with):
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" bopchecker.pl

src/libopm.c:
OPM/OPM.xs:
Added opm_active to return number of active scans (so bopchecker can
exit when it has finished).

src/libopm.c:
Cleaned up read() code so it didn't rely on timeout when the tcp port is
closed.

21 years agoThe opm perl module!
dgl [Sat, 26 Oct 2002 19:10:06 +0000 (19:10 +0000)] 
The opm perl module!

21 years agopatch to add data as param for callbacks..
dgl [Sat, 26 Oct 2002 18:51:03 +0000 (18:51 +0000)] 
patch to add data as param for callbacks..

21 years agoAdded logic to libopm_proxy_custom that finished parsing if the target string is...
strtok [Wed, 16 Oct 2002 01:19:15 +0000 (01:19 +0000)] 
Added logic to libopm_proxy_custom that finished parsing if the target string is larger than 511
characters

21 years agoInitialize id and format to NULL in the built in protocol table
strtok [Tue, 15 Oct 2002 20:00:37 +0000 (20:00 +0000)] 
Initialize id and format to NULL in the built in protocol table

21 years agoAdded custom protocol support
strtok [Tue, 15 Oct 2002 19:55:19 +0000 (19:55 +0000)] 
Added custom protocol support

21 years agoAdded default config settings
strtok [Sat, 12 Oct 2002 21:28:41 +0000 (21:28 +0000)] 
Added default config settings

21 years agoAbort scans where there are no protocols defined (bug found by dg).
strtok [Tue, 24 Sep 2002 00:41:28 +0000 (00:41 +0000)] 
Abort scans where there are no protocols defined (bug found by dg).
In check_queue use LIST_SIZE of the individual connections list instead of the global protocols
list when determining the projected file descriptor size

21 years agoFixed 'opm_remote_free' section header
strtok [Sun, 22 Sep 2002 03:42:53 +0000 (03:42 +0000)] 
Fixed 'opm_remote_free' section header

21 years agoRemoved addr from OPM_REMOTE_T listing in api doc
strtok [Sat, 21 Sep 2002 23:24:56 +0000 (23:24 +0000)] 
Removed addr from OPM_REMOTE_T listing in api doc

21 years agoAdded IPV4 Binding functionality
strtok [Sat, 21 Sep 2002 23:10:39 +0000 (23:10 +0000)] 
Added IPV4 Binding functionality
Added OPM_ERR_NOFD (CALLBACK_ERROR)
Added OPM_ERR_BIND (CALLBACK_ERROR)

21 years agoMoved OPM_REMOTE_T::addr to OPM_SCAN_T::addr
strtok [Sat, 21 Sep 2002 22:33:18 +0000 (22:33 +0000)] 
Moved OPM_REMOTE_T::addr to OPM_SCAN_T::addr
Added OPM_ERR_BADADDR on return of opm_scan if the IP is bad

21 years agoAdded proxy types to API doc
strtok [Sat, 21 Sep 2002 06:59:19 +0000 (06:59 +0000)] 
Added proxy types to API doc
Fixed > on email in API doc

21 years agoBetter describing of OPM_ERR_T codes in libopm-api.txt
strtok [Sat, 21 Sep 2002 05:50:26 +0000 (05:50 +0000)] 
Better describing of OPM_ERR_T codes in libopm-api.txt

21 years agoUpdated libopm-api.txt
strtok [Sat, 21 Sep 2002 05:09:55 +0000 (05:09 +0000)] 
Updated libopm-api.txt

21 years agoRenamed malloc wrappers with libopm_ prefix and added #defines for MyMalloc and MyFree
strtok [Sat, 21 Sep 2002 03:31:06 +0000 (03:31 +0000)] 
Renamed malloc wrappers with libopm_ prefix and added #defines for MyMalloc and MyFree

21 years agoPrefixed proxy functions with libopm_
strtok [Sat, 21 Sep 2002 02:41:23 +0000 (02:41 +0000)] 
Prefixed proxy functions with libopm_

21 years agoPrefixed functions in libopm.c and list.c with libopm_
strtok [Sat, 21 Sep 2002 01:42:51 +0000 (01:42 +0000)] 
Prefixed functions in libopm.c and list.c with libopm_
Made certain functions (which should be) static

21 years agoChanged all config.c functions to have a libopm_ prefix
strtok [Sat, 21 Sep 2002 00:50:03 +0000 (00:50 +0000)] 
Changed all config.c functions to have a libopm_ prefix

21 years agoAdded libopm-api.txt
strtok [Sat, 14 Sep 2002 22:59:43 +0000 (22:59 +0000)] 
Added libopm-api.txt

21 years agoUse opm_callback on test.c instead of opm_remote_callback
strtok [Sat, 14 Sep 2002 21:58:39 +0000 (21:58 +0000)] 
Use opm_callback on test.c instead of opm_remote_callback

21 years agoRestructured callback code to use an array.
strtok [Sat, 14 Sep 2002 20:44:24 +0000 (20:44 +0000)] 
Restructured callback code to use an array.

21 years agoRemoved printf's and comments used to debug
strtok [Sat, 14 Sep 2002 02:07:57 +0000 (02:07 +0000)] 
Removed printf's and comments used to debug

21 years agoCreated a scan queue, if this is working as it should be... the performance increase is
strtok [Sat, 14 Sep 2002 02:04:49 +0000 (02:04 +0000)] 
Created a scan queue, if this is working as it should be... the performance increase is
amazing.

21 years agoCheck for Nick Faldo
andy [Thu, 12 Sep 2002 06:40:37 +0000 (06:40 +0000)] 
Check for Nick Faldo

21 years agoRemoving a bunch of unused autoconf tests.
andy [Thu, 12 Sep 2002 06:14:59 +0000 (06:14 +0000)] 
Removing a bunch of unused autoconf tests.

21 years agoSome systems don't have inet_aton(), Solaris being a great example. Here's
andy [Thu, 12 Sep 2002 06:12:12 +0000 (06:12 +0000)] 
Some systems don't have inet_aton(), Solaris being a great example.  Here's
our own implementation which is only included if inet_aton() is not
available.

21 years agoIf a system has strings.h, it needs to be #included wherever string.h is
andy [Thu, 12 Sep 2002 05:58:49 +0000 (05:58 +0000)] 
If a system has strings.h, it needs to be #included wherever string.h is
#included.

21 years agoCheck for unistd.h.
andy [Thu, 12 Sep 2002 05:55:56 +0000 (05:55 +0000)] 
Check for unistd.h.

21 years agoIgnore generated binary
andy [Thu, 12 Sep 2002 05:50:27 +0000 (05:50 +0000)] 
Ignore generated binary

21 years agoCheck if we need & have sys/time.h.
andy [Thu, 12 Sep 2002 05:49:49 +0000 (05:49 +0000)] 
Check if we need & have sys/time.h.

21 years agoCheck HAVE_FCNTL_H.
andy [Thu, 12 Sep 2002 05:45:07 +0000 (05:45 +0000)] 
Check HAVE_FCNTL_H.

21 years agoCheck HAVE_SYS_POLL_H.
andy [Thu, 12 Sep 2002 05:42:42 +0000 (05:42 +0000)] 
Check HAVE_SYS_POLL_H.

21 years agoAdd RCS tags to all .c files. Protect standard headers with STDC_HEADERS.
andy [Thu, 12 Sep 2002 05:36:48 +0000 (05:36 +0000)] 
Add RCS tags to all .c files.  Protect standard headers with STDC_HEADERS.
Correct missing "const" in inetntop() prototype.

21 years agoDOn't install "test" and "test_debug", they're just test programs.
andy [Thu, 12 Sep 2002 04:39:29 +0000 (04:39 +0000)] 
DOn't install "test" and "test_debug", they're just test programs.

21 years agoAll of these files I initially copied in. But, apparently, "You should use the
andy [Thu, 12 Sep 2002 03:56:07 +0000 (03:56 +0000)] 
All of these files I initially copied in.  But, apparently, "You should use the
libtoolize program, rather than manually copying these files into your
package."  *smacked wrist*

21 years agoChange default install prefix to /usr/local/libopm.
andy [Thu, 12 Sep 2002 03:45:07 +0000 (03:45 +0000)] 
Change default install prefix to /usr/local/libopm.
Install LICENSE as well.

21 years agoFirst stab at autoconf/automake/libtoolizing libopm.
andy [Thu, 12 Sep 2002 03:41:18 +0000 (03:41 +0000)] 
First stab at autoconf/automake/libtoolizing libopm.

21 years agoAnd again -- some people will need ./configure
andy [Thu, 12 Sep 2002 03:40:01 +0000 (03:40 +0000)] 
And again -- some people will need ./configure

21 years agoMore things for CVS to ignore.
andy [Thu, 12 Sep 2002 03:38:03 +0000 (03:38 +0000)] 
More things for CVS to ignore.

21 years agoA little bit zealous with the cvsignore there.
andy [Thu, 12 Sep 2002 03:33:24 +0000 (03:33 +0000)] 
A little bit zealous with the cvsignore there.

21 years agoautoconf / automake / libtool produce lots of files that need to be
andy [Thu, 12 Sep 2002 03:32:33 +0000 (03:32 +0000)] 
autoconf / automake / libtool produce lots of files that need to be
ignored!

21 years agoFixed various major memory leaks.
strtok [Wed, 11 Sep 2002 18:49:17 +0000 (18:49 +0000)] 
Fixed various major memory leaks.
Made more NULL style changes.

21 years agoAdded checks for NULL function callbacks.
strtok [Wed, 11 Sep 2002 07:47:00 +0000 (07:47 +0000)] 
Added checks for NULL function callbacks.

21 years agoFixed scan_free and connection_free clenaup
strtok [Mon, 9 Sep 2002 20:15:29 +0000 (20:15 +0000)] 
Fixed scan_free and connection_free clenaup

21 years agoFix for timeouts. Only timeout a socket if it's not unestablished!
strtok [Mon, 9 Sep 2002 18:48:27 +0000 (18:48 +0000)] 
Fix for timeouts. Only timeout a socket if it's not unestablished!

21 years agoAdded fd_limit functionality
strtok [Mon, 9 Sep 2002 18:44:13 +0000 (18:44 +0000)] 
Added fd_limit functionality
Added unsigned int fd_use in OPM_T

21 years agoUpdated test.c to handle error callbacks
strtok [Mon, 9 Sep 2002 18:07:50 +0000 (18:07 +0000)] 
Updated test.c to handle error callbacks

21 years agoAdded setup_remote function in libopm.c to fill a remote struct with temporary connec...
strtok [Mon, 9 Sep 2002 17:50:29 +0000 (17:50 +0000)] 
Added setup_remote function in libopm.c to fill a remote struct with temporary connection struct information
Added OPM_CONFIG_MAX_READ and functionality
Added OPM_CONFIG_TIMEOUT and functionality
Added OPM_ERR_MAX_READ and do_error functionality

21 years agoFixed timeout logic
strtok [Mon, 9 Sep 2002 07:54:36 +0000 (07:54 +0000)] 
Fixed timeout logic
Fixed passing of proper protocol on fun_timeout

21 years agoConverted all protocols to libopm (cisco, socks4, socks5 and wingate)
strtok [Mon, 9 Sep 2002 07:50:03 +0000 (07:50 +0000)] 
Converted all protocols to libopm (cisco, socks4, socks5 and wingate)

21 years agoAdded check_close code
strtok [Mon, 9 Sep 2002 07:15:59 +0000 (07:15 +0000)] 
Added check_close code
Added fun_timeout functionality
Added fun_end functionality

21 years agoAdded callback functionality for fun_negfail
strtok [Mon, 9 Sep 2002 06:28:46 +0000 (06:28 +0000)] 
Added callback functionality for fun_negfail

21 years agoAdded OPM_ERR_BADPROTOCOL
strtok [Mon, 9 Sep 2002 04:22:14 +0000 (04:22 +0000)] 
Added OPM_ERR_BADPROTOCOL

21 years agoRenamed OPM_ERR_INVALIDKEY to BADKEY
strtok [Mon, 9 Sep 2002 04:19:10 +0000 (04:19 +0000)] 
Renamed OPM_ERR_INVALIDKEY to BADKEY
Renamed OPM_ERR_BADADDRESS to BADVALUE

21 years agoAdded do_error function
strtok [Mon, 9 Sep 2002 04:16:43 +0000 (04:16 +0000)] 
Added do_error function
Added error codes for opm_config return

21 years agoAdded do_openproxy and open proxy callback
strtok [Mon, 9 Sep 2002 03:39:40 +0000 (03:39 +0000)] 
Added do_openproxy and open proxy callback

21 years agoAdded proxy.c/proxy.h which contains protocol specific functions
strtok [Mon, 9 Sep 2002 03:12:24 +0000 (03:12 +0000)] 
Added proxy.c/proxy.h which contains protocol specific functions

21 years agoRead in data from connection and check against target string
strtok [Mon, 9 Sep 2002 03:11:09 +0000 (03:11 +0000)] 
Read in data from connection and check against target string

21 years agoUse NULL instead of 0 in list.c.
strtok [Mon, 9 Sep 2002 00:15:12 +0000 (00:15 +0000)] 
Use NULL instead of 0 in list.c.

21 years agoAdded connect and poll code
strtok [Sun, 8 Sep 2002 23:56:51 +0000 (23:56 +0000)] 
Added connect and poll code

21 years agoAdded check_poll function and start of poll() code
strtok [Thu, 5 Sep 2002 12:42:00 +0000 (12:42 +0000)] 
Added check_poll function and start of poll() code
Added do_readready function
Added do_writeready function