]> jfr.im git - irc/ircd-hybrid/libopm.git/log
irc/ircd-hybrid/libopm.git
20 years agoConfigurable list of protocols. origin/ANDY_PLAY
andy [Wed, 27 Aug 2003 20:35:36 +0000 (20:35 +0000)] 
Configurable list of protocols.

20 years agoOops, forgot to add those files.
andy [Tue, 26 Aug 2003 06:08:42 +0000 (06:08 +0000)] 
Oops, forgot to add those files.

HTTPGET and MINDJAIL protocols added.

HTTPPOST protocol split off into a separate file. (it's going to be a good
candidate for modularisation since many ircds don't allow POST proxies on
anyway, and may not want to bother testing for it).

20 years agoBring MINDJAIL and HTTPGET support into the main libopm, but with intention to
andy [Tue, 26 Aug 2003 06:06:49 +0000 (06:06 +0000)] 
Bring MINDJAIL and HTTPGET support into the main libopm, but with intention to
break every protocol off later into individual modules.

Remove hard-coded configuration options, now change all config keys to be
strings.

The default config keys required by the provided protocols are added when
opm_create is called, but additional keys as used by any contributed protocols
can be added by the caller using opm_config_add.

20 years agoMove RCSID and USE_VAR definitions out to defs.h.
andy [Thu, 3 Jul 2003 14:35:59 +0000 (14:35 +0000)] 
Move RCSID and USE_VAR definitions out to defs.h.

20 years agoDon't elements-- twice
strtok [Fri, 27 Jun 2003 18:51:02 +0000 (18:51 +0000)] 
Don't elements-- twice

20 years agoIgnore libtool.
andy [Sun, 22 Jun 2003 14:19:41 +0000 (14:19 +0000)] 
Ignore libtool.

20 years agoThese shouldn't be in CVS.
andy [Sun, 22 Jun 2003 14:18:49 +0000 (14:18 +0000)] 
These shouldn't be in CVS.

20 years agoMostly pedantry.
andy [Sun, 22 Jun 2003 13:19:40 +0000 (13:19 +0000)] 
Mostly pedantry.

20 years agoReopen logfiles on receipt of SIGUSR1.
andy [Sat, 21 Jun 2003 04:31:37 +0000 (04:31 +0000)] 
Reopen logfiles on receipt of SIGUSR1.
An example contrib log rotation script which uses this.

20 years agoOops, missed one USE_VAR.
andy [Sat, 21 Jun 2003 04:27:32 +0000 (04:27 +0000)] 
Oops, missed one USE_VAR.

20 years agoFix a gcc3-ism. AFTER_ANDY_CLEANUP
andy [Fri, 20 Jun 2003 04:55:14 +0000 (04:55 +0000)] 
Fix a gcc3-ism.

20 years agoLOTS of tidying up to compile with no warnings.
andy [Fri, 20 Jun 2003 04:18:44 +0000 (04:18 +0000)] 
LOTS of tidying up to compile with no warnings.

20 years agoTidy up fascist CFLAGS again.
andy [Fri, 20 Jun 2003 04:12:35 +0000 (04:12 +0000)] 
Tidy up fascist CFLAGS again.

20 years agoOops, don't need OPM_NODE_T *p anymore... BEFORE_ANDY_CLEANUP
strtok [Thu, 19 Jun 2003 23:18:52 +0000 (23:18 +0000)] 
Oops, don't need OPM_NODE_T *p anymore...

20 years agolist_remove no longer searches for node in list
strtok [Thu, 19 Jun 2003 23:13:20 +0000 (23:13 +0000)] 
list_remove no longer searches for node in list

20 years agoTidy up the fascist CFLAGS and add an option for -Werror.
andy [Thu, 19 Jun 2003 16:34:45 +0000 (16:34 +0000)] 
Tidy up the fascist CFLAGS and add an option for -Werror.

20 years agoFixed mystery memory use, was an fd_use problem.
strtok [Mon, 16 Jun 2003 21:03:01 +0000 (21:03 +0000)] 
Fixed mystery memory use, was an fd_use problem.

