Fix incorrect header and namespace

This commit is contained in:
Sergey Abramchuk
2018-07-27 18:25:25 +03:00
parent be94a0c597
commit 94529b8226
+2 -2
View File
@@ -9,7 +9,7 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <openvpn/ip/ip.hpp> #include <openvpn/ip/ipcommon.hpp>
@interface OpenVPNPacket () { @interface OpenVPNPacket () {
NSData *_data; NSData *_data;
@@ -39,7 +39,7 @@
uint32_t protocol = PF_UNSPEC; uint32_t protocol = PF_UNSPEC;
uint32_t version = openvpn::IPHeader::version(header); uint32_t version = openvpn::IPCommon::version(header);
switch (version) { switch (version) {
case 4: case 4:
protocol = PF_INET; protocol = PF_INET;