Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Leo
aports
Commits
bee68ae8
Commit
bee68ae8
authored
Dec 08, 2009
by
Natanael Copa
Browse files
main/iptraf: fix for vlan traffic
from
http://linux.mantech.ro/IPTraf-fix.html
parent
d14ba610
Changes
2
Hide whitespace changes
Inline
Side-by-side
main/iptraf/APKBUILD
View file @
bee68ae8
...
...
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname
=
iptraf
pkgver
=
3.0.0
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"IP Network Monitoring Software"
url
=
"http://iptraf.seoul.org"
license
=
"GPL"
...
...
@@ -10,10 +10,12 @@ depends=
makedepends
=
"ncurses-dev"
install
=
subpackages
=
"
$pkgname
-doc"
source
=
"ftp://iptraf.seul.org/pub/
$pkgname
/
$pkgname
-
$pkgver
.tar.gz"
source
=
"ftp://iptraf.seul.org/pub/
$pkgname
/
$pkgname
-
$pkgver
.tar.gz
iptraf-3.0.0-vlan.patch"
build
()
{
cd
"
$srcdir
/
$pkgname
-
$pkgver
/src"
patch
-p1
-i
"
$srcdir
"
/iptraf-3.0.0-vlan.patch
||
return
1
sed
-i
-e
s:/var/local/iptraf:/var/lib/iptraf:
\
-e
s:/usr/local/bin:/usr/sbin: dirs.h
...
...
@@ -34,4 +36,5 @@ build() {
done
}
md5sums
=
"377371c28ee3c21a76f7024920649ea8 iptraf-3.0.0.tar.gz"
md5sums
=
"377371c28ee3c21a76f7024920649ea8 iptraf-3.0.0.tar.gz
4136483b9e41c8789c629c42f9a67d07 iptraf-3.0.0-vlan.patch"
main/iptraf/iptraf-3.0.0-vlan.patch
0 → 100644
View file @
bee68ae8
--- src/packet.c.orig 2008-03-07 17:56:48.000000000 +0200
+++ src/packet.c 2008-03-07 18:05:41.000000000 +0200
@@ -101,8 +101,8 @@
result = LINK_ETHERNET;
else if (strncmp(ifname, "tun", 3) == 0)
result = LINK_ETHERNET;
- else if (strncmp(ifname, "vlan", 3) == 0)
- result = LINK_VLAN;
+ else if (strncmp(ifname, "vlan", 4) == 0)
+ result = LINK_ETHERNET;
else if (strncmp(ifname, "brg", 3) == 0)
result = LINK_ETHERNET;
else if (strncmp(ifname, "tap", 3) == 0)
@@ -231,14 +231,6 @@
case LINK_IPIP:
*packet = tpacket;
break;
- case LINK_VLAN:
- *packet = tpacket + VLAN_ETH_HLEN;
- readlen -= VLAN_ETH_HLEN;
- /*
- * Move IP datagram into an aligned buffer.
- */
- memmove(aligned_buf, *packet, min(SNAPSHOT_LEN, *readlen));
- *packet = aligned_buf;
default:
*packet = (char *) NULL; /* return a NULL packet to signal */
break; /* an unrecognized link protocol */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment