Page MenuHomeFreeBSD

Add pkt-gen, a packet sink/source using the netmap API
ClosedPublic

Authored by shurd on Aug 25 2017, 6:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 9:07 PM
Unknown Object (File)
Tue, Nov 12, 9:35 PM
Unknown Object (File)
Tue, Oct 29, 9:29 AM
Unknown Object (File)
Mon, Oct 28, 6:58 AM
Unknown Object (File)
Oct 13 2024, 4:16 PM
Unknown Object (File)
Oct 4 2024, 8:05 PM
Unknown Object (File)
Sep 24 2024, 4:26 PM
Unknown Object (File)
Sep 22 2024, 4:54 AM
Subscribers

Details

Summary

Port for pkt-gen. An older version lives in /usr/src/tools/tools/netmap
but it's missing a number of new changes.

Test Plan

I will be testing this with my existing test framework

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Doesn't build on -CURRENT due to pointer alignment issues.

Avoid unaligned access for all the normal reasons, plus the new warnings

net/pkt-gen/Makefile
4 ↗(On Diff #32379)

If this *is* the real version of the software, it is fine, though you should be using DISTVERSION and not PORTVERSION.

If you made this up, and this is based on the commit date, you must prefix the version with a g (for git):

DISTVERSION=  g2017.08.06
16 ↗(On Diff #32379)

USES should be before USE_GITHUB. See 14.7. USES and USE_x

28 ↗(On Diff #32379)
${WRKSRC}/pkt-gen
net/pkt-gen/pkg-descr
1 ↗(On Diff #32379)

The pkg-descr file must contain a description that is much longer than the COMMENT in the Makefile, usually a two or three lines paragraph.

Thanks mat, I'll address these soon.

Incorporate feedback from mat

shurd marked 3 inline comments as done.

And fix the do-install target

net/pkt-gen/Makefile
19–20 ↗(On Diff #32382)

Would probably be easier to do this:

PATCH_WRKSRC= ${WRKSRC}/..

Use PATCH_WRKSRC per mat.

It certainly is easier.

Remove cruft

(Already it builds up!)

This revision was automatically updated to reflect the committed changes.