Annotation of ports/games/zod/patches/patch-socket_handler_cpp, Revision 1.1.1.1
1.1 yason 1: $OpenBSD$
2: --- socket_handler.cpp.orig Sat Sep 10 17:12:09 2011
3: +++ socket_handler.cpp Sat Sep 10 17:12:38 2011
4: @@ -459,22 +459,6 @@ char *SocketHandler::GetMAC(char *buf)
5: for ( pIfList; *(char *)pIfList != 0; pIfList++ )
6: {
7: strncpy( sIfReq.ifr_name, pIfList->if_name, IF_NAMESIZE );
8: -
9: - if ( ioctl(skfd, SIOCGIFHWADDR, &sIfReq) != 0 )
10: - printf( "SocketHandler::GetMAC: ioctl failed\n");
11: - else
12: - {
13: - for(int i=0; i<6;i++)
14: - if(sIfReq.ifr_ifru.ifru_hwaddr.sa_data[i])
15: - {
16: - memcpy(buf, sIfReq.ifr_ifru.ifru_hwaddr.sa_data, 6);
17: -
18: - if(pIfList_tofree) if_freenameindex(pIfList_tofree);
19: - close(skfd);
20: -
21: - return buf;
22: - }
23: - }
24: }
25:
26: if(pIfList_tofree) if_freenameindex(pIfList_tofree);
CVSweb