| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
From Martin Vahlensieck.
|
|
|
|
|
|
|
| |
it's like vxlan, but different. the most interesting difference to
vxlan is that the protocol adds support for adding optional metadata
to packets (like nsh). this diff currently just skips that stuff
and just handles the payload. for now.
|
|
|
|
| |
from Matt Dunwoodie and Jason A. Donenfeld
|
|
|
|
|
|
|
|
|
|
| |
- fprintf(stdout, ...) -> printf()
- fputs(x, stdout) -> printf(); for consistency.
fputs is twice as fast on atom x5-Z8300@1.44GHz but Amdahl sees a pure printf
tcpdump only 2% slower than a pure fputs (for constant strings) tcpdump
to /dev/null across a 20MB/~170k packet pcap file.
ok dlg@ for fputs and ok tedu@ krw@ deraadt@ a2k19 for the rest
|
|
|
|
|
|
| |
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
|
|
|
|
|
| |
this lets me configure a custom gre protocol on a dell s4810 or
s5048 and see what's inside it when it lands on an openbsd box.
ok lteo@
|
|
|
|
|
|
|
|
|
|
| |
this allows tcpdump to be used a quick and dirty firewall. it also
looks like an amazing foot-gun, so be careful.
for example `tcpdump -B drop -i ix1 udp and port 7` lets you
completely drop discard packets in the hardware interrupt handler.
ok sthen@ mikeb@ claudio@ visa@
|
|
|
|
|
|
|
|
|
| |
need to be unveiled at runtime in the monitor process.
Cleanup the unused internal privsep "getlines" code, we now explictly
fdpass the OS fingerprints file instead.
ok mestre@ kn@
|
|
|
|
|
| |
I personally think vxlan looks suspiciously like gre, so I put the
parser in print-gre.c
|
|
|
|
|
|
|
| |
This forces UDP packets to be parsed as tftp messages, which is useful
to see the DATA and ACK packets. They're usually on high ports which don't
get matched by udp_print, which by default only handled tftp packets on
port 69.
|
|
|
|
| |
This allows arbitrary UDP packets to be parsed as MPLS.
|
|
|
|
| |
This allows arbitrary UDP packets to be parsed as GRE packets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this started cos i was looking at pptp, which came out like this:
23:52:00.197893 call 24 seq 7: gre-ppp-payload (gre encap)
23:52:00.198930 call 1 seq 7 ack 7: gre-ppp-payload (gre encap)
now it looks like this:
23:52:00.197893 20.0.0.2 > 20.0.0.1: pptp callid 24 seq 7: 17.1.1.122 > 40.0.0.2: icmp: echo request
23:52:00.198930 20.0.0.1 > 20.0.0.2: pptp callid 1 seq 7 ack 7: 40.0.0.2 > 17.1.1.122: icmp: echo reply
the big improvement in ppp parsing is it stops parsing based on
what the ppp headers say, rather than what bytes have been captured.
this also adds parsing of EAP packets.
DLT_PPP_SERIAL is now recognised and printed. gre now prints the
outer addresses always, not just when it's encapsulated by ipv6 or
-v is passed to tcpdump.
ok sthen@
|
|
|
|
|
|
| |
in wireshark.
ok deraadt@, dlg@
|
|
|
|
|
| |
provides retry on short-write file descriptors.
ok florian, previous versions seen by millert
|
|
|
|
|
|
|
|
|
| |
While tcpdump isn't a daemon in the traditional sense, it's not uncommon
for people to have long running sessions. At least on OpenBSD, this is
even safe thanks to the existing privsep design by otto@, canacar@ and
pledge(2) work done by deraadt.
ok deraadt@
|
|
|
|
|
|
|
|
| |
eg. tcpdump -y openflow -i switch0
Includes a minor bump for libpcap.
Feedback and OK rzalamena@
|
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
Patch from Kevin Reay.
|
|
|
|
|
|
|
| |
Don't catch signals that were ignored on entry
Suppress SIGCHLD if our kid is stopped: we don't care and it's not an error
ok millert@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the packet processor pid is initialized on a socketpair, and then only
does byte analysis. it can be protected using a "stdio" tame request.
an successfull attack against it will find it cannot open files nor
sockets, and faces various other limitations described in the tame(2)
manual page.
the monitor process can be restricted to "malloc cmsg inet ioctl dns rpath".
that sounds like a large subset, but notice it cannot create or write files.
maybe this set can be wittled down by hoisting more initialization code
upwards?
with help from canacar a while back.
|
|
|
|
|
| |
(at ^C time) into a services provided by the privsep monitor.
ok canacar
|
|
|
|
| |
ok semarie@ sthen@
|
|
|
|
|
| |
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
|
| |
|
|
|
|
| |
ok florian
|
| |
|
|
|
|
|
|
| |
the parsers sucked, so byte misalignment repair was requested. These
days it means the parsers should improve.
ok lteo
|
|
|
|
| |
ok theo
|
| |
|
|
|
|
| |
ok ryan theo & herr reyksminister
|
|
|
|
|
|
|
| |
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
|
|
| |
without knobs. ok djm, deraadt.
|
| |
|
| |
|
|
|
|
| |
ok hshoexer, henning, mcbridge (some time ago)
|
|
|
|
| |
ok stevesk@
|
|
|
|
| |
ok beck@
|
| |
|
|
|
|
|
|
|
| |
situations, where the privileged child dies before the unprivileged
parent has set a signal handler for SIGCHLD.
ok deraadt@ canacar@
|
|
|
|
| |
and close a fd leak in read_infile(). ok deraadt@
|
| |
|
|
|
|
| |
know our name
|
|
|
|
| |
ok jaredy@ otto@
|
|
|
|
|
| |
on 64bit archs when processing files with large snaplens, as seen
by Alf Schlichting. ok moritz@ canacar@
|
|
|
|
| |
(with different prototypes); ok mpf@
|
| |
|
|
|
|
| |
ok canacar@
|