]> git.pld-linux.org Git - packages/libpcap.git/commitdiff
- up to 1.6.1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 20 Jul 2014 14:56:02 +0000 (16:56 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 20 Jul 2014 14:56:02 +0000 (16:56 +0200)
libpcap-bluetooth.patch [new file with mode: 0644]
libpcap-bonding.patch [deleted file]
libpcap.spec

diff --git a/libpcap-bluetooth.patch b/libpcap-bluetooth.patch
new file mode 100644 (file)
index 0000000..6bb89fd
--- /dev/null
@@ -0,0 +1,28 @@
+diff -urN libpcap-1.6.1.org/pcap-bt-monitor-linux.c libpcap-1.6.1/pcap-bt-monitor-linux.c
+--- libpcap-1.6.1.org/pcap-bt-monitor-linux.c  2014-07-03 00:12:49.000000000 +0200
++++ libpcap-1.6.1/pcap-bt-monitor-linux.c      2014-07-20 16:53:44.000000000 +0200
+@@ -39,7 +39,6 @@
+ #include <bluetooth/bluetooth.h>
+ #include <bluetooth/hci.h>
+-#include <bluetooth/mgmt.h>
+ #include "pcap/bluetooth.h"
+ #include "pcap-int.h"
+@@ -47,6 +46,16 @@
+ #define BT_CONTROL_SIZE 32
+ #define INTERFACE_NAME "bluetooth-monitor"
++#ifndef MGMT_HDR_SIZE
++#define       MGMT_HDR_SIZE 6
++
++struct mgmt_hdr {
++        uint16_t opcode;
++        uint16_t index;
++        uint16_t len;
++} __packed;
++#endif
++
+ int
+ bt_monitor_findalldevs(pcap_if_t **alldevsp, char *err_str)
+ {
diff --git a/libpcap-bonding.patch b/libpcap-bonding.patch
deleted file mode 100644 (file)
index fe5ed86..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- libpcap-1.1.1/pcap-linux.c.orig    2010-03-12 02:56:54.000000000 +0100
-+++ libpcap-1.1.1/pcap-linux.c 2011-07-12 13:40:43.906538548 +0200
-@@ -1883,7 +1883,7 @@
-                */
-               strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name));
-               if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
--                      if (errno == ENXIO)
-+                      if (errno == ENXIO || errno == ENODEV)
-                               continue;
-                       (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
-                           "SIOCGIFFLAGS: %.*s: %s",
index 0f530fe1327fe90624510d386ba0893330cde0dc..d625df97a95018b0f3685db1271496a0e4d4d96f 100644 (file)
@@ -10,14 +10,14 @@ Summary(pt_BR.UTF-8):       A libpcap fornece acesso ao modo promíscuo em interfaces
 Summary(ru.UTF-8):     Предоставляет доступ к сетевым интерфейсам в promiscuous-режиме
 Summary(uk.UTF-8):     Надає доступ до мережевих інтерфейсів в promiscuous-режимі
 Name:          libpcap
-Version:       1.5.3
+Version:       1.6.1
 Release:       1
 Epoch:         2
 License:       BSD
 Group:         Libraries
 Source0:       http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
 # Source0-md5: 7e7321fb3aff2f2bb05c8229f3795d4a
-Patch0:                %{name}-bonding.patch
+Patch0:                %{name}-bluetooth.patch
 Patch1:                %{name}-usb.patch
 Patch2:                %{name}-pf_ring.patch
 URL:           http://www.tcpdump.org/
This page took 0.071105 seconds and 4 git commands to generate.