I have written a kernel module where I want to send interface up/down notifications to the user space program. I have assigned the message group as RTMGRP_LINK
and also included linux/rtnetlink.h
header file. But still when I compile the module I receive the following error:
abc.c: In function âevent_handlerâ:
abc.c:63: error: âRTMGRP_LINKâ undeclared (first use in this function)
abc.c:63: error: (Each undeclared identifier is reported only once
abc.c:63: error: for each function it appears in.)
Can somebody suggest why?