Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2016 09:45:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206186] [patch][netgraph] New netgraph node for calculate IP IP6 TCP UDP checksums
Message-ID:  <bug-206186-8-d689brzO3i@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206186-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206186-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206186

--- Comment #1 from Dmitry Vagin <daemon.hammer@ya.ru> ---
example use (with ng_patch):

 ngctl msg patch-1: "setdlt 1"
 ngctl msg checksum-1: "setdlt 1"

 ngctl msg ${_NAME}-patch-1: "setconfig { count=3D4 csum_flags=3D1
relative_offset=3D1 ops=3D[ \
   { mode=3D7 value=3D0x03 length=3D1 offset=3D1 } \
   { mode=3D8 value=3D0x88 length=3D1 offset=3D1 } \
   { mode=3D1 value=3D30120 length=3D2 offset=3D22 } \
   { mode=3D1 value=3D0 length=3D2 offset=3D26 } \
  ] }"

=3D set checksum flag CSUM_IP, set DSCP, set UDP port 30120, set UPD checks=
um =3D 0

 ngctl msg checksum-1: "setconfig { csum_flags=3D0 csum_offload=3D6 }"

=3D not sed additional checksum flags, set hardware can calculate
CSUM_IP_UDP|CSUM_IP_TCP.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206186-8-d689brzO3i>