<pre>How great are you Patrick, ohh yeahhhh<br />I made the recommended modifications and dectmon has begun to function properly ¡¡<br /><br /><span style="text-decoration: underline;">Runbook:</span><br />#apt-get install libev-libevent-dev<br />#cd /usr/src/dectmon<br />#make clean<br />#sh autogen.sh<br />#sh configure<br />#make<br />#make install<br /><br /><span style="text-decoration: underline;">As well I have observed my distribution is Debian:</span><br /><br />-Debian GNU/Linux squeeze/sid<br /><br />-Linux DECT 2.6.37-rc1+ #3 SMP PREEMPT Mon Nov 8 01:36:34 CET 2010 i686 GNU/Linux<br /><br /><span style="text-decoration: underline;">1)Logs dectmon output without adding arguments:</span><br /><br />root@DECT:/usr/src/dectmon# src/dectmon <br />netlink: cluster0: mode PP ARI: class A: EMC: 0608 FPN: 000cf<br />LCE: set default pmid e3cea<br />LCE: registered protocol 0 (Link Control)<br />LCE: registered protocol 3 (Call Control)<br />LCE: registered protocol 4 (Call Independant Supplementary Services)<br />LCE: registered protocol 6 (ConnectionLess Message Service)<br />LCE: registered protocol 5 (Mobility Management)<br /><br />netlink: message group: 4<br />netlink: FPC: extended_fp_info,full_slot,co_setup_on_dummy,basic_a_field_setup,advanced_a_field_setup,cf_messages,in_min_delay,prolonged_preamble<br />netlink: HLC: adpcm_g721_voice,gap_pap_basic_speech,standard_authentication,standard_ciphering,location_registration<br /><br />LCE: BCAST RX: de c0 b4 06 38 c0 ff 05 ff ff 61 3f 3f ff ff           |....8.....a??..|<br />LCE: long page: length: 15<br />CLMS: parse {CLMS-FIXED} message<br />  address section:<br />        Address: c0b4<br />       Protocol Discriminator: 06<br />  Length Indicator: 38<br /><br />netlink: message group: 4<br />netlink: FPC: extended_fp_info,co_setup_on_dummy,basic_a_field_setup,advanced_a_field_setup,cf_messages,in_min_delay,prolonged_preamble<br />netlink: HLC: adpcm_g721_voice,gap_pap_basic_speech,standard_authentication,standard_ciphering,location_registration<br /><br /><span style="text-decoration: underline;">2)The output logs running different arguments:</span><br /><br />root@DECT:/usr/src/dectmon# src/dectmon  --dump-mac=yes --dump-dlc=yes --dump-nwk=yes<br />netlink: cluster0: mode PP ARI: class A: EMC: 0608 FPN: 000cf<br />LCE: set default pmid ea3bf<br />LCE: registered protocol 0 (Link Control)<br />LCE: registered protocol 3 (Call Control)<br />LCE: registered protocol 4 (Call Independant Supplementary Services)<br />LCE: registered protocol 6 (ConnectionLess Message Service)<br />LCE: registered protocol 5 (Mobility Management)<br /><br />netlink: message group: 4<br />netlink: FPC: extended_fp_info,full_slot,co_setup_on_dummy,basic_a_field_setup,advanced_a_field_setup,cf_messages,in_min_delay,prolonged_preamble<br />netlink: HLC: adpcm_g721_voice,gap_pap_basic_speech,standard_authentication,standard_ciphering,location_registration,generic_media_encapsulation<br />slot: 06 A: 3 B: 7 identities information: E: 0 class: 0 EMC: 0608 FPN: 000cf RPN: 0<br />slot: 06 A: 3 B: 7 identities information: E: 0 class: 0 EMC: 0608 FPN: 000cf RPN: 0<br />slot: 06 A: 3 B: 7 identities information: E: 0 class: 0 EMC: 0608 FPN: 000cf RPN: 0<br />slot: 06 A: 3 B: 7 identities information: E: 0 class: 0 EMC: 0608 FPN: 000cf RPN: 0<br />slot: 06 A: 3 B: 7 identities information: E: 0 class: 0 EMC: 0608 FPN: 000cf RPN: 0<br />slot: 06 A: 3 B: 7 identities information: E: 0 class: 0 EMC: 0608 FPN: 000cf RPN: 0<br />slot: 06 A: 3 B: 7 identities information: E: 0 class: 0 EMC: 0608 FPN: 000cf RPN: 0<br />slot: 06 A: 7 B: 7 page: RFPI: 678 bearer description: BT: 5000000000 SN: 6 SP: 0 CN: 7<br /><br /><span id="result_box" class="short_text"><span>Tonight I'll try the two updates made in git repository: </span></span>dectmon.git and libdect.git, <span id="result_box"><span>and will continue studying the protocol.<br /></span><span><br />Thank you very much for you work</span></span><br /><br /><br /><br />On Fri, 12 Nov 2010 06:12:29 +0100, Patrick McHardy  wrote:<br />> Am 08.11.2010 07:33, schrieb Patrick McHardy:<br />>> On 08.11.2010 00:43, Oscar Soriano Riera wrote:<br />>>> ...<br />>>> 5) I use Valgrid to see a problem, but valgrid fails, i think<br />>>> that is a problem with the malloc when it get memory for the<br />>>> stack:<br />>>><br />>>> root@DECT:/usr/src/dectmon# valgrind src/dectmon<br />>>> ==10731==<br />>>> Memcheck, a memory error detector<br />>>> ==10731== Copyright (C) 2002-2010, and<br />>>> GNU GPL'd, by Julian Seward et al.<br />>>> ==10731== Using Valgrind-3.6.0 and<br />>>> LibVEX; rerun with -h for copyright info<br />>>> ==10731== Command:<br />>>> src/dectmon<br />>>> ==10731==<br />>>> ==10731== Invalid write of size 2<br />>>> ==10731== at<br />>>> 0x408E568: event_set (in /usr/lib/libev.so.3.0.0)<br />>>> ==10731== by<br />>>> 0x804940E: register_fd (event_ops.c:35)<br />>>> ==10731== by 0x4078361:<br />>>> dect_fd_register (io.c:103)<br />>>> ==10731== by 0x4077C14: dect_netlink_init<br />>>> (netlink.c:358)<br />>>> ==10731== by 0x405FE5C: dect_open_handle<br />>>> (libdect.c:66)<br />>>> ==10731== by 0x804CBEB: main (main.c:108)<br />>>> ==10731==<br />>>> Address 0x41ff7d8 is not stack'd, malloc'd or (recently)<br />>>> free'd<br />>><br />>><br />>> Thanks, that helps, I'll try to figure out what's wrong.<br />> <br />> I think I know what's happening - you've installed libev3, but<br />> are compiling against the libevent headers, which use a different<br />> size for struct event.<br />> <br />> Assuming you're running Debian, try installing libev-libevent-dev,<br />> run configure again and rebuild dectmon. I'll try whether this<br />> can be caught by the configure script.<br /></pre>