Changeset 3298


Ignore:
Timestamp:
2006-03-03T02:03:38+01:00 (11 years ago)
Author:
nbd
Message:

update dsniff to 2.4b1 and fix some compile issues

Location:
trunk/openwrt/package/dsniff
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/dsniff/Makefile

    r3112 r3298  
    44 
    55PKG_NAME:=dsniff 
    6 PKG_VERSION:=2.3 
     6PKG_VERSION:=2.4b1 
    77PKG_RELEASE:=2 
    8 PKG_MD5SUM:=183e336a45e38013f3af840bddec44b4 
     8PKG_MD5SUM:=2f761fa3475682a7512b0b43568ee7d6 
    99 
    10 PKG_SOURCE_URL:=http://www.monkey.org/~dugsong/dsniff/ 
     10PKG_SOURCE_URL:=http://www.monkey.org/~dugsong/dsniff/beta 
    1111PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1212PKG_CAT:=zcat 
    1313 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2.4 
    1515PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1616 
  • trunk/openwrt/package/dsniff/patches/arpspoof-fix.patch

    r1910 r3298  
    1 diff -Nur dsniff-2.3.orig/arp.c dsniff-2.3/arp.c 
    2 --- dsniff-2.3.orig/arp.c       2000-11-14 16:51:03.000000000 +0100 
    3 +++ dsniff-2.3/arp.c    2005-09-12 16:13:44.101915800 +0200 
    4 @@ -37,7 +37,7 @@ 
     1diff -urN dsniff.old/arp.c dsniff.dev/arp.c 
     2--- dsniff.old/arp.c    2001-03-15 09:32:58.000000000 +0100 
     3+++ dsniff.dev/arp.c    2006-03-03 01:41:10.000000000 +0100 
     4@@ -39,7 +39,7 @@ 
     5  
    56 #ifdef BSD 
    6   
    77 int 
    88-arp_cache_lookup(in_addr_t ip, struct ether_addr *ether) 
    9 +arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char* linf) 
     9+arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char *lif) 
    1010 { 
    1111        int mib[6]; 
    1212        size_t len; 
    13 @@ -89,7 +89,7 @@ 
     13@@ -91,7 +91,7 @@ 
    1414 #endif 
    1515  
    1616 int 
    1717-arp_cache_lookup(in_addr_t ip, struct ether_addr *ether) 
    18 +arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char* lif) 
     18+arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char *lif) 
    1919 { 
    2020        int sock; 
    2121        struct arpreq ar; 
    22 @@ -97,7 +97,7 @@ 
     22@@ -99,7 +99,7 @@ 
    2323         
    2424        memset((char *)&ar, 0, sizeof(ar)); 
     
    2929        sin = (struct sockaddr_in *)&ar.arp_pa; 
    3030        sin->sin_family = AF_INET; 
    31 diff -Nur dsniff-2.3.orig/arpspoof.c dsniff-2.3/arpspoof.c 
    32 --- dsniff-2.3.orig/arpspoof.c  2000-11-28 08:43:43.000000000 +0100 
    33 +++ dsniff-2.3/arpspoof.c       2005-09-12 16:16:49.244769808 +0200 
    34 @@ -23,7 +23,7 @@ 
    35  #include "version.h" 
     31diff -urN dsniff.old/arp.h dsniff.dev/arp.h 
     32--- dsniff.old/arp.h    2001-03-15 09:27:08.000000000 +0100 
     33+++ dsniff.dev/arp.h    2006-03-03 01:42:23.000000000 +0100 
     34@@ -11,6 +11,6 @@ 
     35 #ifndef _ARP_H_ 
     36 #define _ARP_H_ 
    3637  
    37  extern char *ether_ntoa(struct ether_addr *); 
    38 -extern int arp_cache_lookup(in_addr_t, struct ether_addr *); 
    39 +extern int arp_cache_lookup(in_addr_t, struct ether_addr *, const char* intf); 
     38-int    arp_cache_lookup(in_addr_t ip, struct ether_addr *ether); 
     39+int    arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char *lif); 
    4040  
    41  static struct libnet_link_int *llif; 
    42  static struct ether_addr spoof_mac, target_mac; 
    43 @@ -111,7 +111,7 @@ 
     41 #endif /* _ARP_H_ */ 
     42diff -urN dsniff.old/arpspoof.c dsniff.dev/arpspoof.c 
     43--- dsniff.old/arpspoof.c       2001-03-15 09:32:58.000000000 +0100 
     44+++ dsniff.dev/arpspoof.c       2006-03-03 01:42:00.000000000 +0100 
     45@@ -113,7 +113,7 @@ 
    4446        int i = 0; 
    4547  
Note: See TracChangeset for help on using the changeset viewer.