public String[] tcp2String(Packet packet) { //Takes apart a tcp Packet
		TCPPacket tcpPacket = (TCPPacket) packet; //Creates a tcpPacket out of the recieved packet
		EthernetPacket ethernetPacket = (EthernetPacket) packet.datalink; 
		//Creates a ethernet packet to get the ether layer stuff
		
		src_macInEnglish = ethernetPacket.getSourceAddress(); //Gets the src_mac
		dst_macInEnglish = ethernetPacket.getDestinationAddress(); //Gets the dst_mac
		
		src_TCPPort = tcpPacket.src_port; //Retrieves the source Port
		sourcePortTCP = String.valueOf(src_TCPPort); //Creates a Src_port string
		dst_TCPPort = tcpPacket.dst_port; //Retrieves the Destination Port
		destinationPortTCP = String.valueOf(dst_TCPPort); //Creates a String for the dst_tcpPort
		
		
		protocol = tcpPacket.protocol; //Holds the protocol Name
			
		protocolName = "TCP"; //Make the protocol name TCP
		
		for(int i = 0; i < tcpPacket.data.length; i++) {
			data += String.valueOf((char) tcpPacket.data[i]);
		}
		
		src_ip = tcpPacket.src_ip; //Retrieves the src Ip address
		srcIPString = src_ip.toString();
		dst_ip = tcpPacket.dst_ip; //Retrieves the dst IP address 
		dstIPString = dst_ip.toString(); //Creates a string with dst_ip
		
		//Creates an array of strings with the created strings to insert into a table
		dataArray = new String[] {src_macInEnglish, dst_macInEnglish,
				sourcePortTCP, destinationPortTCP, protocolName};
		return dataArray;
	}