summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-05-12 21:20:34 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-05-12 21:20:34 +0000
commitfd7d793866538d8a14892a8478e6be2267460874 (patch)
tree8e0823afc1e2535e02ac2bf71493e9e726d67362 /sys/arch/sparc64/dev
parentc0bf34f650efa82b1387f573832d95cd0091e5b7 (diff)
Actually ACK a handshake initiated by the other end.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/ldc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/ldc.c b/sys/arch/sparc64/dev/ldc.c
index e6f7f29d53d..943b0a7bbd9 100644
--- a/sys/arch/sparc64/dev/ldc.c
+++ b/sys/arch/sparc64/dev/ldc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldc.c,v 1.4 2009/05/12 21:10:41 kettenis Exp $ */
+/* $OpenBSD: ldc.c,v 1.5 2009/05/12 21:20:33 kettenis Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis
*
@@ -72,7 +72,11 @@ ldc_rx_ctrl_vers(struct ldc_conn *lc, struct ldc_pkt *lp)
{
switch (lp->stype) {
case LDC_INFO:
- /* XXX do nothing for now. */
+ if (lp->major == LDC_VERSION_MAJOR &&
+ lp->minor == LDC_VERSION_MINOR)
+ ldc_send_ack(lc);
+ else
+ /* XXX do nothing for now. */
break;
case LDC_ACK: