summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@aquarius.(none)>2010-09-25 17:59:53 +0200
committerroot <root@aquarius.(none)>2010-09-25 17:59:53 +0200
commitcebde44c31c50939ea690718a83a55eb5016fb2a (patch)
tree389c5eb2051a44375edbcc947c3b4a399370bad7
parent3148553efa081253644f6c20724dfbddb487d7f7 (diff)
downloadMAC-Telnet-cebde44c31c50939ea690718a83a55eb5016fb2a.tar.gz
MAC-Telnet-cebde44c31c50939ea690718a83a55eb5016fb2a.zip
cleanup
-rw-r--r--main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index aa8aa07..0dbb38c 100644
--- a/main.c
+++ b/main.c
@@ -60,10 +60,8 @@ void etherAddrton(unsigned char *dest, const unsigned char *mac) {
if (*p == ':') {
continue;
}
- printf("Reading %c and %c\n", *p, p[1]);
dest[i++] = hex2(p++);
} while (*p++ && *p);
- printf("fra %s, Til: %X", mac, dest[1]);
}
int sendCustomUDP(const int socket, const char *sourcemac, const char *destmac, const char *sourceip, const int sourceport, const char *destip, const int destport, const char *data, const int datalen) {
@@ -137,8 +135,8 @@ int main (int argc, char **argv) {
printf("Sockid: %d\n", s);
result = sendCustomUDP(s, "00:19:db:66:e5::bf", "04:1e:64:ea:e5:15", "10.0.0.100", 20561, "255.255.255.255", 20561, data, 10);
- result = sendCustomUDP(s, "00:19:db:66:e5::bf", "04:1e:64:ea:e5:15", "10.0.0.100", 20561, "255.255.255.255", 20561, data, 10);
printf("Send result: %d\n", result);
+ close(s);
return 0;
}