I modified some files in the Linux kernel
include/linux/tcp.h
include/net/tcp.h
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp_output.c
Following this i compiled the modified Linux kernel
$ make modules_install
$ make headers_install INSTALL_HDR_PATH=/usr/include
$ make install
The new kernel can start, everything seems normal. But when i tried to include the modified kernel header in my app, the compiler complains that the header does NOT define the types which i have just added. Upon checking /usr/include/netinet/tcp.h, i find that it is NOT the file i modified.
Q. How can i properly export modified Linux kernel headers to include in a C program ?
/usr/include/linux/tcp.hand/usr/include/netinet/tcp.hare both separate files. Can you try using#include <linux/tcp.h>in your C program and see if it works properly?... - TheCodeArtistmakebefore make modules_install - vinay hunachyal