diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-11-28 19:21:17 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-11-28 19:21:17 +0000 |
commit | 42dc4672e2746e5183c5a29733c654f4a9644cce (patch) | |
tree | df76318348d55acb95fe86483447a0ed376640df /usr.sbin/sasyncd/carp.c | |
parent | 0e1919712e2589382b2029732a09c5ce9488a2cb (diff) |
add additional link states to report the half duplex / full duplex
state, if known by the driver. this is required to check the full
duplex state without depending on the ifmedia ioctl which can't be
called in the kernel without process context.
ok henning@, brad@
Diffstat (limited to 'usr.sbin/sasyncd/carp.c')
-rw-r--r-- | usr.sbin/sasyncd/carp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/sasyncd/carp.c b/usr.sbin/sasyncd/carp.c index 974ea923dff..de876c0ea6f 100644 --- a/usr.sbin/sasyncd/carp.c +++ b/usr.sbin/sasyncd/carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: carp.c,v 1.7 2006/09/16 11:35:18 mpf Exp $ */ +/* $OpenBSD: carp.c,v 1.8 2006/11/28 19:21:15 reyk Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -53,6 +53,8 @@ carp_map_state(u_char link_state) switch(link_state) { case LINK_STATE_UP: + case LINK_STATE_HALF_DUPLEX: + case LINK_STATE_FULL_DUPLEX: state = MASTER; break; case LINK_STATE_DOWN: |