Commit 0a89efe
Squash to "selftests: mptcp: add a test for mptcp_diag_dump_one"
- sdiag_protocol: avoid compilation warning:
mptcp_diag.c: In function 'send_query':
mptcp_diag.c:77:43: warning: unsigned conversion from 'int' to 'unsigned char' changes value from '262' to '6' [-Woverflow]
77 | .sdiag_protocol = IPPROTO_MPTCP,
| ^~~~~~~~~~~~~
=> the real protocol is passed via INET_DIAG_REQ_PROTOCOL.
- printf: follow the same format as ss: hexa only for the token + flags.
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>1 parent 3716d83 commit 0a89efe
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
0 commit comments