Category Archives: Linux Kernel

How does the IPv4 Receiving Mechanism Assemble Fragmented Datagrams?

Posted in kerneltrap.org on October 4, 2008 – 9:26pm How does the IP receiving mechanism assemble fragmented datagrams? First of all, this writing is based on Linux kernel 2.6.21.5. When I looked into ip_frag_reasm() that was commented with /* Build … Continue reading

Posted in Hacking, Linux Kernel, Networking, Software | Tagged , | 2 Comments

Information On skb_copy_datagram_iovec()

Posted in kerneltrap.org on October 3, 2008 – 2:01pm Information on skb_copy_datagram_iovec() This writing is based on Linux kernel 2.6.21.5. This function is defined in net/core/datagram.c. The main task of this function is to copy the data of an skb … Continue reading

Posted in Hacking, Linux Kernel, Networking, Software | Tagged , | 1 Comment

The Crisp Boundary between HardIRQ-context, SoftIRQ-context, and User-context

Posted in kerneltrap.org on October 3, 2008 – 1:56pm As mentioned in Rusty’s Unreliable Guide to Kernel Locking, the Linux kernel has three contexts of thread executions: hard-IRQ context, soft-IRQ context, and user/process-context. As on July 10, 2008, the guide … Continue reading

Posted in Hacking, Linux Kernel, Software | Tagged , , , , , | 2 Comments

Tuning to a New Unusual Multicast Address

Posted in kerneltrap.org on September 28, 2008 – 10:52am During my work on the ATN TP4/CLNP Networking Suite, I helped a friend of mine to be able to capture Ethernet frames destined to unusual Ethernet multicast addresses. What I mean … Continue reading

Posted in Hacking, Linux Kernel, Network, Networking, Software | Tagged , , | 1 Comment

How to Start Hacking the Linux Kernel

Posted in kerneltrap.org on June 20, 2008 – 2:54pm Someone posted such a question here. Personally, I started to hack the Linux kernel when developing a new networking suite called the ATN TP4/CLNP Networking Suite for use with GNU/Linux systems … Continue reading

Posted in Hacking, Linux Kernel, Software | Tagged , , | 1 Comment

What does SOCK_ZAPPED mean?

Posted in kerneltrap.org on June 13, 2008 – 11:38am SOCK_ZAPPED, which is defined in include/net/sock.h, is a status flag of a socket (struct sock) to indicate that the socket has a name assigned to it already (i.e., the socket is … Continue reading

Posted in Hacking, Linux Kernel, Networking, Software | Tagged , , , , | Leave a comment

What Kind of Ethernet MAC Addresses are These?

Posted in kerneltrap.org on June 12, 2008 – 1:47am It turned out that any wireless Ethernet card’s device driver in a non-promiscuous mode does not drop any Ethernet frame with the following destination MAC address: YY:xx:xx:xx:xx:xx, where YY is an … Continue reading

Posted in Hacking, ifconfig, Linux Kernel, Networking, Software, Software Usage | Tagged | Leave a comment