- release 2: radiotap.patch
authorradek <radek@pld-linux.org>
Sun, 20 Jun 2010 00:46:09 +0000 (00:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ferret.spec -> 1.2
    radiotap.patch -> 1.1

ferret.spec
radiotap.patch [new file with mode: 0644]

index 923595a..6df597d 100644 (file)
@@ -2,11 +2,12 @@ Summary:      FERRET - a broadcast analysis tool
 #Summary(pl.UTF-8):    -
 Name:          ferret
 Version:       1.1
-Release:       1
+Release:       2
 License:       "all rights reserved"
 Group:         Applications
 Source0:       http://www.erratasec.com/Ferret-1_1.zip
 # NoSource0-md5:       f9fbd4eb5eb178589584a59052b35d02
+Patch0:                radiotap.patch
 URL:           http://www.erratasec.com/ferret.html
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -21,6 +22,7 @@ network where that machine comes from.
 
 %prep
 %setup -q -n Ferret
+%patch0 -p1
 rm -rf bin/*/ bin/ferret tmp/*
 
 %build
diff --git a/radiotap.patch b/radiotap.patch
new file mode 100644 (file)
index 0000000..bfb9c4a
--- /dev/null
@@ -0,0 +1,20 @@
+--- Ferret/src/parser/layer1.c.orig    2007-03-27 20:53:02.000000000 +0200
++++ Ferret/src/parser/layer1.c 2010-06-20 02:37:35.357468557 +0200
+@@ -116,6 +116,17 @@
+               }
+               break;
++      case 127: /* radiotap, DLT_IEEE802_11_RADIO */
++              {
++                      unsigned header_length = ex16le(px+2);
++                      if (header_length >= length) {
++                              FRAMERR(frame, "radiotap header too large: %d\n", header_length);
++                              return;
++                      }
++                      process_wifi_frame(ferret, frame, px+header_length, length-header_length);
++              }
++              break;
++
+       default:
+               FRAMERR(frame, "unknown linktype = %d (expected Ethernet or wifi)\n", frame->protocol);
+               break;
This page took 0.035928 seconds and 4 git commands to generate.