![]() |
lvs-devel
|
| To: | lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, netfilter@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [patch v1 01/12] netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct argument |
| Cc: | Jan Engelhardt <jengelh@xxxxxxxxxx>, Stephen Hemminger <shemminger@xxxxxxxxxx>, Wensong Zhang <wensong@xxxxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Patrick McHardy <kaber@xxxxxxxxx> |
| From: | Simon Horman <horms@xxxxxxxxxxxx> |
| Date: | Sun, 22 Aug 2010 21:44:58 +0900 |
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
---
The motivation for this is to allow ct_sip_get_header() to be
used by LVS without connection tracking as per subsequent patches.
Index: nf-next-2.6/net/netfilter/nf_conntrack_sip.c
===================================================================
--- nf-next-2.6.orig/net/netfilter/nf_conntrack_sip.c 2010-07-14
20:40:40.000000000 +0900
+++ nf-next-2.6/net/netfilter/nf_conntrack_sip.c 2010-07-14
21:15:06.000000000 +0900
@@ -152,6 +152,9 @@ static int parse_addr(const struct nf_co
const char *end;
int ret = 0;
+ if (!ct)
+ return 0;
+
memset(addr, 0, sizeof(*addr));
switch (nf_ct_l3num(ct)) {
case AF_INET:
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [patch v1 0/2] ipvsadm: SIP Persistence Engine, Simon Horman |
|---|---|
| Next by Date: | [patch v1 1/2] [PATCH 1/2] Slightly simplify options conflicts logic, Simon Horman |
| Previous by Thread: | [patch v1 00/12] IPVS: SIP Persistence Engine, Simon Horman |
| Next by Thread: | [patch v1 02/12] netfilter: nf_conntrack_sip: Add callid parser, Simon Horman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |