chiark / gitweb /
preload-hacks
7 years agonoip.c: Fix some holdovers with hardcoded address families.
Mark Wooding [Mon, 2 May 2016 12:24:53 +0000 (13:24 +0100)]
noip.c: Fix some holdovers with hardcoded address families.

Now all of the references to `_INET' are in the `Address-type hacking'
section where they belong.  This should really have been done as part of
the IPv6 work, but unaccountably wasn't.

7 years agonoip.1: Fix source formatting.
Mark Wooding [Mon, 2 May 2016 21:59:16 +0000 (22:59 +0100)]
noip.1: Fix source formatting.

7 years agonoip.c: Make sure parsers update the cursor when they finish.
Mark Wooding [Mon, 2 May 2016 21:25:35 +0000 (22:25 +0100)]
noip.c: Make sure parsers update the cursor when they finish.

Even the ones which don't expect anything else to follow.

7 years agonoip.c (parse_acl_line): Don't skip on past a zero byte.
Mark Wooding [Mon, 2 May 2016 21:23:39 +0000 (22:23 +0100)]
noip.c (parse_acl_line): Don't skip on past a zero byte.

7 years agonoip.c: Add `const' qualifiers on `aclnode *' arguments.
Mark Wooding [Mon, 2 May 2016 21:09:22 +0000 (22:09 +0100)]
noip.c: Add `const' qualifiers on `aclnode *' arguments.

7 years agonoip.c: Missing blank line.
Mark Wooding [Mon, 2 May 2016 21:09:59 +0000 (22:09 +0100)]
noip.c: Missing blank line.

Very important.

7 years agonoip.c (decode_inet_addr): Fix doc comment.
Mark Wooding [Mon, 2 May 2016 12:24:53 +0000 (13:24 +0100)]
noip.c (decode_inet_addr): Fix doc comment.

8 years agoMakefile: Actually distribute `debian/source/format'.
Mark Wooding [Fri, 29 Apr 2016 20:17:38 +0000 (21:17 +0100)]
Makefile: Actually distribute `debian/source/format'.

Did it in too much of a rush.

8 years agoRelease 1.1.3. 1.1.3
Mark Wooding [Mon, 25 Apr 2016 13:51:33 +0000 (14:51 +0100)]
Release 1.1.3.

8 years agonoip.c: Fix memset length error.
Mark Wooding [Mon, 25 Apr 2016 13:23:33 +0000 (14:23 +0100)]
noip.c: Fix memset length error.

Reported by Ian Jackson; thanks.

8 years agoRelease 1.1.2. 1.1.2
Mark Wooding [Sat, 16 Apr 2016 14:59:47 +0000 (15:59 +0100)]
Release 1.1.2.

8 years agonoip.c (create_sockdir): Make sure the socket directory isn't a symlink.
Mark Wooding [Thu, 24 Mar 2016 11:06:41 +0000 (11:06 +0000)]
noip.c (create_sockdir): Make sure the socket directory isn't a symlink.

Oh, dear.  This is a long-standing bug, and a bad one for systems which
don't set per-user $TMPDIR directories.

8 years agoRelease 1.1.1. 1.1.1
Mark Wooding [Thu, 24 Mar 2016 11:06:41 +0000 (11:06 +0000)]
Release 1.1.1.

8 years agodebian/: Multi-Arch support.
Mark Wooding [Thu, 24 Mar 2016 11:06:41 +0000 (11:06 +0000)]
debian/: Multi-Arch support.

8 years agodebian/control: Fix Build-Depends.
Mark Wooding [Thu, 24 Mar 2016 11:06:41 +0000 (11:06 +0000)]
debian/control: Fix Build-Depends.

8 years agodebian/source/format: Apparently we need one of these nowadays.
Mark Wooding [Thu, 24 Mar 2016 11:06:41 +0000 (11:06 +0000)]
debian/source/format: Apparently we need one of these nowadays.

8 years agodebian/control: `fw' changed name to `fwd' in 2008.
Mark Wooding [Thu, 24 Mar 2016 11:06:41 +0000 (11:06 +0000)]
debian/control: `fw' changed name to `fwd' in 2008.

Maybe it's time this package caught up.

10 years agoRelease 1.1.0. 1.1.0
Mark Wooding [Thu, 24 Apr 2014 08:36:54 +0000 (09:36 +0100)]
Release 1.1.0.

