Skip to content
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

pcap: implement LINKTYPE_NULL #1416

Closed
wants to merge 1 commit into from
Closed

Conversation

inliniac
Copy link
Contributor

Implement LINKTYPE_NULL for pcap live and pcap file.

From: http://www.tcpdump.org/linktypes.html

"BSD loopback encapsulation; the link layer header is a 4-byte field,
in host byte order, containing a PF_ value from socket.h for the
network-layer protocol of the packet.

Note that host byte order'' is the byte order of the machine on which the packets are captured, and the PF_ values are for the OS of the machine on which the packets are captured; if a live capture is being done,host byte order'' is the byte order of the machine
capturing the packets, and the PF_ values are those of the OS of
the machine capturing the packets, but if a ``savefile'' is being
read, the byte order and PF_ values are not necessarily those of
the machine reading the capture file."

Feature ticket #1445: https://redmine.openinfosecfoundation.org/issues/1445

Prscript:

Implement LINKTYPE_NULL for pcap live and pcap file.

From: http://www.tcpdump.org/linktypes.html

"BSD loopback encapsulation; the link layer header is a 4-byte field,
 in host byte order, containing a PF_ value from socket.h for the
 network-layer protocol of the packet.

 Note that ``host byte order'' is the byte order of the machine on
 which the packets are captured, and the PF_ values are for the OS
 of the machine on which the packets are captured; if a live capture
 is being done, ``host byte order'' is the byte order of the machine
 capturing the packets, and the PF_ values are those of the OS of
 the machine capturing the packets, but if a ``savefile'' is being
 read, the byte order and PF_ values are not necessarily those of
 the machine reading the capture file."

Feature ticket #1445
@inliniac inliniac added needs testing needs ticket Needs (link to) redmine ticket and removed needs ticket Needs (link to) redmine ticket labels Apr 15, 2015
@inliniac inliniac mentioned this pull request Apr 30, 2015
@inliniac
Copy link
Contributor Author

Merged through #1454

@inliniac inliniac closed this Apr 30, 2015
@inliniac inliniac deleted the dev-bug1445-pcap-type-v0.1 branch May 9, 2015 09:09
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request May 13, 2015
Backport upstream Pull Request #1416 [1] adding support for
LINKTYPE_NULL.

[1] OISF/suricata#1416
[2] https://redmine.openinfosecfoundation.org/issues/1445

Submitted by: Bill Meeks <bmeeks8 bellsouth net> (via gnn)


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@386186 35697150-7ecd-e111-bb59-0022644237b5
koobs added a commit to freebsd/freebsd-ports that referenced this pull request May 13, 2015
Backport upstream Pull Request #1416 [1] adding support for
LINKTYPE_NULL.

[1] OISF/suricata#1416
[2] https://redmine.openinfosecfoundation.org/issues/1445

Submitted by: Bill Meeks <bmeeks8 bellsouth net> (via gnn)
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this pull request Jan 10, 2024
Backport upstream Pull Request #1416 [1] adding support for
LINKTYPE_NULL.

[1] OISF/suricata#1416
[2] https://redmine.openinfosecfoundation.org/issues/1445

Submitted by: Bill Meeks <bmeeks8 bellsouth net> (via gnn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants