Protocol Initialization and Cleanup
Each neighboring protocol has an initialization function that is executed at boot time if the protocol is included in the kernel, or at module load time if the protocol has been compiled as a module. As for other kernel subsystems, the initialization function allocates all of the resources that are needed by the subsystem to function properly. The four initialization functions of the four neighboring protocols implemented in the Linux kernel are listed in Table 27-1.
Table 27-1. Neighboring protocol init/cleanup functions
|
Protocol |
Init function |
Cleanup function |
File |
|---|---|---|---|
|
ARP |
|
None |
|
|
Neighbor Discovery (ND) |
|
|
|
|
DECnet |
|
|
|
|
ARP over IP ( |
|
|
|
[*] [*] | |||
Here are some of the common tasks accomplished by these functions:
Initialize the
neigh_tablestructure withneigh_table_init.Register a group of variables in the /proc filesystem ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access