And also be able to inspect all the data in the tcp packet. On Nov 20, 2:13 pm, Matt <[email protected]> wrote: > Can you have iptables queue/forward all http packets to my userspace > program and then accept or deny them based on what my userspace > program decides? > > On Nov 20, 2:03 pm, Earlence <[email protected]> wrote: > > > probably that question is more appropriate for a netfilter group, but > > have you considered iptables to do your filtering? > > > On Nov 20, 5:14 am, Matt <[email protected]> wrote: > > > > I have managed to compile the kernel and get a custom kernel working > > > on my phone now. And in my netfilter module I am writing I can get the > > > ip/tcp header, but I am having a hard time getting the data that is > > > trying to be sent. This is my first time dealing with the sk_buff. > > > How do I extract the data out of that structure being passed to me? > > > > Thanks > > > > On Nov 4, 9:13 pm, Chris Stratton <[email protected]> wrote: > > > > > You would need to make sure you have a kernel source that is > > > > compatible with your specific phone (may need to get that from HTC > > > > rather than from Google's AOSP), and have configured it right. > > > > > You may be able to find a config.gz on the phone, perhaps under /proc > > > > > Also, the phone probably wants not a bare kernel but a kernel > > > > concatenated with an initial ramdisk image. You can probably strip > > > > the one off the existing kernel and re-use it. > > > > > You might check on xda-developers and see if there is anyone building > > > > kernels for your phone. > > > > > Are you sure that you are managing to flash it right? Most of the > > > > carrier-marketed phones don't permit this out of the box, and required > > > > finding a root exploit bug in the running system, using that to flash > > > > a new recovery image, and using that to replace the main kernel (well, > > > > okay, you could reflash the main kernel directly from user mode, but > > > > if it doesn't work you'll have to revert to factory before you can > > > > boot and reflash anything else). > > > > > On Nov 4, 1:02 am, Matt <[email protected]> wrote: > > > > > > Hi, > > > > > > I have a HTC supersonic 4g phone from sprint that I am doing my > > > > > development on. I am able to push out my custom kernel build to it. I > > > > > have downloaded the kernel image code from the htc download site. I > > > > > compiled it and tried to load it up on my phone and the phone turned > > > > > on but stayed on the loading screen. > > > > > > I know the HTC phone is not a supported device to do custom kernel > > > > > images on, but was wondering if anyone is trying to accomplish the > > > > > same thing. Is it possible to push out the google android code to my > > > > > phone without the HTC stuff. Basically all I am trying to do is a > > > > > proof of concept of getting a netfilter module intercepting http > > > > > traffic on my phone. > > > > > > Anything I can read, etc. to help me with what I am trying to > > > > > accomplish? > > > > > > Thanks
-- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
