pkgsrc/sysutils/hcidump/patches/patch-am
salo 5d435ece85 Initial import of hcidump-1.5.1: Bluetooth traffic dumper, similar to tcpdump
hcidump reads raw HCI data coming from and going to a Bluetooth device
and prints to screen commands, events and data in a human-readable form.
Optionally, the dump can be written to a file rather than parsed, and
the dump file can be parsed in a subsequent moment.

NetBSD support added and packaged by Iain D. Hibbert, via pkgsrc-wip.
2006-07-25 16:28:47 +00:00

23 lines
589 B
Text

$NetBSD: patch-am,v 1.1.1.1 2006/07/25 16:28:48 salo Exp $
add needed header file for NetBSD, plus fix compiler warning
--- parser/sdp.c.orig 2004-12-14 18:45:45.000000000 +0000
+++ parser/sdp.c
@@ -30,6 +30,7 @@
*/
#include <sys/types.h>
+#include <sys/time.h>
#include <netinet/in.h>
#include <inttypes.h>
#include <stdio.h>
@@ -527,7 +528,7 @@ static void ssa_rsp(int level, uint16_t
void sdp_dump(int level, struct frame *frm)
{
- sdp_pdu_hdr *hdr = frm->ptr;
+ sdp_pdu_hdr *hdr = (void *)frm->ptr;
uint16_t tid = ntohs(hdr->tid);
uint16_t len = ntohs(hdr->len);