Loading net/netfilter/nf_conntrack_sip.c +9 −1 Original line number Diff line number Diff line /* SIP extension for IP connection tracking. * * Copyright (c) 2015,2017, The Linux Foundation. All rights reserved. * Copyright (c) 2015,2017-2018, The Linux Foundation. All rights reserved. * (C) 2005 by Christian Hentschel <chentschel@arnet.com.ar> * based on RR's ip_conntrack_ftp.c and other modules. * (C) 2007 United Security Providers Loading Loading @@ -1880,6 +1880,10 @@ static int sip_help_tcp(struct sk_buff *skb, unsigned int protoff, if (datalen < strlen("SIP/2.0 200")) return NF_ACCEPT; /* Check if the header contains SIP version */ if (!strnstr(dptr, "SIP/2.0", datalen)) return NF_ACCEPT; /* here we save the original datalength and data offset of the skb, this * is needed later to split combined skbs */ Loading Loading @@ -2051,6 +2055,10 @@ static int sip_help_udp(struct sk_buff *skb, unsigned int protoff, if (datalen < strlen("SIP/2.0 200")) return NF_ACCEPT; /* Check if the header contains SIP version */ if (!strnstr(dptr, "SIP/2.0", datalen)) return NF_ACCEPT; return process_sip_msg(skb, ct, protoff, dataoff, &dptr, &datalen); } Loading Loading
net/netfilter/nf_conntrack_sip.c +9 −1 Original line number Diff line number Diff line /* SIP extension for IP connection tracking. * * Copyright (c) 2015,2017, The Linux Foundation. All rights reserved. * Copyright (c) 2015,2017-2018, The Linux Foundation. All rights reserved. * (C) 2005 by Christian Hentschel <chentschel@arnet.com.ar> * based on RR's ip_conntrack_ftp.c and other modules. * (C) 2007 United Security Providers Loading Loading @@ -1880,6 +1880,10 @@ static int sip_help_tcp(struct sk_buff *skb, unsigned int protoff, if (datalen < strlen("SIP/2.0 200")) return NF_ACCEPT; /* Check if the header contains SIP version */ if (!strnstr(dptr, "SIP/2.0", datalen)) return NF_ACCEPT; /* here we save the original datalength and data offset of the skb, this * is needed later to split combined skbs */ Loading Loading @@ -2051,6 +2055,10 @@ static int sip_help_udp(struct sk_buff *skb, unsigned int protoff, if (datalen < strlen("SIP/2.0 200")) return NF_ACCEPT; /* Check if the header contains SIP version */ if (!strnstr(dptr, "SIP/2.0", datalen)) return NF_ACCEPT; return process_sip_msg(skb, ct, protoff, dataoff, &dptr, &datalen); } Loading