summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-19 22:09:33 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-19 22:09:33 +0000
commit66bafc4dff6f10f21c8e3936c65d50a670af2bab (patch)
tree6a4ccee899a6fd478f5315691dbb157135138f78 /src/uanytun.c
parentmoved signal init to better place (diff)
fixed bug which prevents uanytun from detecting device type properly
some cleanup
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);