20 years agoAs per patch supplied by Christopher Bongaarts:
andy [Thu, 12 Jun 2003 05:51:14 +0000 (05:51 +0000)] 
As per patch supplied by Christopher Bongaarts:

http://lists.blitzed.org/pipermail/bopm/2003-June/001282.html

Portability fixes for Sun Forte compiler:

- No C++ comments
- No inline
- Don't initialize values of an auto variable from members of a struct
  passed via pointer

NOTE: I have not added in any of the firedns parts yet - we need to think
about that some more.

20 years agogcc 3 prototype warning fixes.
dgl [Mon, 2 Jun 2003 23:57:32 +0000 (23:57 +0000)] 
gcc 3 prototype warning fixes.

21 years agos// missing
dgl [Sun, 4 May 2003 02:54:49 +0000 (02:54 +0000)] 
s// missing

21 years agoAllow use of UNKNOWN as a protocol to be shorthand for all protocols.
andy [Tue, 8 Apr 2003 02:33:12 +0000 (02:33 +0000)] 
Allow use of UNKNOWN as a protocol to be shorthand for all protocols.

21 years agoOops, forgot the $_
andy [Tue, 8 Apr 2003 02:13:53 +0000 (02:13 +0000)] 
Oops, forgot the $_

21 years agoUpdated ports and other config.
andy [Tue, 8 Apr 2003 02:10:55 +0000 (02:10 +0000)] 
Updated ports and other config.

21 years agoremove debug print.. oops
dgl [Wed, 2 Apr 2003 17:38:02 +0000 (17:38 +0000)] 
remove debug print.. oops

21 years agoAdd a default option, meaning default ports are not scanned when extra ports
dgl [Wed, 2 Apr 2003 17:37:11 +0000 (17:37 +0000)] 
Add a default option, meaning default ports are not scanned when extra ports
are provided unless this option is set (different to previous behaviour).

21 years agoFix <check> typo, add a bit about fdstat.
andy [Wed, 12 Feb 2003 17:31:52 +0000 (17:31 +0000)] 
Fix <check> typo, add a bit about fdstat.

21 years ago- Added perldoc style docs to OPM.pm, not really complete docs but used in
dgl [Sat, 8 Feb 2003 22:41:30 +0000 (22:41 +0000)] 
- Added perldoc style docs to OPM.pm, not really complete docs but used in
  conjuction with libopm-api.txt they provide enough detail.
- Added opm_end and opm_endscan ($scan->end and $scan->endscan) to the perl
  API.
- Typo fixed opm_scanend -> opm_endscan in libopm-api.txt.

21 years agolibopm.c: Extra checks for OPM_STATE_CLOSED to prevent multiple open proxy
strtok [Wed, 5 Feb 2003 20:47:17 +0000 (20:47 +0000)] 
libopm.c: Extra checks for OPM_STATE_CLOSED to prevent multiple open proxy
          callbacks on the same connection.

21 years agoRemove goat/faldo. Regenerate autotools.
andy [Sun, 2 Feb 2003 22:59:23 +0000 (22:59 +0000)] 
Remove goat/faldo.  Regenerate autotools.

21 years agoNeeded by autotools.
andy [Mon, 20 Jan 2003 02:31:10 +0000 (02:31 +0000)] 
Needed by autotools.

21 years agoBetter socket libs check from Warren Young <warren@etr-usa.com>.
andy [Mon, 20 Jan 2003 02:12:45 +0000 (02:12 +0000)] 
Better socket libs check from Warren Young <redacted>.
Header reorganisation for benefit of some solaris machines..

21 years agoscan all protocols + extra scans by default
dgl [Tue, 14 Jan 2003 23:31:20 +0000 (23:31 +0000)] 
scan all protocols + extra scans by default

21 years agosrc/snprintf.[ch]:
andy [Sat, 11 Jan 2003 06:18:42 +0000 (06:18 +0000)] 
src/snprintf.[ch]:
Added Mark Martinec's replacement (v)snprintf from
http://www.ijs.si/software/snprintf/ for systems without (v)snprintf
        (or with a broken one)

