Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265169
b: refs/heads/master
c: a6444f4
h: refs/heads/master
i:
  265167: 11d44a3
v: v3
  • Loading branch information
Samuel Jero authored and Gerrit Renker committed Aug 1, 2011
1 parent d9137d2 commit ac0cd79
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44e6fd9e67c1043aaeed381c10b74e73807b7f26
refs/heads/master: a6444f4237af6c9981ddd45ab35a5c06d4e5a4d8
21 changes: 16 additions & 5 deletions trunk/net/dccp/feat.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,11 +665,22 @@ int dccp_feat_insert_opts(struct dccp_sock *dp, struct dccp_request_sock *dreq,
return -1;
if (pos->needs_mandatory && dccp_insert_option_mandatory(skb))
return -1;
/*
* Enter CHANGING after transmitting the Change option (6.6.2).
*/
if (pos->state == FEAT_INITIALISING)
pos->state = FEAT_CHANGING;

if (skb->sk->sk_state == DCCP_OPEN &&
(opt == DCCPO_CONFIRM_R || opt == DCCPO_CONFIRM_L)) {
/*
* Confirms don't get retransmitted (6.6.3) once the
* connection is in state OPEN
*/
dccp_feat_list_pop(pos);
} else {
/*
* Enter CHANGING after transmitting the Change
* option (6.6.2).
*/
if (pos->state == FEAT_INITIALISING)
pos->state = FEAT_CHANGING;
}
}
return 0;
}
Expand Down

0 comments on commit ac0cd79

Please sign in to comment.