Commit 65a3f0d
selftests/bpf: Use connect_to_fd in test_tcp_check_syncookie
This patch uses public helper connect_to_fd() exported in network_helpers.h
instead of the local defined function connect_to_server() in
test_tcp_check_syncookie_user.c. This can avoid duplicate code.
Then the arguments "addr" and "len" of run_test() become useless, drop them
too.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Link: https://lore.kernel.org/r/e0ae6b790ac0abc7193aadfb2660c8c9eb0fe1f0.1714907662.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>1 parent 5059c73 commit 65a3f0d
1 file changed
Lines changed: 5 additions & 33 deletions
Lines changed: 5 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 21 | | |
46 | 22 | | |
47 | 23 | | |
| |||
80 | 56 | | |
81 | 57 | | |
82 | 58 | | |
83 | | - | |
84 | | - | |
| 59 | + | |
85 | 60 | | |
86 | 61 | | |
87 | 62 | | |
| |||
107 | 82 | | |
108 | 83 | | |
109 | 84 | | |
110 | | - | |
| 85 | + | |
111 | 86 | | |
112 | 87 | | |
113 | 88 | | |
| |||
254 | 229 | | |
255 | 230 | | |
256 | 231 | | |
257 | | - | |
258 | | - | |
| 232 | + | |
259 | 233 | | |
260 | 234 | | |
261 | | - | |
262 | | - | |
| 235 | + | |
263 | 236 | | |
264 | 237 | | |
265 | | - | |
266 | | - | |
| 238 | + | |
267 | 239 | | |
268 | 240 | | |
269 | 241 | | |
| |||
0 commit comments