summaryrefslogtreecommitdiff
path: root/Makefile.in
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Makefile.in: Build libpcap before the testprogs in releasecheck target"Francois-Xavier Le Bail2023-05-081-4/+2
| | | | | | This reverts commit c7f7036094bf9c48fdfa803085857a35753e938f. This is a follow-up to 5e6aead918140299fd5b12c74dd4c728732ab47d.
* Makefile.in: Build libpcap before the testprogsFrancois-Xavier Le Bail2023-05-081-1/+1
|
* Makefile.in: Build libpcap before the testprogs in releasecheck targetFrancois-Xavier Le Bail2023-05-081-2/+4
| | | | | | This should avoid, with autotools, when doing parallel builds: make[2]: *** No rule to make target '../libpcap.a', needed by 'valgrindtest'. Stop.
* Makefile.in: Use the variable MAKE instead of the make commandFrancois-Xavier Le Bail2023-05-081-8/+8
| | | | | | | | | | | | | | | | From https://www.gnu.org/software/make/manual/make.html#MAKE-Variable: ``` Recursive make commands should always use the variable MAKE, not the explicit command name 'make', as shown here: subsystem: cd subdir && $(MAKE) ``` This should avoid the following warning when running 'make releasecheck' in some cases: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
* Make some static variables thread-local.Guy Harris2023-05-051-0/+1
| | | | | | | | This should make some functions thread-safe, even if it doesn't make them fully-reentrant; at least some of them would requiree API changes to full reentrancy. This should fix #1174.
* Correct copy-pasteo on Makefile comment about grammar.y.inEd Maste2023-03-271-1/+1
|
* Remove prototype header for Digital/Tru64 5.x. [skip ci]Denis Ovsienko2023-03-181-1/+0
| | | | | The first 5.x release was 22 years ago, the vendor stopped supporting this OS 10 years ago.
* Remove prototype header for Digital/Tru64 4.x. [skip ci]Denis Ovsienko2023-02-221-1/+0
| | | | Digital/Tru64 Unix 4.x releases were made between 1996 and 2000.
* Remove prototype header for HP-UX 11.x.Denis Ovsienko2023-02-181-1/+0
| | | | | | | | HP-UX 11.00 was released in 1997; lbl/os-hpux11.h was introduced via commit 7ec2e59 in 2002. The only prototype in the header is for ffs(), and HP-UX 11.31 (11i v3), which was released in 2007, has the prototype, albeit not in the standard header. Remove lbl/os-hpux11.h and update the lowest_set_bit() block in optimize.c to recognize HP-UX specifics.
* Clean/ignore shared libraries other than .so. [skip ci]Denis Ovsienko2023-02-181-1/+1
| | | | | | On AIX one of the files "make all" produces is libpcap.shareda, which then "git status" displays, but "make clean" does not remove. Make this the opposite way around.
* Autoconf: Remove prototype headers for ancient Solaris. [skip appveyor]Denis Ovsienko2023-02-181-2/+0
| | | | | | Same as in tcpslice and tcpdump. So long as the user finds a suitable implementation of lex and a C99 compiler, libpcap compiles on Solaris 9 regardless of lbl/os-solaris2.h presence.
* Autoconf: Retire Ultrix-specific workarounds. [skip appveyor]Denis Ovsienko2023-02-171-7/+1
| | | | (same as in tcpslice and tcpdump)
* Merge pull request #1160 from davidkaroly/cmake-cleanup-cxxGuy Harris2023-02-151-6/+3
|\ | | | | Remove check for C++ compiler on Haiku
| * autoconf: remove check for C++ compiler on HaikuDavid Karoly2023-02-141-6/+3
| |
* | Makefile.in: Update whitespacecheck target to show spaces before tabsFrancois-Xavier Le Bail2023-02-151-0/+5
| |
* | Fix spaces before tabs in indentationFrancois-Xavier Le Bail2023-02-151-1/+1
|/
* Remove AIX-specific prototype headers. [skip ci]Denis Ovsienko2023-02-131-2/+0
| | | | | | | | | AIX 4 was introduced in 1994. AIX 7.1 was introduced in 2010, it has the ffs() prototype in <strings.h>, and libpcap builds on AIX 7.1 and 7.2 without lbl/os-aix7.h: checking for ffs... yes checking whether ffs is declared... yes
* Makefile.in: Lose a trailing space. [skip ci]Denis Ovsienko2023-02-121-1/+1
|
* Makefile.in: Move config.h.in~ configure~ configure.ac~ in clean targetFrancois-Xavier Le Bail2023-02-111-3/+2
|
* doc: Add README.haiku.md. [skip ci]Denis Ovsienko2023-02-111-0/+1
|
* Makefile.in: Remove the 'net' symlink from the distclean targetFrancois-Xavier Le Bail2023-02-111-1/+1
| | | | | | | It is no longer created since commit 08a58700942f29139998acccb1c6ebb68beabbd9. [skip ci]
* Haiku: convert implementation to CDavid Karoly2023-02-111-1/+1
|
* Makefile.in: don't remove configure and config.h.in in make distclean. [skip ↵Denis Ovsienko2023-02-091-1/+1
| | | | | | appveyor] (same as in tcpdump and tcpslice)
* Remove missing/snprintf.c from makefiles. [skip ci]Denis Ovsienko2023-02-071-3/+0
| | | | The file does not exist since commit 28e59ef in 2019.
* Makefile.in: Update a test for better portabilityFrancois-Xavier Le Bail2023-01-311-1/+1
| | | | | This change allows to avoid an error on some OS, e.g. SunOS 5.10, like: sh: !: not found
* autoconf: Add autogen.sh, remove configure and config.h.inFrancois-Xavier Le Bail2023-01-301-10/+44
| | | | | | | | | | | | | | | Put autoconf-generated files in the release tarball. Remove the corresponding task from the TODO file. The minimum required version of autoconf is currently 2.69. If version 2.69 or later is already installed and there is no autoconf default, it may be necessary to set the AUTORECONF environment variable to enable the one to use, like: AUTORECONF=autoreconf-2.69 ./autogen.sh or AUTORECONF=autoreconf-2.71 ./autogen.sh
* Get rid of the remains of gnuc.hFrancois-Xavier Le Bail2023-01-181-1/+1
| | | | | | gnuc.h was removed in commit 916c01aa0a177fbdec2ddf32013ccd2155f2c518. [skip ci]
* Makefile.in: Add a "touch .devel" command in the releasecheck targetFrancois-Xavier Le Bail2023-01-131-0/+2
|
* Makefile.in: Add some missing files in the distclean targetFrancois-Xavier Le Bail2023-01-101-2/+2
| | | | | | config.h.in~ configure~ configure.ac~
* Makefile.in: sort PUBHDR in "ls" directory order.Guy Harris2023-01-031-4/+4
|
* Don't install pcap-util.h; it's not a public header.Guy Harris2023-01-021-1/+1
|
* Makefile.in: Add the whitespacecheck targetFrancois-Xavier Le Bail2022-12-191-0/+13
| | | | | | Display errors when there are trailing space(s)/tab(s). [skip ci]
* Makefile.in: Add "make -s install" in the releasecheck targetFrancois-Xavier Le Bail2022-12-111-3/+14
|
* Makefile.in: Add a "Done." message at the end of the releasecheck targetFrancois-Xavier Le Bail2022-11-261-1/+2
| | | | [skip ci]
* Makefile.in: Add the releasecheck targetFrancois-Xavier Le Bail2022-11-251-0/+26
| | | | | | | | | | | | | This change do, in a fresh directory from a release archive: 1) a "configure --enable-remote" and build, 2) a "cmake -DENABLE_REMOTE=yes" and build. It may allow to find some necessary files missing in the release archive. Define CMAKE_MESSAGE_LOG_LEVEL=NOTICE to minimize the cmake output. Define CMAKE_RULE_MESSAGES=OFF to minimize the make output in cmake case. [skip ci]
* Makefile.in: Add a missing file in EXTRA_DISTFrancois-Xavier Le Bail2022-11-241-0/+1
|
* Makefile.in: Add two missing files in EXTRA_DISTFrancois-Xavier Le Bail2022-11-131-0/+2
|
* Remove the release candidate rcX targetsFrancois-Xavier Le Bail2022-10-311-6/+0
| | | | | | | | | | | | | | | | | | | | These tricky targets used "autoreconf -f" (via "make releasetar") and they changed the VERSION and configure files locally. If building a release candidate tar archive is needed, it's better to: Update VERSION with rcX suffix and configure via "autoreconf -f", commit them, add a tag and build the archive via "make releasetar". It should display: Archive build from tag libpcap-...rcX. Note: the "autoreconf -f" command changes the configure file in an uncontrolled way (runstatedir, #define LARGE_OFF_T, etc.) depending on the autoconf version. It is necessary to choose the parts that will be added in the commit with "git add -i". This is a follow-up to 563c8a2caf64dde3818b5483d792561cd5b0b428. [skip ci]
* Use "git archive" for the "make releasetar" processFrancois-Xavier Le Bail2022-10-281-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Use the release tag if it exists or use HEAD. Remove the "autoreconf -f" command, because it changes the configure file locally in an uncontrolled way (runstatedir, #define LARGE_OFF_T, etc.) depending on the autoconf version. This command is run in the release process before a commit and we can choose the parts that will be added in the commit. Note: The following target (rcX) must be updated ou removed in a next step because it was using "autoreconf -f" (via "make releasetar") and it changes the VERSION and configure files locally. This change 1) Ensures that we only release files from tag/HEAD, not locally modified ones. 2) Avoids disclosing personal data such as the username/group of the local user. 3) Puts by default a umask of 0002, which turns off the world write bit on files in the archive. 4) Avoids problems on some OSes (no more tar, Git builtin tar.gz handling).
* Makefile.in: Use TEST_DIST, like for tcpdumpFrancois-Xavier Le Bail2022-10-261-4/+5
| | | | | This change avoids listing all tests/* files in EXTRA_DIST. (Risk of forgetting some...)
* autotools, cmake: provide an rpath option if necessary.Guy Harris2022-09-261-1/+1
| | | | | | | | | On platforms where a program built with a libpcap installed somewhere other than the default system library directory must be linked with an rpath option to cause the program to, when run, find the library with which it was linked, specify that flag in the output from pcap-config and the output produced by pkg-config when used with our libpcap.pc file.
* rpcap: have the server tell the client its byte order.Guy Harris2022-08-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stick a byte-order magic number, in the host byte order of the server, into the authentication reply. If the authentication reply is large enough to contain that magic number, extract it and, from it, determine whether the server's byte order is the opposite of the client's byte order; if it's not present, assume the server has the same byte order. If the two byte orders are differen, do the same byte-order fixing of the packet contents that we do when reading a pcap file or pcapng section with the opposite byte order, so that host-byte-order fields are converted from the byte order of the host that sent or wrote them to the byte order of the host that received or read them. This change will allow a client to work with all servers, regardless of whether they provide the byte order or not, although if the server doesn't provide the byte order, and it happens to be the opposite of the client's byte order, packets with a link-layer header type that contains host-byte-order fields will not be able to be processed correctly. It also allows clients that don't handle the byte order magic number in the authentication reply to work with all servers, as they will just discard what they consider extra data at the end of the reply. (Note: fixing the byte order in the server requires that the client send a byte order indication to the server, so *either* fix works only between an updated client and an updated server. We already have optional data in the authentication reply, to allow updated servers and clients to negotiate a protocol version while still allowing updated clients to work with older servers and older clients to work with updated servers, so this just continues that mechanism.)
* Add cbpf-savefile(5). [skip ci]Denis Ovsienko2022-07-011-0/+1
| | | | As discussed on tcpdump-workers.
* Linux USB: fix incorrect values for the packet length.Guy Harris2022-06-031-1/+2
| | | | | | | | Correctly compute the "real" length for isochronous transfers. When reading memory-mapped Linux capture files, fix up the "real" length field, in case the file was written by a program doing a capture with the bug.
* configure: get rid of unused substituted variable.Guy Harris2022-04-041-1/+0
| | | | | We haven't set EXTRA_NETWORK_LIBS in a while; no reason to keep using it.
* Merge branch 'master' into pcap-optionsGuy Harris2022-03-081-24/+37
|\
| * Improve handling of DLT_PFLOG when generating filter code.Guy Harris2022-01-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't rely on the OS's pflog include files to give the pflog header length; instead, fetch it from the length field of the header, and round up to a multiple of 4. That way, it'll handle headers for OSes other than the one for which we're compiling code, and will handle different header lengths for any given OS if, for example, a new version of the OS adds more fields to the end. Don't rely on the OS's pflog include files to define direction types, reason types, action types, or the layout of the header; instead, define them ourselves in a header of our own, with #ifs to select the ones that are only on some platforms. That way, it'll handle some fields and field values (the ones common to all OSes with pflog) on all OSes, even ones without pflog. This should also clean up the FreeBSD build issues reported in #1074, as we no longer include <net/if_pflog.h>.
| * CI: Disable shellcheck SC2006 in the Makefile. [skip ci]Denis Ovsienko2022-01-031-1/+1
| | | | | | | | Same as in tcpslice.
| * Replace README.capture-module with a web page. [skip ci]Denis Ovsienko2021-12-291-1/+0
| | | | | | | | | | | | Remove the file from EXTRA_DIST, but keep it for a while longer to point to the new location (at least chapter 8.1 in Wireshark Developer's Guide still uses the old URL).
| * Complete commit 0cc4639.Denis Ovsienko2021-12-261-4/+1
| | | | | | | | This fixes the cause of the problem so "make releasetar" works again.