jakev / dtfmods-core

Core content for Android device testing
Apache License 2.0
6 stars 2 forks source link

Parse socket information #47

Open jakev opened 8 years ago

jakev commented 8 years ago

I'd like to parse AF_INET, AF_NETLINK, and AF_UNIX information from /proc/net/.

jakev commented 8 years ago

Update

I've begun work on a new module, called socklist. socklist will parse /proc/net/* files and print information in a more readable way. Notably, it parses:

For mapping netlink socket protocol types, I'll need to maintain a DB with mappings, since they vary from kernel to kernel. For now, I'm going to call it netlink.db, and by default, it will contains the 21 mappings found here: https://android.googlesource.com/kernel/msm/+/android-6.0.1_r0.9/include/uapi/linux/netlink.h. It will support an API for adding/changing these.

socklist will use the netlink.db to make the format even more readable.