403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/security/arpCounterattack/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/security/arpCounterattack/files/patch-address.hpp
--- address.hpp.orig	2010-09-28 18:12:26 UTC
+++ address.hpp
@@ -28,7 +28,7 @@
 #include <sys/socket.h>
 
 #include <arpa/inet.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
   #include <netinet/if_ether.h>
 #endif
 #ifdef __linux__
@@ -44,7 +44,7 @@
 std::string textToEthernet(const std::string &textEthernetAddress) {
   ether_addr binaryEthernetAddress;
   ether_aton_r(textEthernetAddress.c_str(), &binaryEthernetAddress);
-  #ifdef __FreeBSD__
+  #if defined(__FreeBSD__) || defined(__DragonFly__)
     return std::string((char*)binaryEthernetAddress.octet, ETHER_ADDR_LEN);
   #endif
   #ifdef __linux__
@@ -60,7 +60,7 @@ std::string textToEthernet(const std::string &textEthe
 std::string ethernetToText(const char *binaryEthernetAddress) {
   ether_addr _binaryEthernetAddress;
   char textEthernetAddress[17];
-  #ifdef __FreeBSD__
+  #if defined(__FreeBSD__) || defined(__DragonFly__)
     memcpy(_binaryEthernetAddress.octet, binaryEthernetAddress, ETHER_ADDR_LEN);
   #endif
   #ifdef __linux__

Youez - 2016 - github.com/yon3zu
LinuXploit