From: Bob Ingraham <bobi@brin.com>
To: linux-media@vger.kernel.org
Subject: How to utilize DVB Network API
Date: Tue, 10 Mar 2009 14:03:10 -0600 (MDT) [thread overview]
Message-ID: <824146004.72331236715390866.JavaMail.root@email> (raw)
Hello All,
The documentation leaves the Network section of the API as "To be written..."
I've looked at the header file, and it may be straightforward to call, but...
Does anyone know how to properly invoke this part of the API?
Is it correct to assume that the point of the network API is to create a "virtual" network interface that I can treat like any other NIC (unidirectional, of course)?
My goal is to receive multicast packets using a Skystar 2 DVB-S card (rev 2.6), using standard multicast join and UDP receive calls.
The dvb_net_if structure has the following fields:
__u16 pid; // This is obvious
__u16 if_num; // Don't know exactly what goes here???
__u8 feedtype; // This is either 0 (MPE) or 1 (ULE)
For example, does the following code snippet the proper way to go about this?
struct dbv_net_if dni;
int sd;
dni.pid = 3022; // My MPEG2 PID
dni.if_num = 0; // ???
dni.feedtype = DVB_NET_FEEDTYPE_MPE;
sd = open("/dev/dvb/adapter0/net0", O_RDONLY);
ioctl(sd, NET_ADD_IF, &dni);
Now, do I read packets from /dev/dvb/adapter0/net0 using my sd descriptor?
Or do I at this point open a standard UDP socket and start listening for packets from the satellite interface?
Any help in clearing my basic confusion would be much appreciated.
Thank-you!
Bob
reply other threads:[~2009-03-10 20:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=824146004.72331236715390866.JavaMail.root@email \
--to=bobi@brin.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.