mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-12-14 07:58:38 +00:00
[DCCP]: Make {set,get}sockopt(DCCP_SOCKOPT_PACKET_SIZE) return 0
To reflect the fact that this now is of no effect, not making apps stop working, just be warned in the system log. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
5aed324369
commit
841bac1d60
@ -471,7 +471,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
|
|||||||
switch (optname) {
|
switch (optname) {
|
||||||
case DCCP_SOCKOPT_PACKET_SIZE:
|
case DCCP_SOCKOPT_PACKET_SIZE:
|
||||||
DCCP_WARN("sockopt(PACKET_SIZE) is deprecated: fix your app\n");
|
DCCP_WARN("sockopt(PACKET_SIZE) is deprecated: fix your app\n");
|
||||||
err = -EINVAL;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
case DCCP_SOCKOPT_CHANGE_L:
|
case DCCP_SOCKOPT_CHANGE_L:
|
||||||
if (optlen != sizeof(struct dccp_so_feat))
|
if (optlen != sizeof(struct dccp_so_feat))
|
||||||
@ -583,7 +583,7 @@ static int do_dccp_getsockopt(struct sock *sk, int level, int optname,
|
|||||||
switch (optname) {
|
switch (optname) {
|
||||||
case DCCP_SOCKOPT_PACKET_SIZE:
|
case DCCP_SOCKOPT_PACKET_SIZE:
|
||||||
DCCP_WARN("sockopt(PACKET_SIZE) is deprecated: fix your app\n");
|
DCCP_WARN("sockopt(PACKET_SIZE) is deprecated: fix your app\n");
|
||||||
return -EINVAL;
|
return 0;
|
||||||
case DCCP_SOCKOPT_SERVICE:
|
case DCCP_SOCKOPT_SERVICE:
|
||||||
return dccp_getsockopt_service(sk, len,
|
return dccp_getsockopt_service(sk, len,
|
||||||
(__be32 __user *)optval, optlen);
|
(__be32 __user *)optval, optlen);
|
||||||
|
Loading…
Reference in New Issue
Block a user