freecwmp
[Top] [All Lists]

Re: freecwmp client sending TCP FIN

To: freecwmp@linux-mips.org
Subject: Re: freecwmp client sending TCP FIN
From: akhil garg <akhilgarg7@gmail.com>
Date: Wed, 13 Mar 2013 13:00:57 +0000
Cc: freecwmp@lukaperkov.net
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=8tgrq4ZgQ7kG6K5PqRU+O2LvKpHuJNQaXVRifG89sBQ=; b=a79HJU4FktJZV+shR/AEN1BGoTtNXJyozDWMiSuzd/SuyIF1bf6klzrVnZtszo1j11 Cv14dZk6cRHzgGtu+QFgCmCgPdU6LToG4C484J0shh9kg9zpG6S9uBifEqSxbnFwAkJT 6GvOsISd9rbO1h4ADMv0PgRg23I95CZo4A9XaUsJeC2KulA5yH/jdfNP5OFVSPHGn1QP 7ENfOyqNfuUMb4xorPG1ZiB3Cm1wnEr1mOR0WQyy9iEruylq4sTKGPgPYQZu3rplRtKe RFLGshvFiAt/w4aZ+BANaLTxsYkLCqmK9dwPBKVTknmcdwF5/Iq5vvenrNeeEYynI0NO KVsQ==
In-reply-to: <CA+mgNr5uhO_+fcGOTTNkgnXD2n=Cx4m2xn0w1hJw157uViB=3w@mail.gmail.com>
Original-recipient: rfc822;freecwmp@linux-mips.org
References: <CA+mgNr5n6BNeimrcPu1+YurvaPxz2dchR+vd20zNfwea62HqTg@mail.gmail.com> <20130311163109-25406@mutt-kz> <CA+mgNr5uhO_+fcGOTTNkgnXD2n=Cx4m2xn0w1hJw157uViB=3w@mail.gmail.com>
Sender: freecwmp-bounce@linux-mips.org
Hi Luka,
After reverting back the "Digest Authentication" PATCH I could proceed further.
Now I face other issue while executing GetRPCMethods.
xml_recreate_namespace() in file xml.c is failing.
This function is not able to find the attribute names "SOAP-ENV" and
"SOAP-ENC" in the RPC below

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:cwmp="urn:dslforum-org:cwmp-1-1">
<SOAP-ENV:Header>
<cwmp:ID SOAP-ENV:mustUnderstand="1">62</cwmp:ID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<cwmp:GetRPCMethods/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Just to proceed further I have hardcoded the following lines in the
function xml_recreate_namespace
        ns.soap_env = strdup("SOAP-ENV");
        ns.soap_enc = strdup("SOAP-ENC");
        ns.xsd = NULL;
        ns.xsi = NULL;
        ns.cwmp = strdup("cwmp");
        return 0;


Regards,
Akhil


On Tue, Mar 12, 2013 at 8:54 AM, akhil garg <akhilgarg7@gmail.com> wrote:
> Hi Luka,
> Please find attached the wireshark capture and console logs attached.
>
> I observe that CPE is sending SYN and starting new http session after
> receiving InformResponse.
>
> then ACS is sending GetRPCMethods in http response with content-length=379
> Console Logs show that HTTP Response received with content-length=379
> but Console logs not showing GetRPCMethods Envelope and also the CPE
> is not sending GetRPCMethodsResponse.
>
>
> Regards,
> Akhil
>
> On Mon, Mar 11, 2013 at 4:31 PM, Luka Perkov <freecwmp@lukaperkov.net> wrote:
>> Hi Akhil,
>>
>> On Mon, Mar 11, 2013 at 12:00:42PM +0000, akhil garg wrote:
>>> I have configured GetRPCMethods RPC on my ACS.
>>> freecwmp client sends INFORM and receives INFORMResponse. Its fine.
>>> but just after it freecwmp sends TCP FIN and terminates the session
>>> with ACS without giving a chance to the ACS to send the RPC
>>> GetRPCMethods.
>>
>> I would like to see the capture.
>>
>> Luka
>
>
>
> --
> regards,
> akhil



-- 
regards,
akhil

<Prev in Thread] Current Thread [Next in Thread>