Getting IP data
Posted: 25 Jul 2019, 13:36
Hi, great work!
I need to analyze the IP data, and having a hard time finding the relevant part of the code that handles that. I thought there might be a raw socket that is being written to, and I can get the buffer there and analyze it, but I can't seem to find such a thing (maybe I missed it though..)
The only place I found the PPP_IP protocol symbol is in ifcfg.c, but it only configures the file descriptor there using ppp_ioctl..
Can you point me to the part of the code that handles IP data?
I would prefer of course if the IP packets will be separated somehow, so I don't have to build a parser..
Thanks in advance
I need to analyze the IP data, and having a hard time finding the relevant part of the code that handles that. I thought there might be a raw socket that is being written to, and I can get the buffer there and analyze it, but I can't seem to find such a thing (maybe I missed it though..)
The only place I found the PPP_IP protocol symbol is in ifcfg.c, but it only configures the file descriptor there using ppp_ioctl..
Can you point me to the part of the code that handles IP data?
I would prefer of course if the IP packets will be separated somehow, so I don't have to build a parser..
Thanks in advance