Manipulating TCP Header Flags in Android
<p>I'm trying to write an app that is able to send individual TCP packets with specific TCP header flags set (syn,ack,fin,etc). As far as I know, the only potential way to do this is with JNI. So I did some searching and found jnetpcap, which I was able to compile and load using these instructions: <a href="http://jnetpcap.com/userguide/android" rel="nofollow">http://jnetpcap.com/userguide/android</a>. Unfortunately I was unable to actually send any packets using this example code: <a href="http://jnetpcap.com/examples/sendpacket" rel="nofollow">http://jnetpcap.com/examples/sendpacket</a> (the findAllDevs method always returns an empty list). Anyway, I was wondering if there is an easier way to accomplish my goal, or even if there are any alternatives to jnetpcap that can do what I need.</p>
