Commit fc7878a
mptcp: sockopt: fix getting freebind & transparent
When adding a socket option support in MPTCP, both the get and set parts
are supposed to be implemented.
IP(V6)_FREEBIND and IP(V6)_TRANSPARENT support for the setsockopt part
has been added a while ago, but it looks like the get part got
forgotten. It should have been present as a way to verify a setting has
been set as expected, and not to act differently from TCP or any other
socket types.
Everything was in place to expose it, just the last step was missing.
Only new code is added to cover these specific getsockopt(), that seems
safe.
Fixes: c9406a2 ("mptcp: sockopt: add SOL_IP freebind & transparent options")
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>1 parent abda693 commit fc7878a
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
1422 | 1428 | | |
1423 | 1429 | | |
1424 | 1430 | | |
| |||
1439 | 1445 | | |
1440 | 1446 | | |
1441 | 1447 | | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1442 | 1454 | | |
1443 | 1455 | | |
1444 | 1456 | | |
| |||
0 commit comments