OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.39 / (download) - annotate - [select for diffs], Thu Jan 28 01:18:44 2021 UTC (3 years, 4 months ago) by mortimer
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, HEAD
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

Extern transport_list. Fixed compilation with -fno-common.

ok deraadt@

Revision 1.38 / (download) - annotate - [select for diffs], Tue Dec 5 20:31:45 2017 UTC (6 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

Use clock_gettime(CLOCK_MONOTONIC) to schedule timers

From Scott Cheloha, ok tb@

Revision 1.37 / (download) - annotate - [select for diffs], Thu Mar 10 07:32:16 2016 UTC (8 years, 2 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored)

Don't retransmit responses for unauthenticated messages.
Base on diff from Yuuichi Someya

ok markus reyk mikeb

Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 21 04:30:14 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, 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
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored)

remove excessive includes

Revision 1.35 / (download) - annotate - [select for diffs], Wed Dec 28 10:57:35 2005 UTC (18 years, 5 months ago) by hshoexer
Branch: MAIN
CVS Tags: 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, 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, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.34: +1 -11 lines
Diff to previous 1.34 (colored)

remove some unused functions and an unused variable found by lint.

ok markus@

Revision 1.34 / (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.33: +1 -2 lines
Diff to previous 1.33 (colored)

Do not touch LIST_* macro internals.

with otto@, ok ho@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Apr 8 23:15:26 2005 UTC (19 years, 1 month ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.32: +3 -5 lines
Diff to previous 1.32 (colored)

get rid of sysdep_sa_len

ok cloder@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Apr 8 16:32:11 2005 UTC (19 years, 1 month ago) by hshoexer
Branch: MAIN
Changes since 1.31: +15 -22 lines
Diff to previous 1.31 (colored)

improve logging, original diff and ok cloder@

Revision 1.31 / (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.30: +14 -15 lines
Diff to previous 1.30 (colored)

spacing; ok cloder

Revision 1.30 / (download) - annotate - [select for diffs], Sun Aug 8 19:11:06 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

spacing

Revision 1.29 / (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.28: +20 -23 lines
Diff to previous 1.28 (colored)

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

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jun 21 13:09:00 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.27: +10 -9 lines
Diff to previous 1.27 (colored)

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

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 20 15:24:05 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.26: +95 -56 lines
Diff to previous 1.26 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 14 09:55:42 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.25: +60 -44 lines
Diff to previous 1.25 (colored)

KNF, style, 80c, etc. hshoexer@ ok

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jun 9 14:02:44 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Style nits. hshoexer@ ok

Revision 1.24 / (download) - annotate - [select for diffs], Thu Apr 15 18:39:26 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.23: +228 -235 lines
Diff to previous 1.23 (colored)

partial move to KNF.  More to come.  This has happened because there
are a raft of source code auditors who are willing to help improve this
code only if this is done, and hey, isakmpd does need our standard
auditing process.  ok ho hshoexer

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 18 02:03:28 2003 UTC (20 years, 5 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

Mention the exchange name when giving up on a message. Suggested by
Michael Coulter.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 20 09:14:14 2003 UTC (20 years, 11 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.21: +15 -4 lines
Diff to previous 1.21 (colored)

Be a bit more verbose when we give up on ever seeing a response to the
last message we sent out. In case we initiated the exchange, one possible
and common reason is a network level problem (pf, routing, whatnot), if
we're the responder, there is also the possibility we were scanned by
something like ike-scan.  markus@ ok.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 10 16:41:29 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

boring cleanups

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 3 14:28:16 2003 UTC (21 years ago) by ho
Branch: MAIN
Changes since 1.19: +1 -6 lines
Diff to previous 1.19 (colored)

Remove clauses 3 and 4. With approval from Niklas Hallqvist and
Niels Provos.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Mar 14 14:49:08 2003 UTC (21 years, 2 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Spelling fixes from david@. jmc@ ok.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:07 2002 UTC (21 years, 11 months ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

rm trailing whitespace

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 7 21:59:22 2002 UTC (22 years ago) by ho
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

Avoid some gcc3 warnings. From David Krause <openbsd@davidkrause.com>

Revision 1.16 / (download) - annotate - [select for diffs], Fri Oct 26 11:37:16 2001 UTC (22 years, 7 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.15: +34 -5 lines
Diff to previous 1.15 (colored)

Sometimes the daemon will not die promptly on SIGTERM, even though
all DELETE notifications is sent out.  Create a prioritized send-queue
for the DELETE messages to solve this. Some (C)-2001.
niklas@ ok.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Oct 5 05:54:50 2001 UTC (22 years, 8 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Tweak a couple of debug levels.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 23 23:11:02 2001 UTC (22 years, 9 months ago) by angelos
Branch: MAIN
Changes since 1.13: +12 -1 lines
Diff to previous 1.13 (colored)

Reinitialize transports on SIGUP.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Tue May 8 12:45:25 2001 UTC (23 years ago) by ho
Branch: OPENBSD_2_8
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Pull in isakmpd from 2.9 to 2.8 branch.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 9 22:09:53 2001 UTC (23 years, 1 month ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

More style fixes...

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 10 13:35:12 2000 UTC (23 years, 7 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

message.c: Merge with EOM 1.156
message.h: Merge with EOM 1.51
transport.c: Merge with EOM 1.43

author: provos
use message_send_expire for timeouts. okay niklas@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 7 06:57:34 2000 UTC (23 years, 8 months ago) by niklas
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Merge with EOM 1.42

author: provos
remove previous timeout if adding a new one

Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 25 17:23:42 2000 UTC (24 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.9: +17 -17 lines
Diff to previous 1.9 (colored)

regress/crypto/Makefile: Merge with EOM 1.5
regress/dh/Makefile: Merge with EOM 1.7
regress/group/Makefile: Merge with EOM 1.9
regress/prf/Makefile: Merge with EOM 1.4
regress/rsakeygen/Makefile: Merge with EOM 1.8
regress/x509/Makefile: Merge with EOM 1.10
Makefile: Merge with EOM 1.62
attribute.c: Merge with EOM 1.10
sa.c: Merge with EOM 1.99
conf.c: Merge with EOM 1.20
crypto.c: Merge with EOM 1.28
isakmpd.c: Merge with EOM 1.45
connection.c: Merge with EOM 1.19
doi.h: Merge with EOM 1.28
field.c: Merge with EOM 1.11
exchange.c: Merge with EOM 1.116
ike_auth.c: Merge with EOM 1.44
pf_key_v2.c: Merge with EOM 1.37
ike_phase_1.c: Merge with EOM 1.22
ipsec.c: Merge with EOM 1.118
isakmp_doi.c: Merge with EOM 1.40
log.c: Merge with EOM 1.26
log.h: Merge with EOM 1.18
math_group.c: Merge with EOM 1.23
message.c: Merge with EOM 1.144
pf_encap.c: Merge with EOM 1.70
policy.c: Merge with EOM 1.18
timer.c: Merge with EOM 1.13
transport.c: Merge with EOM 1.41
udp.c: Merge with EOM 1.47
ui.c: Merge with EOM 1.37
x509.c: Merge with EOM 1.36

author: niklas
Made debug logging a compile time selectable feature

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 1 20:43:45 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

sysdep/openbsd/sysdep.c: Merge with EOM 1.7
DESIGN-NOTES: Merge with EOM 1.42
Makefile: Merge with EOM 1.51
app.c: Merge with EOM 1.6
conf.c: Merge with EOM 1.18
init.c: Merge with EOM 1.14
isakmpd.conf.5: Merge with EOM 1.19
pf_encap.c: Merge with EOM 1.64
pf_encap.h: Merge with EOM 1.12
pf_key_v2.h: Merge with EOM 1.3
sysdep.h: Merge with EOM 1.16
transport.c: Merge with EOM 1.40
ui.c: Merge with EOM 1.32

author: niklas
A new connection abstraction

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 30 22:33:09 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

Merge with EOM 1.39

author: niklas
Unused var removed

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 30 11:46:48 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.6: +80 -55 lines
Diff to previous 1.6 (colored)

Merge with EOM 1.38

author: niklas
Careful rewrite of the message sending to cope with exchanges disappearing
in post-send functions.

author: niklas
Try to fix the retransmit business, so info exchanges does not retransmit

author: niklas
Keep track of messages in the send queue from the exchange point of view.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 27 21:12:31 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.5: +80 -75 lines
Diff to previous 1.5 (colored)

Merge with EOM 1.35

author: niklas
Do not lose the transport we are handling

author: niklas
Remove obsolete XXX comment.

author: niklas
Collapse MSG_NO_RETRANS & MSG_KEEP into MSG_LAST.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 19 21:04:00 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.4: +52 -3 lines
Diff to previous 1.4 (colored)

./transport.c: Merge with EOM 1.32

Add LOG_REPORT to always go to logchannel regardless of level; misc small fixes

Nitpick: better english

Move transport-independent reporting to transport_report instead.  Also
report the socket fd for UDP transports.  A derived transport class is always
aligned with the transport superclass, so there is no need to search for
the udp_transport that matches a given transport.

Add transport_report

transport refcnt should start with 0

Garbage collect transports via refcounting.  Fix commentary.

1999 copyrights

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 26 03:51:07 1999 UTC (25 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.3: +21 -10 lines
Diff to previous 1.3 (colored)

Merge from the Ericsson repository
| revision 1.25
| date: 1999/02/25 11:39:24;  author: niklas;  state: Exp;  lines: +3 -1
| include sysdep.h everywhere
| ----------------------------
| revision 1.24
| date: 1999/02/25 11:09:40;  author: niklas;  state: Exp;  lines: +6 -2
| Make conf_get_num take a default value to give back when tag does not exist
| ----------------------------
| revision 1.23
| date: 1999/02/24 12:14:10;  author: niklas;  state: Exp;  lines: +2 -1
| initialize flags, noted by Ilya Tsindlekht
| ----------------------------
| revision 1.22
| date: 1999/02/14 00:15:15;  author: niklas;  state: Exp;  lines: +11 -8
| New fd_set API which may clear a bit.  Use it for doing proper message
| send queue runs, as reported by Ilya Tsindlekht.  Better style.
| ----------------------------
| revision 1.21
| date: 1999/02/06 15:03:41;  author: niklas;  state: Exp;  lines: +2 -1
| Do not forget to remove message from sendq when freed
| ----------------------------

Revision 1.3 / (download) - annotate - [select for diffs], Tue Nov 17 11:10:21 1998 UTC (25 years, 6 months ago) by niklas
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Add RCS Ids from the EOM repository

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 15 00:44:03 1998 UTC (25 years, 6 months ago) by niklas
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

openBSD RCS IDs

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Nov 15 00:03:49 1998 UTC (25 years, 6 months ago) by niklas
Branch: NIKLAS
CVS Tags: NIKLAS_981114
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Initial import of isakmpd, an IKE (ISAKMP/Oakley) implementation for the
OpenBSD IPSEC stack by me, Niklas Hallqvist and Niels Provos, funded by
Ericsson Radio Systems.  It is not yet complete or usable in a real scenario
but the missing pieces will soon be there.  The early commit is for people
who wants early access and who are not afraid of looking at source.
isakmpd interops with Cisco, Timestep, SSH & Pluto (Linux FreeS/WAN) so
far, so it is not that incomplete.  It is really mostly configuration that
is lacking.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 15 00:03:49 1998 UTC (25 years, 6 months ago) by niklas
Branch: MAIN

Initial revision

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.