Added functionalitiy to remove formerly created CAN GW jobs.
#include <libgen.h>
#include <string.h>
#include <unistd.h>
#include <libgen.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/netlink.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/netlink.h>
- req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE | NLM_F_EXCL;
+ req.n.nlmsg_flags = NLM_F_REQUEST;
req.n.nlmsg_type = RTM_NEWROUTE;
break;
req.n.nlmsg_type = RTM_NEWROUTE;
break;
+ case DEL:
+ req.n.nlmsg_flags = NLM_F_REQUEST;
+ req.n.nlmsg_type = RTM_DELROUTE;
+ break;
+
default:
printf("This function is not yet implemented.\n");
exit(1);
default:
printf("This function is not yet implemented.\n");
exit(1);