Skip to content

Update libpcap and tcpdump #1006

Merged
merged 14 commits into from
Jan 18, 2019
Merged

Update libpcap and tcpdump #1006

merged 14 commits into from
Jan 18, 2019

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Jan 17, 2019

There was only a static library libpcap before, so no program is linked against a dynamic library.

Tested on sigusr2.

@pmenzel pmenzel force-pushed the update-libpcap-and-tcpdump branch 2 times, most recently from 93ec4b6 to 463aeb5 Compare January 17, 2019 16:39
@donald
Copy link
Collaborator

donald commented Jan 17, 2019

"libpcap: Update version from 1.0.0 to 1.9.0" contains more changes than one would expect from the commit message.I don't really care, you are the purist :-)

The current version is from 2011, so update to the current version.

The change-log is available [online][1].

1.  Additionally, remove the unneeded hacks. It builds and installs just
    fine without any changes.

2.  Disable Bluetooth support, as it causes build failures, and we do
    not need it,

[1]: https://www.tcpdump.org/libpcap-changes.txt
Rebuild tcpdump against libpcap 1.9.2, so that [the new syntax for
opening a socket is used][1].

> "For compatibility with Linux 2.0, the obsolete socket(PF_INET,
> SOCK_RAW, protocol) syntax is still supported to open a
> packet(7) socket.  This is deprecated and should be replaced by
> socket(PF_PACKET, SOCK_RAW, protocol) instead.  The main
> difference is the new sockaddr_ll address structure for generic
> link layer information instead of sockaddr_pkt." - ip(7)

The change-log is available [online][2].

[1]: https://stackoverflow.com/questions/6060550/what-is-the-correct-replacement-for-pf-inet-sock-packet
[2]: https://www.tcpdump.org/tcpdump-changes.txt
@pmenzel
Copy link
Collaborator Author

pmenzel commented Jan 17, 2019 via email

@donald donald merged commit bc6e74d into master Jan 18, 2019
@donald
Copy link
Collaborator

donald commented Jan 31, 2019

I've installed it on the distmaster.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants