From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrik Ehlig Petersen Subject: ipv4options patch Date: Mon, 31 Oct 2005 08:16:16 +0100 Message-ID: <4365C4C0.4080002@ericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Hi, I have applied the ipv4options patch to the iptables/netfilter function, and have some questions: How is the srr flag/register used in iptables? It is defined as a char, but how are the bits used? An example in the code makes a binary AND between the srr and a "boolean" (the is_strictroute). Is it because bit 0 in the srr register contains the relevant info? Or how should I understand the example below: else if ((info->options & IPT_IPV4OPTION_MATCH_LSRR) == IPT_IPV4OPTION_MATCH_LSRR) { if (!((opt->srr) & (!opt->is_strictroute))) return 0; } Hope you can help me, thanks!! -- BR Henrik