]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
carp: refactor packet tagging for ether_output()
authorGleb Smirnoff <glebius@FreeBSD.org>
Tue, 30 Apr 2024 02:36:42 +0000 (19:36 -0700)
committerKristof Provost <kp@FreeBSD.org>
Wed, 8 May 2024 11:19:04 +0000 (13:19 +0200)
commit601438fbfa8e5aa47b6e3417b253c10cd9b34d1d
treec565ae75ec3dfca10af48abfb7abf365f7d35313
parentcda57d955b250b538233117aad6443a907d6c109
carp: refactor packet tagging for ether_output()

- Separate HMAC preparation (CARP specific) from tagging.
- In unicast mode (CARP specific) don't put tag at all.
- Don't put pointer to software context into the tag.  Putting just vhid,
  an integer value, is a safer design.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D45038
sys/netinet/ip_carp.c