libpcap/libpcap-1.0.0-s390.patch
Petr Uzel d045159f47 - update to libpcap-1.2.1
- Support 802.1 QinQ as a form of VLAN in filters.
  - Treat "carp" as equivalent to "vrrp" in filters.
  - Fix code generated for "ip6 protochain".
  - Add some new link-layer header types.
  - Support capturing NetFilter log messages on Linux.
  - Turn off monitor mode on exit for mac80211 interfaces on Linux.
  - Fix problems turning monitor mode on for non-mac80211 interfaces
  -  on Linux.
  - Properly fail if /sys/class/net or /proc/net/dev exist but can't
  -  be opened.
  - Fail if pcap_activate() is called on an already-activated
  -  pcap_t, and add a test program for that.
  - Fix filtering in pcap-ng files.
  - Simplify handling of new DLT_/LINKTYPE_ values.
  - Expand pcap(3PCAP) man page.
- drop libpcap-fix-calculation-of-frame-size.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=21
2012-01-03 14:53:29 +00:00

15 lines
403 B
Diff

Index: pcap-linux.c
===================================================================
--- pcap-linux.c.orig
+++ pcap-linux.c
@@ -3092,6 +3092,9 @@ activate_new(pcap_t *handle)
else
return 0; /* try old mechanism */
}
+ /* Hack to make things work on s390 ctc interfaces */
+ if (strncmp("ctc", device, 3) == 0)
+ handle->linktype = DLT_EN10MB;
} else {
/*
* The "any" device.