src/compat.c:
Renamed inet_aton to libopm_inet_aton to avoid clashes.

src/compat.h:
On systems without inet_aton, use libopm_inet_aton.

On systems without (or with broken) (v)snprintf, use
libopm_snprintf (from snprintf.c).

On systems without inet_pton, use libopm_inetpton (from inet.c).

src/inet.c:
For now made inetntoa() static, as it is used nowhere else but
this file.

Commented out inetntop() -- it doesn't seem to be used anywhere?

Removed bopm_gethostbyname() -- it wasn't used anywhere.

src/proxy.c:
No longer needs to include stdio.h.

src/test.c:
Needs to include compat.h and be linked with compat.o.

21 years agoChekc for working snprintf (but do nothing about it yet). This macro came
andy [Thu, 9 Jan 2003 17:30:18 +0000 (17:30 +0000)] 
Chekc for working snprintf (but do nothing about it yet).  This macro came
from http://www.gnu.org/software/ac-archive/ac_func_snprintf.html and is
copyright RĂ¼diger Kuhlmann <redacted>.

21 years agoThat needs to be inet_pton.
andy [Thu, 9 Jan 2003 15:08:15 +0000 (15:08 +0000)] 
That needs to be inet_pton.

21 years agoAdd a clean target for docs/Makefile
andy [Thu, 9 Jan 2003 14:16:41 +0000 (14:16 +0000)] 
Add a clean target for docs/Makefile

21 years agolink test programs with compat.o otherwise they won't compile if they need
andy [Thu, 9 Jan 2003 14:13:49 +0000 (14:13 +0000)] 
link test programs with compat.o otherwise they won't compile if they need
stuff from it.

21 years agoExtra documentation concerning the functionality of opm_end and callbacks
strtok [Wed, 8 Jan 2003 07:13:50 +0000 (07:13 +0000)] 
Extra documentation concerning the functionality of opm_end and callbacks

21 years agoUpdated ChangeLog
strtok [Mon, 6 Jan 2003 21:02:07 +0000 (21:02 +0000)] 
Updated ChangeLog

21 years agoForgot Makefile.in
andy [Mon, 6 Jan 2003 20:40:27 +0000 (20:40 +0000)] 
Forgot Makefile.in

21 years agoMore ports.
andy [Mon, 6 Jan 2003 19:22:48 +0000 (19:22 +0000)] 
More ports.

21 years agoAnd ignore those.
andy [Mon, 6 Jan 2003 12:49:01 +0000 (12:49 +0000)] 
And ignore those.

21 years agoStart of doxygen stuff.
andy [Mon, 6 Jan 2003 12:48:21 +0000 (12:48 +0000)] 
Start of doxygen stuff.

21 years agoInstall opm_ headers, as requested by TimeMr14C and jv.
andy [Sun, 5 Jan 2003 20:22:17 +0000 (20:22 +0000)] 
Install opm_ headers, as requested by TimeMr14C and jv.

21 years agoAdded ChangeLog
strtok [Sun, 5 Jan 2003 20:07:43 +0000 (20:07 +0000)] 
Added ChangeLog

21 years agoUpdated for how we tend to be using this on Blitzed.
andy [Sat, 4 Jan 2003 04:49:21 +0000 (04:49 +0000)] 
Updated for how we tend to be using this on Blitzed.

21 years agomemset sockaddr for bind()
strtok [Fri, 3 Jan 2003 06:18:09 +0000 (06:18 +0000)] 
memset sockaddr for bind()

21 years agoIf protocols are provided only scan them, rather than doing everything + them.
dgl [Thu, 2 Jan 2003 01:14:47 +0000 (01:14 +0000)] 
If protocols are provided only scan them, rather than doing everything + them.
Also actually accept , in the input, as it was documented before..

21 years agoDon't set fd close on exec REL-3-0 REL-3-0R2
strtok [Sun, 22 Dec 2002 21:53:51 +0000 (21:53 +0000)] 
Don't set fd close on exec

21 years agoSet FD closed on exec
strtok [Sun, 22 Dec 2002 21:41:13 +0000 (21:41 +0000)] 
Set FD closed on exec

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