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