Now with IPv6.

10 years agoREADME: Fettle to include IPv6, and update configuration.
Mark Wooding [Thu, 24 Apr 2014 09:12:48 +0000 (10:12 +0100)]
README: Fettle to include IPv6, and update configuration.

10 years agonoip.c, noip.1: Add IPv6 support.
Mark Wooding [Wed, 23 Apr 2014 23:15:52 +0000 (00:15 +0100)]
noip.c, noip.1: Add IPv6 support.

Just like that.  Of course, the hard work was done earlier.

10 years agonoip.c, noip.1: Multiple address family support.
Mark Wooding [Wed, 23 Apr 2014 09:49:30 +0000 (10:49 +0100)]
noip.c, noip.1: Multiple address family support.

Abstract out all of the address-family-specific hacking into a
collection of utility functions.  Now, with a little luck, adding
additional address families later will be straightforward.

The main casualty is the notional support for arbitrary netmasks, though
in fact they never worked correctly.  They've now been silently dropped:
the new parser simply refuses to try.

10 years agonoip.c (get_local_ipaddrs): Rewrite to use getifaddrs(3).
Mark Wooding [Fri, 25 Apr 2014 08:49:26 +0000 (09:49 +0100)]
noip.c (get_local_ipaddrs): Rewrite to use getifaddrs(3).

This is a much better function to use because it actually gives us all
of the addresses on each interface rather than just the first.

Also, discard duplicate addresses, because they're more likely now.  We
should have done this already, but unaccountably neglected to.

10 years agoFix the GPL notices.
Mark Wooding [Fri, 25 Apr 2014 08:32:14 +0000 (09:32 +0100)]
Fix the GPL notices.

12 years agonoip.c: Allow PF_NETLINK sockets. 1.0.8
Mark Wooding [Tue, 13 Mar 2012 21:30:14 +0000 (21:30 +0000)]
noip.c: Allow PF_NETLINK sockets.

Anything fiddling with them probably knows what its doing.  Chromium
fails unless it can get one.

12 years agodebian/rules: Switch to using debhelper 9 directly.
Mark Wooding [Tue, 13 Mar 2012 21:29:51 +0000 (21:29 +0000)]
debian/rules: Switch to using debhelper 9 directly.

12 years agonoip.c: Shut up some GCC warnings.
Mark Wooding [Tue, 13 Mar 2012 21:28:39 +0000 (21:28 +0000)]
noip.c: Shut up some GCC warnings.

I have no idea what fixup_p was meant to mean, but it's gone now.

