Skip to content

Support for capturing MPEG-TS with Linux DVB #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ YACC = @V_YACC@
@rm -f $@
$(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c

PSRC = pcap-@[email protected] @USB_SRC@ @BT_SRC@ @CAN_SRC@ @NETFILTER_SRC@ @CANUSB_SRC@ @DBUS_SRC@
PSRC = pcap-@[email protected] @USB_SRC@ @BT_SRC@ @CAN_SRC@ @NETFILTER_SRC@ @CANUSB_SRC@ @DBUS_SRC@ @DVB_SRC@
FSRC = fad-@[email protected]
SSRC = @SSRC@
CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c \
Expand Down
40 changes: 40 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,46 @@ if test "x$enable_dbus" != "xno"; then
AC_SUBST(DBUS_SRC)
fi

dnl check for MPEG-TS capturing support
AC_MSG_CHECKING(whether the platform could support DVB capturing)
case "$host_os" in
linux*)
AC_MSG_RESULT(yes)
#
# Life's too short to deal with trying to get this to compile
# if you don't get the right types defined with
# __KERNEL_STRICT_NAMES getting defined by some other include.
#
# Check whether the includes Just Work. If not, don't turn on
# netfilter support.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably you mean "DVB", not "netfilter".

#
AC_MSG_CHECKING(whether we can compile the netfilter support)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here as well.

AC_CACHE_VAL(ac_cv_linux_dvb_can_compile,
AC_TRY_COMPILE([
AC_INCLUDES_DEFAULT
#include <sys/ioctl.h>
#include <linux/dvb/dmx.h>
],
[
ioctl(0, DMX_SET_BUFFER_SIZE, (char *)0);
ioctl(0, DMX_START, (char *)0);
ioctl(0, DMX_SET_PES_FILTER, (struct dmx_pes_filter_params*)0);
],
ac_cv_linux_dvb_can_compile=yes,
ac_cv_linux_dvb_can_compile=no))
AC_MSG_RESULT($ac_cv_linux_dvb_can_compile)
if test $ac_cv_linux_dvb_can_compile = yes ; then
AC_DEFINE(PCAP_SUPPORT_DVB, 1, [target host support Linux DVB capturing (v3 API)])
DVB_SRC=pcap-dvb-linux.c
fi
;;
*)
AC_MSG_RESULT(no)
;;
esac
AC_SUBST(PCAP_SUPPORT_DVB)
AC_SUBST(DVB_SRC)

dnl check for hardware timestamp support
case "$host_os" in
linux*)
Expand Down
Loading