* [PATCH 1/5]: Exploit the `Ack Pending' flag
@ 2007-10-04 14:01 Gerrit Renker
2007-10-05 6:27 ` Ian McDonald
0 siblings, 1 reply; 2+ messages in thread
From: Gerrit Renker @ 2007-10-04 14:01 UTC (permalink / raw)
To: dccp
[DCCP]: Exploit the `Ack Pending' flag
This provides a wrapper around the function which sets the `Ack Pending' flag
on inet connection sockets. This is very useful for some DCCP cases, such as
the out-of-band feature negotiation of NN options for an established connection
(next patches).
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
net/dccp/dccp.h | 7 ++++++-
net/dccp/options.c | 1 +
2 files changed, 7 insertions(+), 1 deletion(-)
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -405,10 +405,15 @@ static inline void dccp_update_gss(struc
dp->dccps_awh = dp->dccps_gss;
}
+static inline void dccp_schedule_ack(struct sock *sk)
+{
+ inet_csk_schedule_ack(sk);
+}
+
static inline int dccp_ack_pending(const struct sock *sk)
{
const struct dccp_sock *dp = dccp_sk(sk);
- return dp->dccps_tstamp != NULL ||
+ return
#ifdef CONFIG_IP_DCCP_ACKVEC
(dp->dccps_hc_rx_ackvec != NULL &&
dccp_ackvec_pending(dp->dccps_hc_rx_ackvec)) ||
--- a/net/dccp/options.c
+++ b/net/dccp/options.c
@@ -166,6 +166,7 @@ int dccp_parse_options(struct sock *sk,
opt_recv->dccpor_timestamp = ntohl(opt_val);
(*tse)->ts_echo = opt_recv->dccpor_timestamp;
+ dccp_schedule_ack(sk);
dccp_pr_debug("%s rx opt: TIMESTAMP=%u, ackno=%llu\n",
dccp_role(sk), opt_recv->dccpor_timestamp,
(unsigned long long)
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 1/5]: Exploit the `Ack Pending' flag
2007-10-04 14:01 [PATCH 1/5]: Exploit the `Ack Pending' flag Gerrit Renker
@ 2007-10-05 6:27 ` Ian McDonald
0 siblings, 0 replies; 2+ messages in thread
From: Ian McDonald @ 2007-10-05 6:27 UTC (permalink / raw)
To: dccp
On 10/5/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [DCCP]: Exploit the `Ack Pending' flag
>
> This provides a wrapper around the function which sets the `Ack Pending' flag
> on inet connection sockets. This is very useful for some DCCP cases, such as
> the out-of-band feature negotiation of NN options for an established connection
> (next patches).
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-05 6:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-04 14:01 [PATCH 1/5]: Exploit the `Ack Pending' flag Gerrit Renker
2007-10-05 6:27 ` Ian McDonald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox