EasyCwmp - easycwmp
View Issue Details
0000198easycwmp[All Projects] Questionpublic2017-02-08 03:582017-02-13 17:56
superkid 
mohamed.kallel 
urgentblockalways
resolvedno change required 
linuxopenwrt
0000198: tcp out of order
Hi i was testing easycwmp and notice TCP out of order, data capture is attached

is easycwmp using HTTP digest authentication?

also we're using ACS that requires username and password, we changed username and password under local is that correct or should we change the one under config acs?
No tags attached.
? easy_out_of_order.cap (7,303) 2017-02-08 03:58
http://support.easycwmp.org/file_download.php?file_id=90&type=bug
? easy_with_auth.cap (4,179) 2017-02-09 06:22
http://support.easycwmp.org/file_download.php?file_id=93&type=bug
? .config (179,482) 2017-02-09 10:06
http://support.easycwmp.org/file_download.php?file_id=94&type=bug
? .config2 (179,707) 2017-02-10 03:24
http://support.easycwmp.org/file_download.php?file_id=95&type=bug
? with_digest.cap (769,443) 2017-02-10 09:42
http://support.easycwmp.org/file_download.php?file_id=96&type=bug
Issue History
2017-02-08 03:58superkidNew Issue
2017-02-08 03:58superkidFile Added: easy_out_of_order.cap
2017-02-09 02:13superkidNote Added: 0000641
2017-02-09 06:22superkidNote Added: 0000642
2017-02-09 06:22superkidFile Added: easy_with_auth.cap
2017-02-09 07:28mohamed.kallelNote Added: 0000643
2017-02-09 08:36superkidNote Added: 0000644
2017-02-09 10:02mohamed.kallelNote Added: 0000645
2017-02-09 10:06superkidFile Added: .config
2017-02-09 10:06superkidNote Added: 0000646
2017-02-09 10:12mohamed.kallelNote Added: 0000647
2017-02-09 10:13mohamed.kallelNote Added: 0000648
2017-02-09 10:14superkidNote Added: 0000649
2017-02-09 10:15mohamed.kallelNote Added: 0000650
2017-02-09 10:27superkidNote Added: 0000651
2017-02-09 10:27mohamed.kallelNote Added: 0000652
2017-02-09 10:31superkidNote Added: 0000653
2017-02-09 11:26mohamed.kallelNote Added: 0000654
2017-02-10 03:23superkidNote Added: 0000656
2017-02-10 03:24superkidFile Added: .config2
2017-02-10 09:41superkidNote Added: 0000658
2017-02-10 09:42superkidFile Added: with_digest.cap
2017-02-10 09:53mohamed.kallelNote Added: 0000659
2017-02-10 11:14mohamed.kallelNote Added: 0000660
2017-02-13 17:56mohamed.kallelStatusnew => resolved
2017-02-13 17:56mohamed.kallelResolutionopen => no change required
2017-02-13 17:56mohamed.kallelAssigned To => mohamed.kallel

Notes
(0000641)
superkid   
2017-02-09 02:13   
i already tried the same fix as this issue

http://support.easycwmp.org/view.php?id=196 [^]

but I still cannot connect to ACS with digest auth


easycwmp logs
Wed Feb 8 17:22:21 2017 daemon.notice easycwmpd: external script init
Wed Feb 8 17:22:21 2017 daemon.notice easycwmpd: external: execute inform parameter
Wed Feb 8 17:22:21 2017 daemon.notice easycwmpd: send Inform
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 401
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: sending http message failed
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: sending Inform failed
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: external: execute apply service
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: external script exit
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: end session failed
(0000642)
superkid   
2017-02-09 06:22   
current easycwmp settings

config local
    option interface 'eth0'
    option port '7547'
    option ubus_socket '/var/run/ubus.sock'
    option date_format '%FT%T%z'
    option username 'admin'
    option password 'admin'
    option logging_level '3'

config acs
    option http100continue_disable '1'

I also enabled libraries-> libcurl -> enable cryptographic authentication

attached is our wireshark capture, I'm not sure if easycwmp is sending http with auth
easy_with_auth.cap
(0000643)
mohamed.kallel   
2017-02-09 07:28   
Rebuild libcurl and then easycwmp. and then re-install both libcurl and easycwmp.

and remove the option http100continue_disable from the config
(0000644)
superkid   
2017-02-09 08:36   
we already rebuild the whole source and flash it on out device, also removed http100continue_disable from config. still cannot connect to digest ACS server
(0000645)
mohamed.kallel   
2017-02-09 10:02   
share your ".config" file. It's under your openwrt sdk.

And what is the output of the following command:

opkg depends libcurl
(0000646)
superkid   
2017-02-09 10:06   
libcurl depends on:
    libc
    libpolarssl

.config is attached
(0000647)
mohamed.kallel   
2017-02-09 10:12   
what's your openwrt version?
(0000648)
mohamed.kallel   
2017-02-09 10:13   
did you made a make clean of packages libcurl and easycwmp
(0000649)
superkid   
2017-02-09 10:14   
yes I did. I clean the whole source to be sure, then recompiled again
(0000650)
mohamed.kallel   
2017-02-09 10:15   
and also what's your libcurl version?
(0000651)
superkid   
2017-02-09 10:27   
version 7.38
(0000652)
mohamed.kallel   
2017-02-09 10:27   
your openwrt version too?
(0000653)
superkid   
2017-02-09 10:31   
OpenWrt Barrier Breaker 14.07
easycwmp version 1.5.1
(0000654)
mohamed.kallel   
2017-02-09 11:26   
it's a libcurl bug.
You can fix it in the configure.ac of libcurl. The bug is related to the --enable-crypto-auth.

Or you can use a new version of libcurl. the libcurl version of OpenWRT CC works fine
(0000656)
superkid   
2017-02-10 03:23   
Hi, I updated libcurl to 7.50 with enable crypto auth (will attach .config2)
but easycwmp seems to hang, when i try
#easycwmp get
it displays data up to memorystatus then stops
(0000658)
superkid   
2017-02-10 09:41   
I updated libcurl to 7.50 and used openSSL, easycwmp can now connect to digest server, is this feature available on v1.4.1?

Also, we're still having problems with the session. sometimes, tcp session end but cpe still send packets then server sends reset.. any idea? (attached with_digest.cap)
(0000659)
mohamed.kallel   
2017-02-10 09:53   
yes it's available on v1.4.1 and in all easycwmp versions
(0000660)
mohamed.kallel   
2017-02-10 11:14   
tcp session end but cpe still send packets then server sends reset.. any idea? (attached with_digest.cap)

==> may be your acs conatins script of reset