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)
Wed, Dec 18, 8:52 PM
Unknown Object (File)
Wed, Dec 18, 8:51 PM
Unknown Object (File)
Wed, Dec 18, 8:49 PM
Unknown Object (File)
Nov 18 2024, 9:07 PM
Unknown Object (File)
Nov 12 2024, 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
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 11237
Build 11614: 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
20–21

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.