From cebde44c31c50939ea690718a83a55eb5016fb2a Mon Sep 17 00:00:00 2001 From: root Date: Sat, 25 Sep 2010 17:59:53 +0200 Subject: cleanup --- main.c | 4 +--- 1 file changed, 1 insertion(+), 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) { @@ -136,9 +134,9 @@ int main (int argc, char **argv) { s = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); 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; } -- cgit v1.2.3