System Calls ...
set_class system call
- int set_class(char cmd, void *arg, int size)
- cmd : ADD_CLASS, DELETE_CLASS, CHANGE_CLASS etc.
- arg : pointer to struct class_msg
- struct class_msg is the structure to be filled by the user with the required parameters like device, classid, parent etc.
- size : size of the class_msg to be sent
set_filter system call
- int set_filter(char cmd, void *arg, int size)
- cmd : ADD_FILTER, DELETE_FILTER, CHANGE_FILTER etc.
- arg : pointer to struct filter_msg
- struct filter_msg is the structure to be filled by the user with the required parameters like device, filter type, protocol, priority etc.
- size : size of the filter_msg to be sent