summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2013-10-21 08:42:24 +0000
committerphessler <phessler@openbsd.org>2013-10-21 08:42:24 +0000
commita8cd54d7863d356202d5a3337fb7b45772a63ec5 (patch)
tree4e540dc0cd8ee8586b4f2bf47fecc8c00ffd459a /sys/netinet/tcp_subr.c
parentRemove unused defines inherited from mac68k. (diff)
downloadwireguard-openbsd-a8cd54d7863d356202d5a3337fb7b45772a63ec5.tar.xz
wireguard-openbsd-a8cd54d7863d356202d5a3337fb7b45772a63ec5.zip
Sprinkle a lot more IPv6 routing domains support in the kernel.
Mostly mechanical, setting and passing the rdomain and rtable correctly. Not yet enabled. Lots of help and hints from claudio and bluhm OK claudio@, bluhm@
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 3bb7f08f688..c2143fb161b 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_subr.c,v 1.122 2013/10/20 11:03:01 phessler Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.123 2013/10/21 08:42:24 phessler Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
@@ -891,17 +891,12 @@ tcp_ctlinput(int cmd, struct sockaddr *sa, u_int rdomain, void *v)
* Path MTU Discovery handlers.
*/
void
-tcp6_mtudisc_callback(faddr)
- struct in6_addr *faddr;
+tcp6_mtudisc_callback(sin6, rdomain)
+ struct sockaddr_in6 *sin6;
+ u_int rdomain;
{
- struct sockaddr_in6 sin6;
-
- bzero(&sin6, sizeof(sin6));
- sin6.sin6_family = AF_INET6;
- sin6.sin6_len = sizeof(struct sockaddr_in6);
- sin6.sin6_addr = *faddr;
- (void) in6_pcbnotify(&tcbtable, &sin6, 0,
- &sa6_any, 0, /* XXX rdomain */ 0, PRC_MSGSIZE, NULL, tcp_mtudisc);
+ (void) in6_pcbnotify(&tcbtable, sin6, 0,
+ &sa6_any, 0, rdomain, PRC_MSGSIZE, NULL, tcp_mtudisc);
}
#endif /* INET6 */