summaryrefslogtreecommitdiff
path: root/net/dccp/probe.c
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 05:30:19 (GMT)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 05:45:28 (GMT)
commitc8041e264b3db6944d37b87969fbe6458cb30cfd (patch)
tree0dd21c001bea090756710216717a73d8e409a65d /net/dccp/probe.c
parentfade756f18d42694e3acb00e3471ab43002cba16 (diff)
downloadlinux-fsl-qoriq-c8041e264b3db6944d37b87969fbe6458cb30cfd.tar.xz
dccp: API to query the current TX/RX CCID
This provides function to query the current TX/RX CCID dynamically, without reliance on the minisock value, using dynamic information available in the currently loaded CCID module. This query function is then used to (a) provide the getsockopt part for getting/setting CCIDs via sockopts; (b) replace the current test for "which CCID is in use" in probe.c. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Diffstat (limited to 'net/dccp/probe.c')
-rw-r--r--net/dccp/probe.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/dccp/probe.c b/net/dccp/probe.c
index 81368a7..9ca783d 100644
--- a/net/dccp/probe.c
+++ b/net/dccp/probe.c
@@ -74,14 +74,11 @@ static void printl(const char *fmt, ...)
static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk,
struct msghdr *msg, size_t size)
{
- const struct dccp_minisock *dmsk = dccp_msk(sk);
const struct inet_sock *inet = inet_sk(sk);
- const struct ccid3_hc_tx_sock *hctx;
+ struct ccid3_hc_tx_sock *hctx = NULL;
- if (dmsk->dccpms_tx_ccid == DCCPC_CCID3)
+ if (ccid_get_current_tx_ccid(dccp_sk(sk)) == DCCPC_CCID3)
hctx = ccid3_hc_tx_sk(sk);
- else
- hctx = NULL;
if (port == 0 || ntohs(inet->dport) == port ||
ntohs(inet->sport) == port) {