compile without STRIP (Metricom radio) support
This commit is contained in:
parent
094f4e513d
commit
cbb4fe95ac
@ -1,34 +0,0 @@
|
||||
From cb25358f5119192d14e3cf5370cd18037cc54ca8 Mon Sep 17 00:00:00 2001
|
||||
From: Jiri Popelka <jpopelka@redhat.com>
|
||||
Date: Wed, 22 Aug 2012 16:20:46 +0200
|
||||
Subject: [PATCH] kernel 3.6 removes linux/if_strip.h
|
||||
|
||||
---
|
||||
lib/strip.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/strip.c b/lib/strip.c
|
||||
index ced2325..06ea990 100644
|
||||
--- a/lib/strip.c
|
||||
+++ b/lib/strip.c
|
||||
@@ -21,7 +21,6 @@
|
||||
#include <sys/socket.h>
|
||||
#include <net/if_arp.h>
|
||||
#include <linux/types.h>
|
||||
-#include <linux/if_strip.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
@@ -35,6 +34,9 @@
|
||||
#include "util.h"
|
||||
#include "intl.h"
|
||||
|
||||
+typedef struct {
|
||||
+ __u8 c[6];
|
||||
+} MetricomAddress;
|
||||
|
||||
extern struct hwtype strip_hwtype;
|
||||
|
||||
--
|
||||
1.7.11.4
|
||||
|
@ -50,7 +50,7 @@
|
||||
#define HAVE_HWSLIP 1
|
||||
#define HAVE_HWPPP 1
|
||||
#define HAVE_HWTUNNEL 1
|
||||
#define HAVE_HWSTRIP 1
|
||||
#define HAVE_HWSTRIP 0
|
||||
#define HAVE_HWTR 0
|
||||
#define HAVE_HWAX25 1
|
||||
#define HAVE_HWROSE 1
|
||||
|
@ -17,7 +17,7 @@ HAVE_HWARC=1
|
||||
HAVE_HWSLIP=1
|
||||
HAVE_HWPPP=1
|
||||
HAVE_HWTUNNEL=1
|
||||
HAVE_HWSTRIP=1
|
||||
HAVE_HWSTRIP=0
|
||||
HAVE_HWTR=0
|
||||
HAVE_HWAX25=1
|
||||
HAVE_HWROSE=1
|
||||
|
@ -3,7 +3,7 @@
|
||||
Summary: Basic networking tools
|
||||
Name: net-tools
|
||||
Version: 1.60
|
||||
Release: 144.%{checkout}%{?dist}
|
||||
Release: 145.%{checkout}%{?dist}
|
||||
License: GPL+
|
||||
Group: System Environment/Base
|
||||
URL: http://net-tools.sourceforge.net
|
||||
@ -53,9 +53,6 @@ Patch10: net-tools-1.60-ifconfig-long-iface-crasher.patch
|
||||
# fixed tcp timers info in netstat (#466845)
|
||||
Patch11: net-tools-1.60-netstat-probe.patch
|
||||
|
||||
# kernel 3.6 removes linux/if_strip.h
|
||||
Patch12: net-tools-1.60-STRIP.patch
|
||||
|
||||
BuildRequires: gettext, libselinux
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: systemd-units
|
||||
@ -79,7 +76,6 @@ Most of them are obsolete. For replacement check iproute package.
|
||||
%patch9 -p1 -b .sctp
|
||||
%patch10 -p1 -b .long_iface
|
||||
%patch11 -p1 -b .probe
|
||||
%patch12 -p1 -b .STRIP
|
||||
|
||||
cp %SOURCE1 ./config.h
|
||||
cp %SOURCE2 ./config.make
|
||||
@ -167,6 +163,9 @@ install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}
|
||||
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
||||
|
||||
%changelog
|
||||
* Mon Oct 01 2012 Jiri Popelka <jpopelka@redhat.com> - 1.60-145.20120917git
|
||||
- compile without STRIP (Metricom radio) support
|
||||
|
||||
* Mon Sep 17 2012 Jiri Popelka <jpopelka@redhat.com> - 1.60-144.20120917git
|
||||
- upstream git snapshot
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user