title: Get ip-address of local NIC from kernel module
body: <p>I am writing a kernel module which forms its own packet at ip level and then sends the data . I just want to know how to find the ip address of a local network interface.</p>