RE: IP_MSFILTER error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thank you for your quick reply.  It works with IP_ADD_MEMBERSHIP. But, I
don't understand why we need IP_ADD_MEMBERSHIP before IP_MSFILTER as we
can do everything with IP_MSFILTER.  I feel IP_MSFILTER is more
versatile than other basic API.

As you mentioned it does not work with nsrcs=0 but, works with any
non-zero value of nsrcs include and exclude filters. Is there any
documentation which gives brief description of usage of this API
sequence. If I use nsrcs=0 option I still get "Cannot assign requested
address".  I am using 2.6.9 kernel.  I will try with the 2.6.16 kernel
and see what happens?

BTW, do you know the status of setipv4sourcefilter()/setsourcefilter()
API? They are not there in latest release?

Thank you

With regards
bhaskara


-----Original Message-----
From: David Stevens [mailto:dlstevens@xxxxxxxxxx] 
Sent: Monday, September 18, 2006 10:30 PM
To: Bhaskara Peela
Cc: linux-net@xxxxxxxxxxxxxxx
Subject: RE: IP_MSFILTER error

You must join the group (using IP_ADD_MEMBERSHIP) prior to using
IP_MSFILTER.

Also, there were some recent bug fixes relating to nsrcs=0 cases, so if
you really want to use that, you should use a relatively recent Linux
kernel, if you aren't already. Adding the join before the IP_MSFILTER
works on my 2.6.17.8 system.

Also, note that a filter of {INCLUDE, {}} is equivalent to a "leave
group", which is what it does.

                                                +-DLS



-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux