Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/btpand use correct value for 10 Mbps



details:   https://anonhg.NetBSD.org/src/rev/b153f670a4ee
branches:  trunk
changeset: 748470:b153f670a4ee
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sat Oct 24 20:06:42 2009 +0000

description:
use correct value for 10 Mbps

diffstat:

 usr.sbin/btpand/server.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 98bbdf7c27e7 -r b153f670a4ee usr.sbin/btpand/server.c
--- a/usr.sbin/btpand/server.c  Sat Oct 24 20:03:56 2009 +0000
+++ b/usr.sbin/btpand/server.c  Sat Oct 24 20:06:42 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: server.c,v 1.4 2009/05/12 21:50:38 plunky Exp $        */
+/*     $NetBSD: server.c,v 1.5 2009/10/24 20:06:42 plunky Exp $        */
 
 /*-
  * Copyright (c) 2008-2009 Iain Hibbert
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: server.c,v 1.4 2009/05/12 21:50:38 plunky Exp $");
+__RCSID("$NetBSD: server.c,v 1.5 2009/10/24 20:06:42 plunky Exp $");
 
 #include <sys/ioctl.h>
 
@@ -348,7 +348,7 @@
                sdp_put_uint16(&buf, 0x0004);   /* 10Mb Ethernet */
 
                sdp_put_uint16(&buf, SDP_ATTR_MAX_NET_ACCESS_RATE);
-               sdp_put_uint32(&buf, 10000);    /* 10Mb/s (?) */
+               sdp_put_uint32(&buf, IF_Mbps(10) / 8);  /* octets/second */
        }
 
        if (service_class == SDP_SERVICE_CLASS_NAP



Home | Main Index | Thread Index | Old Index