From ad7b3931a16aa39edc3cf0b19a767a8856eb9ddd Mon Sep 17 00:00:00 2001 From: "advielsack@gmail.com" Date: Sat, 7 Jan 2012 01:26:29 +0000 Subject: [PATCH] Removed unused Files git-svn-id: http://gsconf.googlecode.com/svn/trunk@3 11042eb7-4a36-49e9-8ab2-01d26d512705 --- packet.c | 21 --------------------- packet.h | 13 ------------- 2 files changed, 34 deletions(-) delete mode 100644 packet.c delete mode 100644 packet.h 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; -}; -- 2.39.5