12 years agowithlib.in: Fix bashism (`export VAR=VALUE'). 1.0.7
Mark Wooding [Fri, 10 Jun 2011 20:00:07 +0000 (21:00 +0100)]
withlib.in: Fix bashism (`export VAR=VALUE').

For some reason, under `dash', this causes (say) `noip' to work
correctly for exactly one level of nesting.  An attempt to invoke a
nested `noip' results in

export: 4: noip.so: bad variable name

This appears to be a result of `dash' doing word splitting too early.

13 years agoRelease 1.0.6. 1.0.6
Mark Wooding [Mon, 14 Jun 2010 00:27:44 +0000 (01:27 +0100)]
Release 1.0.6.

13 years agonoip.c: Remove hints that we might intercept close(2).
Mark Wooding [Sat, 5 Jun 2010 13:45:58 +0000 (14:45 +0100)]
noip.c: Remove hints that we might intercept close(2).

We don't because glibc makes it too hard.

13 years agonoip.c: Make sure it's an AF_UNIX address before counting the length.
Mark Wooding [Sat, 5 Jun 2010 13:45:01 +0000 (14:45 +0100)]
noip.c: Make sure it's an AF_UNIX address before counting the length.

13 years agoMakefile: Cardboard cutout silent rules build.
Mark Wooding [Sat, 5 Jun 2010 10:53:59 +0000 (11:53 +0100)]
Makefile: Cardboard cutout silent rules build.

13 years agonoip.c: Silence GCC warnings about unused return values.
Mark Wooding [Sat, 5 Jun 2010 10:53:37 +0000 (11:53 +0100)]
noip.c: Silence GCC warnings about unused return values.

Actually act on errors from fgets while skipping the header on
/proc/net/unix, even though it's unlikely to be bad and we'll fail
later anyway.  The write in printerr is not worth worrying about.

13 years agonoip.c: Boring whitespace fixes.
Mark Wooding [Sat, 5 Jun 2010 10:52:11 +0000 (11:52 +0100)]
noip.c: Boring whitespace fixes.

14 years agoRelease 1.0.5. 1.0.5
Mark Wooding [Sat, 26 Dec 2009 12:17:10 +0000 (12:17 +0000)]
Release 1.0.5.

14 years agoMerge branch 'master' of metalzone:public-git/preload-hacks
Mark Wooding [Sat, 26 Dec 2009 12:16:09 +0000 (12:16 +0000)]
Merge branch 'master' of metalzone:public-git/preload-hacks

* 'master' of metalzone:public-git/preload-hacks:
  Version 1.0.4.
  noip (decode_inet_addr): Be more careful when converting addresses.
  noip: Don't try to support families other than AF_UNIX and AF_INET.

14 years agonoip.c: Only fiddle with `errno' from `connect' if we faked things.
Mark Wooding [Sat, 26 Dec 2009 12:15:34 +0000 (12:15 +0000)]
noip.c: Only fiddle with `errno' from `connect' if we faked things.

Otherwise some programs get confused.

14 years agoREADME: Add some more notes about how useful `noip' is.
Mark Wooding [Sat, 26 Dec 2009 12:15:11 +0000 (12:15 +0000)]
README: Add some more notes about how useful `noip' is.

15 years agoVersion 1.0.4. 1.0.4
Mark Wooding [Mon, 12 Jan 2009 17:57:54 +0000 (17:57 +0000)]
Version 1.0.4.

15 years agonoip (decode_inet_addr): Be more careful when converting addresses.
Mark Wooding [Mon, 12 Jan 2009 17:53:35 +0000 (17:53 +0000)]
noip (decode_inet_addr): Be more careful when converting addresses.

The old version of decode_inet_addr would convert empty Unix-domain
addresses to wildcard Internet addresses, which is erroneous in a number
of situations.  In particular, this causes problems in some servers
which maintain parallel Unix-domain and Internet listening sockets, and
use the address family reported by accept(2) to decide what to do: if
the incoming connection is from an unbound (but real) Unix-domain
socket, it gets misinterpreted.

This fixes decode_inet_addr to be more selective about its decoding of
empty addresses.  It must do the decoding when swapping in a genuine IP
socket, but when called via return_fake_name it's wrong to do this: a
remote socket which ought to be decoded will have been bound either
explicitly by the peer or implicitly by do_implicit_bind.  (Actually,
getsockname might now be wrong when called on an unbound socket, but
that's probably a small price to pay -- and there's no way of returning
the right answer in this case anyway.)

15 years agonoip: Don't try to support families other than AF_UNIX and AF_INET.
Mark Wooding [Mon, 12 Jan 2009 17:21:58 +0000 (17:21 +0000)]
noip: Don't try to support families other than AF_UNIX and AF_INET.

If there's demand, I might try to hack in IPv6 later.  But not now.

15 years agoVersion 1.0.3. 1.0.3
Mark Wooding [Mon, 22 Dec 2008 01:24:48 +0000 (01:24 +0000)]
Version 1.0.3.

15 years agodebian: Add lintian-overrides.
Mark Wooding [Mon, 22 Dec 2008 01:23:12 +0000 (01:23 +0000)]
debian: Add lintian-overrides.

The libraries we ship aren't for linking against, so they don't need
sonames.

15 years agonoip.c, uopen.c: Add commentary and GPL notices.
Mark Wooding [Mon, 22 Dec 2008 01:23:12 +0000 (01:23 +0000)]
noip.c, uopen.c: Add commentary and GPL notices.

This makes the whole package look much more palatable.

15 years agoMakefile: Spruce up considerably.
Mark Wooding [Mon, 22 Dec 2008 01:23:10 +0000 (01:23 +0000)]
Makefile: Spruce up considerably.

It's now more maintainable, and much easier to read.

15 years agouopen.1: Reports wrong section in .TH line.
Mark Wooding [Sun, 21 Dec 2008 22:20:55 +0000 (22:20 +0000)]
uopen.1: Reports wrong section in .TH line.

Spotted by lintian.

15 years agoDebian 1.0.2. 1.0.2
Mark Wooding [Sun, 21 Dec 2008 20:31:41 +0000 (20:31 +0000)]
Debian 1.0.2.

15 years agoBuild: Use auto-version to discover the version number.
Mark Wooding [Sun, 21 Dec 2008 20:30:27 +0000 (20:30 +0000)]
Build: Use auto-version to discover the version number.

15 years agoREADME: Provide a handy overview and tutorial.
Mark Wooding [Sun, 21 Dec 2008 20:28:01 +0000 (20:28 +0000)]
README: Provide a handy overview and tutorial.

It could probably do with building instructions and stuff.

15 years agodebian: Switch to CDBS.
Mark Wooding [Sun, 21 Dec 2008 19:35:33 +0000 (19:35 +0000)]
debian: Switch to CDBS.

This involves hacking the Makefile a little to separate CFLAGS and
LDFLAGS into things the Debian build system can mess with and things
which will screw the build.

It also involves messing with the debian/*.install files in obvious
ways.  And the build leaves a bunch of cruft which needs ignoring.

15 years agonoip: Fix error reporting. 1.0.1
Mark Wooding [Thu, 15 May 2008 18:53:09 +0000 (19:53 +0100)]
noip: Fix error reporting.

Previously, noip would report a connection failure to an unbound socket
as ENOENT (no such file or directory).  This confuses Sage (among
others, probably) which expect ECONNREFUSED.

Bump the version to 1.0.1 as a result.

15 years agoFix trailing whitespace.
Mark Wooding [Wed, 14 May 2008 07:50:26 +0000 (08:50 +0100)]
Fix trailing whitespace.

18 years agonoip: Fix ACL parsing bug in port ranges.
Mark Wooding [Wed, 1 Mar 2006 00:36:31 +0000 (00:36 +0000)]
noip: Fix ACL parsing bug in port ranges.

The code failed to skip past the `-' separating the parts of the port
range, so the max port always got forced to zero.  Less than useful,
really.

18 years agomanual: Various tweaks.
Mark Wooding [Wed, 8 Feb 2006 20:04:32 +0000 (20:04 +0000)]
manual: Various tweaks.

  * Fix author email addresses.

  * Fix terrible wording mistake in noip manual, and correct the DNS
    port number (presumably typoed).

Also sneak COPYING into the .gitignore file.

18 years agoinfra: Add a copy of the GPL.
Mark Wooding [Wed, 8 Feb 2006 18:56:13 +0000 (18:56 +0000)]
infra: Add a copy of the GPL.

18 years agoExtract Subversion ignore data.
Mark Wooding [Mon, 6 Feb 2006 19:10:39 +0000 (19:10 +0000)]
Extract Subversion ignore data.

18 years agodebian: Fix maintainer address.
mdw [Mon, 6 Feb 2006 19:10:15 +0000 (19:10 +0000)]
debian: Fix maintainer address.

18 years agoManual fix. 1.0.0
mdw [Mon, 23 May 2005 17:17:29 +0000 (17:17 +0000)]
Manual fix.

18 years agoVarious bug fixes.
mdw [Mon, 23 May 2005 10:49:04 +0000 (10:49 +0000)]
Various bug fixes.

18 years agoCheck the proposed socket directory before trusting its contents.
mdw [Fri, 6 May 2005 20:31:51 +0000 (20:31 +0000)]
Check the proposed socket directory before trusting its contents.

18 years agoAllow user control over autobinding. Also try ports at random to start
mdw [Fri, 6 May 2005 15:02:59 +0000 (15:02 +0000)]
Allow user control over autobinding.  Also try ports at random to start
off with, falling back to linear search.

18 years agonoip: set ACLs from environment variables.
mdw [Fri, 6 May 2005 14:25:06 +0000 (14:25 +0000)]
noip: set ACLs from environment variables.

18 years agoDebianize.
mdw [Fri, 6 May 2005 09:56:28 +0000 (09:56 +0000)]
Debianize.

18 years agoIt seems to work!
mdw [Thu, 5 May 2005 23:32:05 +0000 (23:32 +0000)]
It seems to work!

18 years agoNew project.
mdw [Thu, 5 May 2005 23:30:55 +0000 (23:30 +0000)]
New project.