--- dibbler-1.0.1.orig/Port-linux/lowlevel-linux.c +++ dibbler-1.0.1/Port-linux/lowlevel-linux.c @@ -492,6 +492,9 @@ int sock_add(char * ifacename,int ifacei sprintf(Message, "socket creation failed. Is IPv6 protocol supported by kernel?"); return LOWLEVEL_ERROR_UNSPEC; } + + int val=6; + setsockopt(Insock, SOL_SOCKET, SO_PRIORITY, &val, sizeof(val)); /* Set the options to receivce ipv6 traffic */ if (setsockopt(Insock, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)) < 0) { --- dibbler-1.0.1.orig/Port-linux/libnetlink.c +++ dibbler-1.0.1/Port-linux/libnetlink.c @@ -45,6 +45,9 @@ int rtnl_open_byproto(struct rtnl_handle return -1; } + int val=6; + setsockopt(rth->fd, SOL_SOCKET, SO_PRIORITY, &val, sizeof(val)); + if (setsockopt(rth->fd,SOL_SOCKET,SO_SNDBUF,&sndbuf,sizeof(sndbuf)) < 0) { perror("SO_SNDBUF"); return -1; --- dibbler-1.0.1.orig/Port-linux/lowlevel-linux-link-state.c +++ dibbler-1.0.1/Port-linux/lowlevel-linux-link-state.c @@ -218,6 +218,9 @@ int report_link_state(const char* iface) return -1; } + int val=6; + setsockopt(fd, SOL_SOCKET, SO_PRIORITY, &val, sizeof(val)); + /* here just to make it more convenient for testing:if we define DEBUG,so a plugin-out and plugin-in event * will be detected if we do "ifconfig interface-name down" and ifconfig interface-name up".Otherwise, * if we do not define DEBUG, a plugin-in and plugin-out event can only be detected when the local link