Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/usr.sbin/bta2dpd/bta2dpd Pull up following revision(s) (r...
details: https://anonhg.NetBSD.org/src/rev/f02bf656b7c1
branches: netbsd-8
changeset: 434567:f02bf656b7c1
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 16 13:09:59 2018 +0000
description:
Pull up following revision(s) (requested by nat in ticket #500):
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c: revision 1.5
Set size of mtusize before calling getsockopt to obtain mtu size.
diffstat:
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r b73afad6bea4 -r f02bf656b7c1 usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
--- a/usr.sbin/bta2dpd/bta2dpd/bta2dpd.c Tue Jan 16 13:04:33 2018 +0000
+++ b/usr.sbin/bta2dpd/bta2dpd/bta2dpd.c Tue Jan 16 13:09:59 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bta2dpd.c,v 1.3.2.1 2017/08/31 11:21:43 martin Exp $ */
+/* $NetBSD: bta2dpd.c,v 1.3.2.2 2018/01/16 13:09:59 martin Exp $ */
/*-
* Copyright (c) 2015 - 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -784,13 +784,12 @@
state = 7;
}
+ mtusize = sizeof(uint16_t);
getsockopt(sc, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &mtusize);
if (userset_mtu != 0 && userset_mtu > 100 && userset_mtu < mtu)
mtu = userset_mtu;
else if (userset_mtu == 0 && mtu >= 500)
mtu /= 2;
-
- mtusize = sizeof(uint16_t);
}
static void
Home |
Main Index |
Thread Index |
Old Index