http://bugs.winehq.org/show_bug.cgi?id=9418
Summary: Colasoft Mac Scanner 1.1 doesn't work Product: Wine Version: CVS/GIT Platform: Other URL: http://www.colasoft.com/mac_scanner/ OS/Version: other Status: NEW Keywords: download Severity: enhancement Priority: P2 Component: wine-net AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
A user complained in http://www.linuxforums.org/forum/wine/101536-problem-tcp-ip.html "[Running colasoft mac scan in wine complains Cannot find any valid ip address...]" So I downloaded it and tried it. It found my IP address right away, so that's fine. But it wasn't able to actually scan for MAC addresses; it had lots of fixme:iphlpapi:SendARP (DestIP 0xda01a8c0, SrcIP 0x00000000, pMacAddr 0x7abcc808, PhyAddrLen 0x7abcc7fc): stub messages. On Linux, at least, the way to do this is probably to send the packet, wait a millisec, then do ioctl SIOCGARP. (Or the command arp -n W.X.Y.Z. Or look in /proc/net/arp.) It'd be cheesy beans to implement, if anybody cares to.
http://bugs.winehq.org/show_bug.cgi?id=9418
--- Comment #1 from Austin English austinenglish@gmail.com 2008-03-29 05:41:57 --- http://www.colasoft.com/download/products/files/csmac21_pro_demo_build311.ex...
Still present in git.
http://bugs.winehq.org/show_bug.cgi?id=9418
--- Comment #2 from Austin English austinenglish@gmail.com 2008-12-01 14:13:45 --- Still present in git.
http://bugs.winehq.org/show_bug.cgi?id=9418
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
--- Comment #3 from Austin English austinenglish@gmail.com 2009-01-15 10:53:29 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If still present, update version field to earliest known version of wine that had this bug. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=9418
--- Comment #4 from Austin English austinenglish@gmail.com 2010-06-13 04:27:59 --- The new client won't start without native ie6 (needs a new bug), but after that, pressing scan gives: fixme:iphlpapi:SendARP (DestIP 0xfc01a8c0, SrcIP 0x00000000, pMacAddr 0x1c1ea50, PhyAddrLen 0x1c1ea4c): stub fixme:iphlpapi:SendARP (DestIP 0xfd01a8c0, SrcIP 0x00000000, pMacAddr 0x242ea50, PhyAddrLen 0x242ea4c): stub
so still present in 1.2-rc3.
http://bugs.winehq.org/show_bug.cgi?id=9418
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |olerass@gmail.com
--- Comment #5 from Juan Lang juan_lang@yahoo.com 2010-06-15 17:36:45 --- *** Bug 16768 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=9418
butraxz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |butraxz@gmail.com
--- Comment #6 from butraxz@gmail.com 2012-05-17 14:49:49 CDT --- This bug has not been updated for two years. Is this still an issue i current (1.5.4) or newer wine ? You may also close this as abandoned if you feel that that this is issue is no longer relevant to you.
http://bugs.winehq.org/show_bug.cgi?id=9418
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2012-06-12 23:08:12 CDT --- Still present in wine 1.5.6.
http://bugs.winehq.org/show_bug.cgi?id=9418
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winsock |iphlpapi Summary|Colasoft Mac Scanner 1.1 |Colasoft Mac Scanner needs |doesn't work |SendARP implemented
https://bugs.winehq.org/show_bug.cgi?id=9418
--- Comment #8 from Austin English austinenglish@gmail.com --- Still unimplemented in wine-1.7.46-193-g8b566b1.
https://bugs.winehq.org/show_bug.cgi?id=9418
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal
https://bugs.winehq.org/show_bug.cgi?id=9418
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com
--- Comment #9 from Zhiyi Zhang zzhang@codeweavers.com --- Still unimplemented in wine-3.3-88-g813ab925ab
https://bugs.winehq.org/show_bug.cgi?id=9418
documento.em.branco@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |documento.em.branco@gmail.c | |om
--- Comment #10 from documento.em.branco@gmail.com --- Still unimplemented on wine-9.19
Does the above solves?
#include <linux/sockios.h> #include <sys/socket.h> #include <net/if_arp.h> #include <sys/ioctl.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h>
// struct arpreq { // struct sockaddr arp_pa; /* protocol address */ // struct sockaddr arp_ha; /* hardware address */ // int arp_flags; /* flags */ // struct sockaddr arp_netmask; /* netmask of protocol address */ // char arp_dev[16]; // };
void setsaddr(struct sockaddr_in *p) { //p->sin_family = ARPHRD_ETHER; p->sin_family=AF_INET; p->sin_addr.s_addr = inet_addr("192.168.1.2"); p->sin_port = htons(1); }
int main(int argc, char **argv) { struct arpreq ar; bzero(&ar, sizeof(ar)); int fd = socket(AF_INET, SOCK_DGRAM, 0); setsaddr((struct sockaddr_in *)&ar.arp_pa); strcpy(ar.arp_dev, "tap0"); sendto(fd, 0, 0, 0, &ar.arp_pa, sizeof(struct sockaddr_in)); usleep(1000); if (ioctl(fd, SIOCGARP, &ar, sizeof(ar)) == 0) write(1,&ar.arp_ha.sa_data,6); }
source: https://www.reddit.com/r/AskNetsec/comments/cysfpg/comment/lk24ur6 https://www.reddit.com/user/TheMAP123/ dest: https://gitlab.winehq.org/wine/wine/blob/master/dlls/iphlpapi/iphlpapi_main....