On Fri, 20 Aug 2010 09:57:33 +0530 krunal patel <krunal.raj@xxxxxxxxx> wrote: > Hi, > > There are ioctl's for attaching bpf like filters to socket. I found it > in kernel documentation. > setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, &Filter, sizeof(Filter)); > I doubt is can we attach filters in case of netlink socket. > I am logging all packets using ULOG target and using ulogd. > Is it possible to use same ioctl for netlink socket we create in ulogd? You can use socket filters on netlink sockets since 2.6.26 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html