All of lore.kernel.org
 help / color / mirror / Atom feed
* how to parse options?
@ 2003-11-21 14:37 nicho
  2003-11-29 18:35 ` Henrik Nordstrom
  0 siblings, 1 reply; 2+ messages in thread
From: nicho @ 2003-11-21 14:37 UTC (permalink / raw)
  To: netfilter-devel

hi:
     #iptables -t nat -A POSTROUTING -o eth1 -s xxxxx/24 -j SNAT
--to-source yyyyy
    As we know, in kernel there is a structure called multi_range. When
we do nat, we choose a proper IP from the multi_range, and a proper port
if necessory. My question is, how multi_range is set into kernel, and
how option '--to-source' is parsed?
    By the way, I'm confused at getsockopt(... SO_GET_ENTRY...) . As the
name implies, we want to get entry info from kernel, but why it dose
copy data from user level to kernel level indeed. What does it do at all?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-29 18:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21 14:37 how to parse options? nicho
2003-11-29 18:35 ` Henrik Nordstrom

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.