Tunnel network interface and Sock

Zhu Ying Jie (zhuyingj@comp.nus.edu.sg)
Fri, 11 Jan 2002 15:02:56 +0800 (GMT-8)


Hi,
I got several questions about the structures in TCP/IP implementation
in Linux kernel version 2.4.2.
1. In freebsd, there is structure called "tun_softc" which controls the
interface property of the tunnel network. In Linux, i just found structure
of "net_device" doing same thing for all the network device. I am
wondering if there is some structures which directly controls the tunnel
network instead of the general network device? E.g. I want to get the info
whether the interface has packet in its sending queue.
2. I am wondering in linux whether ALL the sending or receiving tcp
"sock" are linked together as a link list? And how can I find the first
element in the list?
Please cc the reply to zhuyingj@comp.nus.edu.sg and thanks a lot for
the help.

Zhu Ying jie
Department of Computer Science,
School of Computing,
National University of Singapore

SS****************************SS***********************************SS
+ From little town of far land we came, +
+ to save our honor from a world of flame. +
+ By little town of far land we sleep, +
+ and trust that world will be won for you to keep. +
SS****************************SS***********************************SS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/