#include #include "syscall.h" int add_gateway(unsigned int ipAddr) { return add_routable_node(ipAddr, 1); } int remove_gateway(unsigned int ipAddr) { return add_routable_node(ipAddr, 0); } int add_routable(unsigned int ipAddr) { return add_routable_node(ipAddr, 4); } int remove_routable(unsigned int ipAddr) { return add_routable_node(ipAddr, 3); } int change_state(unsigned int state) { return add_routable_node(state, 2); } int get_state() { return add_routable_node(0, 5); } unsigned int change_cid(unsigned int cid) { return add_routable_node(0, 6); } unsigned int get_cid() { return add_routable_node(0, 7); }