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)
Oct 29 2024, 9:29 AM
Unknown Object (File)
Oct 28 2024, 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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 11236
Build 11613: arc lint + arc unit

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
5

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
17

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

29
${WRKSRC}/pkt-gen
net/pkt-gen/pkg-descr
2

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

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.