mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 19:45:06 +08:00
6254ad4088
IDs are supposed to be between 0 and 255.
In pm_nl_ctl, for both the 'add' and 'get' instruction, the ID is casted
in a u_int8_t. So if we give 256, we will delete ID 0. Obviously, the
goal is not to delete this ID by giving 256.
We could modify pm_nl_ctl and stop if the ID is negative or higher than
255 but probably better not to increase the number of lines for such
things in this tool which is only used in selftests. Instead, we use it
within the limits.
This modification also means that we will no longer add a new ID for the
2nd entry. That's why we removed an expected entry from the dump and
introduced with
commit
|
||
---|---|---|
.. | ||
.gitignore | ||
config | ||
diag.sh | ||
Makefile | ||
mptcp_connect.c | ||
mptcp_connect.sh | ||
mptcp_join.sh | ||
pm_netlink.sh | ||
pm_nl_ctl.c | ||
settings | ||
simult_flows.sh |