summaryrefslogtreecommitdiff
path: root/mactelnet.c
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-01 00:44:09 +0200
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-01 00:44:09 +0200
commit046c16b0778d6b4112a32b61c274871dc6a0b43b (patch)
tree3714fc19009919d0ef74b6b81edbb5caa98fef6c /mactelnet.c
parentc56e309956da3d41420db1c5d41ccf245c594e45 (diff)
downloadMAC-Telnet-046c16b0778d6b4112a32b61c274871dc6a0b43b.tar.gz
MAC-Telnet-046c16b0778d6b4112a32b61c274871dc6a0b43b.zip
Milestone 1: First fully functional (proof of concept) version.
Diffstat (limited to 'mactelnet.c')
-rw-r--r--mactelnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mactelnet.c b/mactelnet.c
index 0d8de3d..e28b946 100644
--- a/mactelnet.c
+++ b/mactelnet.c
@@ -1,5 +1,5 @@
/*
- Mac-Telnet - Connect to RouterOS clients via MAC address
+ Mac-Telnet - Connect to RouterOS routers via MAC address
Copyright (C) 2010, Håkon Nessjøen <haakon.nessjoen@gmail.com>
This program is free software; you can redistribute it and/or modify
@@ -116,7 +116,7 @@ int parseControlPacket(unsigned char *data, const int data_len, struct mt_mactel
cpkthdr->cptype = data[4];
/* Control packet data length */
- cpkthdr->length = data[5]<<24|data[6]<<16|data[7]<<8|data[8];
+ cpkthdr->length = data[5] << 24 | data[6] << 16 | data[7] << 8 | data[8];
/* Set pointer to actual data */
cpkthdr->data = data + 9;