Fun with dvbsnoop and tuntap
dvbsnoop is a tool like the known tcpdump but for Digital Video Broadcast. It almost knows about each and every section on AIR and can dump them. It also knows about the the Multiprotocol Encapsulation (MPE) which can contain IP Datagrams.
What would be nice is to use wireshark or tcpdump on these datagrams to analyse them further or to make use of these datagrams in some applications. Now how to get the IP Datagrams from dvbsnoop into the Linux IP stack? The short answer is using tuntap to get the data into the stack. You have the options to use TUN or TAP the difference is that with TAP you write complete Ethernet frames where TUN only operates on IP datagrams. I have decided to use TUN and followed the example to create a tun device and you end up with a filedescriptor and you only need to write the IP Datagrams. Well actually I have wondered about the frame format and have used the IFF_NO_PI option. Within a couple of minutines I was able to do tcpdump -i tun1 and saw UDP packages. Now one can use dvbnet and dvbsnoop to receive IP datagrams over DVB. I prefer dvbsnoop as if this crashes my kernel still works fine in contrast to using dvbnet.
I will post patches of this little hack soon, meanwhile I search for DVB-T receivers capable of receiving the full Transportstream (PID 0x2000)