Question

I'm looking to design an application that will require some deep control over IP packets. Looking over the reference guide on the developers site at Android I see very limited control over packets from java.net:SocketOptions and java.net:DatagramPacket. Specifically I'm looking to control the individual bits within the packet to set TCP Flags, SYN/ACK/RST, and so forth. Based on the docs I am assuming I cannot do this within the Java API provided by Android and I'm guessing I'll have to do it some other way?

Anyone have any insight on this?

Was it helpful?

Solution

So it appears the SDK cannot do as I had needed. The NDK may be able to but on further thought I believe even using that will require root privs to construct raw packets. As I have no intent to root my phone at this time, this will all be put on hold.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top