* ipv4options patch
@ 2005-10-28 13:33 Henrik Ehlig Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Henrik Ehlig Petersen @ 2005-10-28 13:33 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* ipv4options patch
@ 2005-10-31 7:16 Henrik Ehlig Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Henrik Ehlig Petersen @ 2005-10-31 7:16 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-31 7:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 13:33 ipv4options patch Henrik Ehlig Petersen
-- strict thread matches above, loose matches on Subject: below --
2005-10-31 7:16 Henrik Ehlig Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.