]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/tc_monitor.c
lib: introduce print_nl
[mirror_iproute2.git] / tc / tc_monitor.c
index 83142cb21f5440c00b8d5dc651e6a3303ec237b1..1f1ee08fb9cf89844f92cba2f5594c5ae058a8b4 100644 (file)
@@ -13,7 +13,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -44,7 +43,10 @@ static int accept_tcmsg(const struct sockaddr_nl *who,
        if (timestamp)
                print_timestamp(fp);
 
-       if (n->nlmsg_type == RTM_NEWTFILTER || n->nlmsg_type == RTM_DELTFILTER) {
+       if (n->nlmsg_type == RTM_NEWTFILTER ||
+           n->nlmsg_type == RTM_DELTFILTER ||
+           n->nlmsg_type == RTM_NEWCHAIN ||
+           n->nlmsg_type == RTM_DELCHAIN) {
                print_filter(who, n, arg);
                return 0;
        }