Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90355
b: refs/heads/master
c: 595a8ec
h: refs/heads/master
i:
  90353: 291c674
  90351: d61d655
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Mar 26, 2008
1 parent 7a034c4 commit 5c906f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33cb1e9a93312f0cdd34e0be2bc88e893ff96a33
refs/heads/master: 595a8ecb5fa41295a7010678b60cb2f7ab15fe42
13 changes: 13 additions & 0 deletions trunk/net/netfilter/nf_conntrack_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,22 @@ static int process_update_response(struct sk_buff *skb,
return NF_ACCEPT;
}

static int process_prack_response(struct sk_buff *skb,
const char **dptr, unsigned int *datalen,
unsigned int cseq, unsigned int code)
{
if ((code >= 100 && code <= 199) ||
(code >= 200 && code <= 299))
return process_sdp(skb, dptr, datalen, cseq);

return NF_ACCEPT;
}

static const struct sip_handler sip_handlers[] = {
SIP_HANDLER("INVITE", process_sdp, process_invite_response),
SIP_HANDLER("UPDATE", process_sdp, process_update_response),
SIP_HANDLER("ACK", process_sdp, NULL),
SIP_HANDLER("PRACK", process_sdp, process_prack_response),
};

static int process_sip_response(struct sk_buff *skb,
Expand Down

0 comments on commit 5c906f4

Please sign in to comment.