OpenBSD CVS

CVS log for src/sbin/iked/vroute.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 13 12:34:12 2023 UTC (11 months, 4 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.18: +6 -10 lines
Diff to previous 1.18 (colored)

iked: introduce and use print_addr()

The vast majority of print_host() callers cast the first argument
(usually a sockaddr_storage *) to (struct sockaddr *) and pass both
a NULL buffer and 0 length. Cast and useless arguments lead to
awkward line wrapping in many places. Clean this up by introducing a
helper. Make this helper take a void pointer, so all casts go away.

ok claudio kn tobhe

Revision 1.18 / (download) - annotate - [select for diffs], Fri Feb 10 19:51:08 2023 UTC (15 months, 4 weeks ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.17: +28 -22 lines
Diff to previous 1.17 (colored)

Add support for configuring multiple name servers as roadwarrior
client.  This allows us to have a fallback in case one connection
fails.

Tested by Ryan Kavanagh
ok patrick@

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 18 19:32:16 2022 UTC (22 months, 3 weeks ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

Check if there is a locally cached nameserver to send before responding
to RTP_PROPOSAL_SOLICIT.  Fixes a crash when resolvd is restarted but
no name server is set.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 16 18:17:20 2022 UTC (2 years, 2 months ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

Make sure contents of vroute messages are aligned properly.
Fixes address autoconfiguration on octeon.

Found by and ok mbuhl@

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 1 16:42:13 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

whitespace cleanup during review read

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 6 13:29:17 2021 UTC (2 years, 9 months ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.13: +7 -5 lines
Diff to previous 1.13 (colored)

Fix leaks in vroute addr and route caches.

ok patrick@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 1 15:30:06 2021 UTC (2 years, 9 months ago) by tobhe
Branch: MAIN
Changes since 1.12: +237 -8 lines
Diff to previous 1.12 (colored)

Add client side support for DNS configuration. Use RTM_PROPOSAL_STATIC
route messages to propose the name server to resolvd(8).
For now, iked will only propose a single name server from the first
established connection.

Automatic name server configuration is enabled by default for policies using
the 'iface' option.

discussed with deraadt@
ok for the DNS parts florian@
ok for the rest patrick@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 23 12:21:23 2021 UTC (2 years, 11 months ago) by tobhe
Branch: MAIN
Changes since 1.11: +17 -15 lines
Diff to previous 1.11 (colored)

Use print_host() to log destination, netmask and gateway.  Add pretty
printing for route flags.

ok markus@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 23 12:11:40 2021 UTC (2 years, 11 months ago) by tobhe
Branch: MAIN
Changes since 1.10: +48 -1 lines
Diff to previous 1.10 (colored)

Factor out vroute_addr().

ok markus@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 1 20:57:12 2021 UTC (3 years ago) by tobhe
Branch: MAIN
Changes since 1.9: +36 -12 lines
Diff to previous 1.9 (colored)

Remember flow routes in addition to host routes and delete
them explicitly on shutdown.  Store netmask in route queue
to fix cleanup of 0/1 routes.  Sending delete messages
without mask doesn't work reliably.

ok patrick@

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 13 15:20:48 2021 UTC (3 years ago) by tobhe
Branch: MAIN
Changes since 1.8: +136 -9 lines
Diff to previous 1.8 (colored)

Refactor iked process shutdown and cleanup. Remember configured
addresses and routes in iked_vroute_sc to not depend on ikev2
process for cleanup.

This makes sure that all flows, routes and addresses are deleted
no matter which process is killed first.

ok patrick@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Apr 3 21:29:14 2021 UTC (3 years, 2 months ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Add size check for sockaddr mask.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 25 01:39:09 2021 UTC (3 years, 2 months ago) by tobhe
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)

Sync correct ROUNDUP() from net/route.c

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 28 19:25:59 2021 UTC (3 years, 3 months ago) by tobhe
Branch: MAIN
Changes since 1.5: +8 -8 lines
Diff to previous 1.5 (colored)

Rename addr to gateway.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 27 17:07:04 2021 UTC (3 years, 3 months ago) by tobhe
Branch: MAIN
Changes since 1.4: +15 -11 lines
Diff to previous 1.4 (colored)

Set RTF_GATEWAY for host route based on RTM_GET response.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 26 21:06:02 2021 UTC (3 years, 3 months ago) by tobhe
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Set RTF_GATEWAY for flow routes, not for host route.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Feb 26 20:22:11 2021 UTC (3 years, 3 months ago) by tobhe
Branch: MAIN
Changes since 1.2: +9 -27 lines
Diff to previous 1.2 (colored)

Fix and improve handling of address families in vroute_getcloneroute().

ok patrick@

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 21 14:21:37 2021 UTC (3 years, 3 months ago) by tobhe
Branch: MAIN
Changes since 1.1: +2 -12 lines
Diff to previous 1.1 (colored)

Don't explicitly send address family in IMSG_VROUTE_ADD. The receiving
process parses af from the sockaddrs.

ok patrick@

Revision 1.1 / (download) - annotate - [select for diffs], Sat Feb 13 16:14:12 2021 UTC (3 years, 3 months ago) by tobhe
Branch: MAIN

Add dynamic address configuration for roadwarrior clients.
The new 'iface' config option can be used to specify an interface
for the virtual addresses received from the peer.
Routes are automatically added based on the configured flows.

Input from sthen@ and claudio@
ok patrick@

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.