PacketManager()
	{
		queue = new LinkedBlockingQueue<ByteBuffer>();
		try {
			socket = new DatagramSocket(1234,
					InetAddress.getByName("0.0.0.0"));
			socket.setBroadcast(true);
		} catch (IOException e) {
			e.printStackTrace();
		}
		netlock.lock();
		try {
			Runtime.getRuntime().exec("echo 1 > /proc/sys/net/ipv4/ip_forward");
			Runtime.getRuntime().exec("ip addr flush dev " + "eth0");
			Runtime.getRuntime().exec("ip route flush dev " + "eth0");
			Runtime.getRuntime().exec("ip addr add " + InetAddress.getLocalHost().getHostAddress()  + "/16 dev " + "eth0" + " brd +");
			Runtime.getRuntime().exec("ip route add to default via " + InetAddress.getLocalHost().getHostAddress());
		} catch (IOException e1) {
			e1.printStackTrace();
		} finally {
			netlock.unlock();
		}
	}