-
Notifications
You must be signed in to change notification settings - Fork 892
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
darkjames
wants to merge
1
commit into
the-tcpdump-group:master
Choose a base branch
from
darkjames:libpcap-dvb-linux
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 \ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
# | ||
AC_MSG_CHECKING(whether we can compile the netfilter support) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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*) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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".