I compiled your code with a C compiler (after removing C++ syntax) and it is
working fine:

bastard:~ # ./test
Length: -1
Length: 20
Length: 8
Length: 8
Length: 4

Maybe the difference is that I have only TX from PBX connected to HFC-E1 RX.

And when using program that I sent to you I get no packets, but then
using tcpdump on visdnX interface i get packets ok:

[EMAIL PROTECTED]:/home/hfc# tcpdump -i visdn1
tcpdump: WARNING: arptype 8445 not supported by libpcap - falling back
to cooked socket
tcpdump: WARNING: visdn1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on visdn1, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
12:26:02.932394  In ethertype Unknown (0x0030), length 24:
       0x0000:  0200 0300 0201 013d                      .......=
12:26:12.945514  In ethertype Unknown (0x0030), length 24:
       0x0000:  0200 0000 0201 013d                      .......=
12:26:22.958654  In ethertype Unknown (0x0030), length 24:
       0x0000:  0200 0000 0201 013d                      .......=
12:26:32.971803  In ethertype Unknown (0x0030), length 24:
       0x0000:  023e 0100 0201 013d                      .>.....=
12:26:42.985810  In ethertype Unknown (0x0030), length 24:
       0x0000:  023e 0100 0201 013d                      .>.....=
12:26:52.998200  In ethertype Unknown (0x0030), length 24:
       0x0000:  0200 0000 0201 013d                      .......=

Regards,
Tomas Vilda
_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers

Reply via email to