Pengetahuan Kernel (17) – Struktur Data Linux (17) – rtable

Tiap-tiap struktur data rtable menangani informasi tentang jalur yang dipakai dalam rangka mengirimkan paket ke host IP. Struktur data rtable digunakan didalam cache route IP.

[sourcecode language=”cpp”]
struct rtable
{
struct rtable *rt_next;
__u32 rt_dst;
__u32 rt_src;
__u32 rt_gateway;
atomic_t rt_refcnt;
atomic_t rt_use;
unsigned long rt_window;
atomic_t rt_lastuse;
struct hh_cache *rt_hh;
struct device *rt_dev;
unsigned short rt_flags;
unsigned short rt_mtu;
unsigned short rt_irtt;
unsigned char rt_tos;
};
[/sourcecode]
Sumber : tldp.org

Be the first to comment

Leave a Reply

Your email address will not be published.


*