Skip to content
Browse files

replaced bcopy() with Bits_memcpy()

  • Loading branch information...
1 parent 38929e4 commit 077e38d15acd38f5c45cc9c1b5c9d6d306a9ce55 Caleb James DeLisle committed Sep 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 interface/TUNConfigurator_FreeBSD.c
View
3 interface/TUNConfigurator_FreeBSD.c
@@ -16,6 +16,7 @@
#include "interface/Interface.h"
#include "interface/TUNConfigurator.h"
#include "util/AddrTools.h"
+#include "util/Bits.h"
#include <ctype.h>
#include <fcntl.h>
@@ -135,7 +136,7 @@ void TUNConfigurator_setIpAddress(const char* interfaceName,
gai_strerror(err));
}
- bcopy(result->ai_addr, &in6_addreq.ifra_addr, result->ai_addrlen);
+ Bits_memcpy(result->ai_addr, &in6_addreq.ifra_addr, result->ai_addrlen);
/* turn the prefixlen into a mask, and add it to the request */
struct sockaddr_in6* mask = &in6_addreq.ifra_prefixmask;

0 comments on commit 077e38d

Please sign in to comment.
Something went wrong with that request. Please try again.