aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 445884cf1c29..ea85c423cdbd 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -662,6 +662,16 @@ static int do_dccp_getsockopt(struct sock *sk, int level, int optname,
662 break; 662 break;
663 case DCCP_SOCKOPT_AVAILABLE_CCIDS: 663 case DCCP_SOCKOPT_AVAILABLE_CCIDS:
664 return ccid_getsockopt_builtin_ccids(sk, len, optval, optlen); 664 return ccid_getsockopt_builtin_ccids(sk, len, optval, optlen);
665 case DCCP_SOCKOPT_TX_CCID:
666 val = ccid_get_current_tx_ccid(dp);
667 if (val < 0)
668 return -ENOPROTOOPT;
669 break;
670 case DCCP_SOCKOPT_RX_CCID:
671 val = ccid_get_current_rx_ccid(dp);
672 if (val < 0)
673 return -ENOPROTOOPT;
674 break;
665 case DCCP_SOCKOPT_SERVER_TIMEWAIT: 675 case DCCP_SOCKOPT_SERVER_TIMEWAIT:
666 val = dp->dccps_server_timewait; 676 val = dp->dccps_server_timewait;
667 break; 677 break;