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)
Mar 5 2024, 6:22 AM
Unknown Object (File)
Mar 5 2024, 6:22 AM
Unknown Object (File)
Mar 5 2024, 6:19 AM
Unknown Object (File)
Mar 5 2024, 6:19 AM
Unknown Object (File)
Mar 5 2024, 6:18 AM
Unknown Object (File)
Mar 5 2024, 6:18 AM
Unknown Object (File)
Mar 5 2024, 6:18 AM
Unknown Object (File)
Mar 5 2024, 6:18 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.