summaryrefslogtreecommitdiff
path: root/sysutils/netbt-hcidump/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/netbt-hcidump/patches/patch-ab')
-rw-r--r--sysutils/netbt-hcidump/patches/patch-ab23
1 files changed, 13 insertions, 10 deletions
diff --git a/sysutils/netbt-hcidump/patches/patch-ab b/sysutils/netbt-hcidump/patches/patch-ab
index d7c4d006a8a..4bbcc95acf8 100644
--- a/sysutils/netbt-hcidump/patches/patch-ab
+++ b/sysutils/netbt-hcidump/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.3 2011/06/19 13:02:35 plunky Exp $
+$NetBSD: patch-ab,v 1.3.6.1 2012/02/15 09:17:16 plunky Exp $
---- bluetooth/bluetooth.h.orig 2011-06-19 12:38:18.000000000 +0000
-+++ bluetooth/bluetooth.h
+--- lib/bluetooth.h.orig 2011-12-22 00:18:58.000000000 +0000
++++ lib/bluetooth.h
@@ -30,6 +30,7 @@
extern "C" {
#endif
@@ -10,7 +10,7 @@ $NetBSD: patch-ab,v 1.3 2011/06/19 13:02:35 plunky Exp $
#include <stdio.h>
#include <stdint.h>
#include <string.h>
-@@ -103,6 +104,17 @@ enum {
+@@ -107,6 +108,20 @@ enum {
#else
#error "Unknown byte order"
#endif
@@ -24,19 +24,22 @@ $NetBSD: patch-ab,v 1.3 2011/06/19 13:02:35 plunky Exp $
+#define htobl(d) htole32(d)
+#define btohs(d) le16toh(d)
+#define btohl(d) le32toh(d)
++#define bswap_64(v) bswap64(v)
++#define bswap_32(v) bswap32(v)
++#define bswap_16(v) bswap16(v)
+#endif
/* Bluetooth unaligned access */
#define bt_get_unaligned(ptr) \
-@@ -121,6 +133,7 @@ do { \
- __p->__v = (val); \
- } while(0)
+@@ -189,6 +204,7 @@ static inline uint16_t bt_get_be16(void
+ #error "Unknown byte order"
+ #endif
+#if 0
/* BD Address */
typedef struct {
uint8_t b[6];
-@@ -129,6 +142,7 @@ typedef struct {
+@@ -197,6 +213,7 @@ typedef struct {
#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
#define BDADDR_ALL (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
@@ -44,7 +47,7 @@ $NetBSD: patch-ab,v 1.3 2011/06/19 13:02:35 plunky Exp $
/* Copy, swap, convert BD Address */
static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2)
-@@ -141,9 +155,12 @@ static inline void bacpy(bdaddr_t *dst,
+@@ -209,9 +226,12 @@ static inline void bacpy(bdaddr_t *dst,
}
void baswap(bdaddr_t *dst, const bdaddr_t *src);
@@ -57,7 +60,7 @@ $NetBSD: patch-ab,v 1.3 2011/06/19 13:02:35 plunky Exp $
int str2ba(const char *str, bdaddr_t *ba);
int ba2oui(const bdaddr_t *ba, char *oui);
int bachk(const char *str);
-@@ -152,11 +169,14 @@ int baprintf(const char *format, ...);
+@@ -220,11 +240,14 @@ int baprintf(const char *format, ...);
int bafprintf(FILE *stream, const char *format, ...);
int basprintf(char *str, const char *format, ...);
int basnprintf(char *str, size_t size, const char *format, ...);