Linux Kernel Architecture
Chapter 12: Networks int (*init)(struct net *net); void (*exit)(struct net *net); }; The structure does not present any surprise ...
Chapter 12: Networks __u16 csum_offset; }; }; __u32 priority; __u8 local_df:1, cloned:1, ip_summed:2, nohdr:1, nfctinfo:3; __u8 ...
Chapter 12: Networks transport_header MAC IP TCP network_header mac_header tail end head data Figure 12-6: Link between socket b ...
Chapter 12: Networks to the start of the IP header. The same operations are repeated for the layers below until a finished packe ...
Chapter 12: Networks though.dataandheadremain regular pointers, and allsk_buff_data_telements are now interpreted as offsetsrela ...
Chapter 12: Networks A list head is used to implement wait queues with socket buffers. Its structure is defined as follows: < ...
Chapter 12: Networks 12.7.1 Representation of Network Devices In the kernel, each network device is represented by an instance o ...
Chapter 12: Networks int ifindex; struct net_device_stats* (*get_stats)(struct net_device *dev); /* Hardware header description ...
Chapter 12: Networks void (*tx_timeout) (struct net_device *dev); int (*neigh_setup)(struct net_device *dev, struct neigh_parms ...
Chapter 12: Networks ❑ dev_addrstores the hardware address of the device (e.g., the MAC address for Ethernet cards), andaddr_len ...
Chapter 12: Networks ❑ The default implementation ofheader_ops->createis ineth_header. This function is used to generate the ...
Chapter 12: Networks The steps taken byregister_netdeviceare summarized in the code flow diagram in Figure 12-9. Initialization ...
Chapter 12: Networks Figure 12-10 shows an overview of the path followed by a packet through the kernel to the network layer fun ...
Chapter 12: Networks only its own queue and cannot therefore interfere with the work of the other CPUs. Below, I ignore the mult ...
Chapter 12: Networks In turn, the function uses a type-specific handlerfuncthat assumes further processing of the packet in the ...
Chapter 12: Networks Assume that no packets have arrived on a network adapter yet, but start to come in at high frequency now. T ...
Chapter 12: Networks The kernel handles all devices on the list in a round robin fashion: One device is polled after another, an ...
Chapter 12: Networks do not want to deal with the peculiarities of any real networking card, let us discuss a pseudo-function fo ...
Chapter 12: Networks Assume that interface-specific data are contained innet_device->private; this is the method used by most ...
Chapter 12: Networks After an individual device has been polled, the kernel checks if the number of processed packets is identic ...
«
35
36
37
38
39
40
41
42
43
44
»
Free download pdf