OpenBSD CVS

CVS log for src/sbin/isakmpd/virtual.c


[BACK] Up to [local] / src / sbin / isakmpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:44 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Aug 20 22:02:21 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert

Revision 1.31 / (download) - annotate - [select for diffs], Thu Feb 3 08:49:46 2011 UTC (13 years, 4 months ago) by phessler
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.30: +19 -2 lines
Diff to previous 1.30 (colored)

When binding to addresses, ignore any IP address not in the current
routing domain.

While here, update comment on what the ioctl is used for (from sthen@).

OK mikeb@, sthen@

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 28 17:57:15 2009 UTC (15 years, 4 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

cleaning up my tree:  trivial KNF and a comment fix.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Oct 21 13:32:56 2008 UTC (15 years, 7 months ago) by markus
Branch: MAIN
Changes since 1.28: +32 -3 lines
Diff to previous 1.28 (colored)

do not listen on tentative (during DAD), duplicated (after DAD) or
detached addresses. bind(2) will not allow this. ok hshoexer, fries

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Fri May 18 21:34:43 2007 UTC (17 years ago) by ckuethe
Branch: OPENBSD_4_0
Changes since 1.26: +9 -3 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Original Commit by hshoexer@, original commit message:
===========================================================================
Fix interop-issue with vpn peers that start reyking on port 4500 when
NAT-T is used.  Solves problems with cisco and openswan.

Tested by todd@ (cisco interop), ok ho@

Original fix with Stefan Roth (stefan dot roth at siemens dot com),
thanks!
===========================================================================

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Fri May 18 21:34:07 2007 UTC (17 years ago) by ckuethe
Branch: OPENBSD_4_1
Changes since 1.26: +9 -3 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Original Commit by hshoexer@, original commit message:
===========================================================================
Fix interop-issue with vpn peers that start reyking on port 4500 when
NAT-T is used.  Solves problems with cisco and openswan.

Tested by todd@ (cisco interop), ok ho@

Original fix with Stefan Roth (stefan dot roth at siemens dot com),
thanks!
===========================================================================

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 16 13:01:39 2007 UTC (17 years, 2 months ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.27: +2 -3 lines
Diff to previous 1.27 (colored)

There's no point in checking ptr for NULL before doing free(ptr)
since free(NULL) is just fine.

ok hshoexer@

Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 15 19:37:46 2007 UTC (17 years, 2 months ago) by hshoexer
Branch: MAIN
Changes since 1.26: +9 -3 lines
Diff to previous 1.26 (colored)

Fix interop-issue with vpn peers that start reyking on port 4500 when
NAT-T is used.  Solves problems with cisco and openswan.

Tested by todd@ (cisco interop), ok ho@

Original fix with Stefan Roth (stefan dot roth at siemens dot com),
thanks!

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 2 19:35:55 2006 UTC (18 years ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_0_BASE
Branch point for: OPENBSD_4_1, OPENBSD_4_0
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Big spelling cleanup, no binary change.  From david@

Revision 1.25 / (download) - annotate - [select for diffs], Sun Nov 13 18:24:24 2005 UTC (18 years, 7 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

zap unused variable and silence gcc.
From Mike Belopuhov <mkb at crypt dot org dot ru>
Thanks!

Revision 1.24 / (download) - annotate - [select for diffs], Thu Oct 27 08:19:59 2005 UTC (18 years, 7 months ago) by hshoexer
Branch: MAIN
Changes since 1.23: +8 -5 lines
Diff to previous 1.23 (colored)

Do not touch LIST_* macro internals.

with otto@, ok ho@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 25 13:35:47 2005 UTC (18 years, 7 months ago) by hshoexer
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

some small knf, ok ho@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 25 09:57:58 2005 UTC (18 years, 9 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.21: +1 -15 lines
Diff to previous 1.21 (colored)

read the information from the INADDR_ANY socket and do not loop if
a new IP appears (cf udp.c, rev 1.74), ok ho@ hshoexer@ cloder@ deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 8 23:15:26 2005 UTC (19 years, 2 months ago) by hshoexer
Branch: MAIN
Changes since 1.20: +6 -7 lines
Diff to previous 1.20 (colored)

get rid of sysdep_sa_len

ok cloder@

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 8 19:40:03 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +1 -3 lines
Diff to previous 1.19 (colored)

USE_DEBUG is bye bye

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 8 16:37:15 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +1 -11 lines
Diff to previous 1.18 (colored)

nat-traversal always

Revision 1.18 / (download) - annotate - [select for diffs], Fri Apr 8 16:07:22 2005 UTC (19 years, 2 months ago) by cloder
Branch: MAIN
Changes since 1.17: +1 -7 lines
Diff to previous 1.17 (colored)

Remove references to LINUX_IPSEC

Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 7 18:43:17 2005 UTC (19 years, 2 months ago) by hshoexer
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

remove unnecessary typecasts.

ok ho@

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 6 16:00:20 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +14 -16 lines
Diff to previous 1.15 (colored)

knf, ok cloder

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 5 18:06:06 2005 UTC (19 years, 2 months ago) by cloder
Branch: MAIN
Changes since 1.14: +44 -37 lines
Diff to previous 1.14 (colored)

Add -T flag to isakmpd to disable NAT-T support from the command line.
This lets binat setups work again without having to recompile isakmpd.
OK ho, hshoexer.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 4 19:31:11 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +1 -4 lines
Diff to previous 1.13 (colored)

spacing; ok cloder

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 5 12:21:35 2005 UTC (19 years, 3 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

No need for err.h. hshoexer@ ok

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 4 16:55:15 2005 UTC (19 years, 3 months ago) by hshoexer
Branch: MAIN
Changes since 1.11: +34 -29 lines
Diff to previous 1.11 (colored)

cleanup binding and cloning functions, use text2port(), correctly
determin the encap port.  This makes udpencap fully useable on ports
other than the default 4500.

ok ho cloder

Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 27 13:12:12 2005 UTC (19 years, 3 months ago) by hshoexer
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

where possible, use bzero instead of memset

ok cloder henning

Revision 1.10 / (download) - annotate - [select for diffs], Tue Dec 14 10:17:28 2004 UTC (19 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Allow the Address, Network, or Netmask values of the <IPsec-ID> to be
specified with an interface name (in which case the first address is used)
or the keyword 'default' (in which case the address is selected based on the
default route). eg:

[roadwarrior-ip]
ID-type=                IPV4_ADDR
Address=                default

ok ho@ hshoexer@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Sep 20 21:36:50 2004 UTC (19 years, 8 months ago) by hshoexer
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

compile cleanly with -Wsign-compare
ok ho

Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 10 19:21:01 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

spacing

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 8 19:11:06 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +7 -7 lines
Diff to previous 1.6 (colored)

spacing

Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:09 2004 UTC (19 years, 10 months ago) by ho
Branch: MAIN
Changes since 1.5: +27 -20 lines
Diff to previous 1.5 (colored)

Rewrite the transport reference count code to avoid leaks.
hshoexer@ ok.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 8 19:53:46 2004 UTC (19 years, 11 months ago) by hshoexer
Branch: MAIN
Changes since 1.4: +12 -3 lines
Diff to previous 1.4 (colored)

free() and close() in error path.

ok ho@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 22 03:44:55 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.3: +15 -1 lines
Diff to previous 1.3 (colored)

The NAT-T drafts suggest we should drop incoming messages arriving on
the old port (500) after we've switched to the new one.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 21 18:40:01 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.2: +13 -8 lines
Diff to previous 1.2 (colored)

When switching from main to encap transport, copy dst port if
translated (NAT).

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 21 13:09:01 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.1: +38 -57 lines
Diff to previous 1.1 (colored)

Port floating (500->4500) for p1 and p2 exchanges.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 20 15:24:05 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN

NAT-Traversal for isakmpd. Work in progress...
hshoexer@ ok.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.