summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index df54c57..c4a4f1b 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -149,9 +149,9 @@ int process_tun_data(tun_device_t* dev, udp_socket_t* sock, options_t* opt, plai
plain_packet_set_payload_length(plain_packet, len);
- if(dev->type_ = TYPE_TUN)
+ if(dev->type_ == TYPE_TUN)
plain_packet_set_type(plain_packet, PAYLOAD_TYPE_TUN);
- else if(dev->type_ = TYPE_TAP)
+ else if(dev->type_ == TYPE_TAP)
plain_packet_set_type(plain_packet, PAYLOAD_TYPE_TAP);
else
plain_packet_set_type(plain_packet, PAYLOAD_TYPE_UNKNOWN);