Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 77546 Details for
Bug 119557
dsniff-2.4b1.ebuild (Update)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
04_multiple_intf.patch
04_multiple_intf.patch (text/plain), 1.61 KB, created by
a1200ux
on 2006-01-19 08:32:38 UTC
(
hide
)
Description:
04_multiple_intf.patch
Filename:
MIME Type:
Creator:
a1200ux
Created:
2006-01-19 08:32:38 UTC
Size:
1.61 KB
patch
obsolete
>diff -Nuar dsniff-2.4b1/arp.c dsniff-2.4b1-xxx/arp.c >--- dsniff-2.4b1/arp.c 2001-03-15 09:32:58.000000000 +0100 >+++ dsniff-2.4b1-xxx/arp.c 2006-01-19 10:02:46.000000000 +0100 >@@ -39,7 +39,7 @@ > > #ifdef BSD > int >-arp_cache_lookup(in_addr_t ip, struct ether_addr *ether) >+arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char* linf) > { > int mib[6]; > size_t len; >@@ -91,7 +91,7 @@ > #endif > > int >-arp_cache_lookup(in_addr_t ip, struct ether_addr *ether) >+arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char* lif) > { > int sock; > struct arpreq ar; >@@ -99,7 +99,7 @@ > > memset((char *)&ar, 0, sizeof(ar)); > #ifdef __linux__ >- strncpy(ar.arp_dev, "eth0", sizeof(ar.arp_dev)); /* XXX - *sigh* */ >+ strncpy(ar.arp_dev, lif, strlen(lif)); > #endif > sin = (struct sockaddr_in *)&ar.arp_pa; > sin->sin_family = AF_INET; >diff -Nuar dsniff-2.4b1/arp.h dsniff-2.4b1-xxx/arp.h >--- dsniff-2.4b1/arp.h 2001-03-15 09:27:08.000000000 +0100 >+++ dsniff-2.4b1-xxx/arp.h 2006-01-19 10:02:46.000000000 +0100 >@@ -11,6 +11,6 @@ > #ifndef _ARP_H_ > #define _ARP_H_ > >-int arp_cache_lookup(in_addr_t ip, struct ether_addr *ether); >+int arp_cache_lookup(in_addr_t ip, struct ether_addr *ether, const char* linf); > > #endif /* _ARP_H_ */ >diff -Nuar dsniff-2.4b1/arpspoof.c dsniff-2.4b1-xxx/arpspoof.c >--- dsniff-2.4b1/arpspoof.c 2001-03-15 09:32:58.000000000 +0100 >+++ dsniff-2.4b1-xxx/arpspoof.c 2006-01-19 10:02:46.000000000 +0100 >@@ -113,7 +113,7 @@ > int i = 0; > > do { >- if (arp_cache_lookup(ip, mac) == 0) >+ if (arp_cache_lookup(ip, mac, intf) == 0) > return (1); > #ifdef __linux__ > /* XXX - force the kernel to arp. feh. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 119557
:
77540
|
77541
|
77542
|
77544
|
77545
| 77546 |
77547
|
77548
|
77549