From: advielsack@gmail.com Date: Sat, 7 Jan 2012 01:26:29 +0000 (+0000) Subject: Removed unused Files X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad7b3931a16aa39edc3cf0b19a767a8856eb9ddd;p=gsconf Removed unused Files git-svn-id: http://gsconf.googlecode.com/svn/trunk@3 11042eb7-4a36-49e9-8ab2-01d26d512705 --- diff --git a/packet.c b/packet.c deleted file mode 100644 index c9328f1..0000000 --- a/packet.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "packet.h" - -unsigned short toShort(char * data) { - return (((unsigned short) data[0]) << 8) | ((unsigned short) data[1]); -} - -struct packet genPacket(char * data, int length) { - - struct packet pck; - //(*((unsigned long*)&dns_server_ip[0])) - - - pck.packetId = toShort(&data[0]); - pck.packetLen = toShort(&data[2]); - - - - pck.data = 0; - - return pck; -} diff --git a/packet.h b/packet.h deleted file mode 100644 index c11e5db..0000000 --- a/packet.h +++ /dev/null @@ -1,13 +0,0 @@ - - -struct packet genPacket(char * data, int length); - -struct packet { - unsigned short packetId; - unsigned short packetLen; - char myMac[6]; - - char devMac[6]; - - unsigned char * data; -};