From 4d1f2a5337ce0d5967ad6f6d5a586f9233eba121 Mon Sep 17 00:00:00 2001 From: dlg Date: Sun, 21 Feb 2021 02:43:17 +0000 Subject: [PATCH] i added stoeplitz_eaddr --- share/man/man9/stoeplitz_to_key.9 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/share/man/man9/stoeplitz_to_key.9 b/share/man/man9/stoeplitz_to_key.9 index f9fc05d54a8..f03eab9fd3f 100644 --- a/share/man/man9/stoeplitz_to_key.9 +++ b/share/man/man9/stoeplitz_to_key.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: stoeplitz_to_key.9,v 1.5 2021/02/21 02:40:41 dlg Exp $ +.\" $OpenBSD: stoeplitz_to_key.9,v 1.6 2021/02/21 02:43:17 dlg Exp $ .\" .\" Copyright (c) 2020 David Gwynne .\" @@ -19,6 +19,7 @@ .Os .Sh NAME .Nm stoeplitz_to_key , +.Nm stoeplizt_eaddr , .Nm stoeplitz_ip4 , .Nm stoeplitz_ip4 , .Nm stoeplitz_ip4port , @@ -30,6 +31,10 @@ .Ft void .Fn stoeplitz_to_key "void *key" "size_t keylen" .Ft uint16_t +.Fo stoeplitz_eaddr +.Fa "const uint8_t *eaddr" +.Fc +.Ft uint16_t .Fo stoeplitz_ip4 .Fa "uint32_t srcaddr" .Fa "uint32_t dstaddr" @@ -83,6 +88,9 @@ argument. .Fa keylen must be a multiple of 2 bytes. .Pp +.Fn stoeplitz_eaddr +calculates a hash value for a single Ethernet address. +.Pp .Fn stoeplitz_ip4 calculates a hash value for a pair of IPv4 addresses. .Pp @@ -98,6 +106,7 @@ calculates a hash value for a pair of IPv6 addresses and ports as used by protocols like TCP or UDP. .Sh CONTEXT .Fn stoeplitz_to_key , +.Fn stoeplitz_eaddr , .Fn stoeplitz_ip4 , .Fn stoeplitz_ip4port , .Fn stoeplitz_ip6 , @@ -106,6 +115,7 @@ and can be called during autoconf, from process context, or from an interrupt context. .Sh RETURN VALUES +.Fn stoeplitz_eaddr , .Fn stoeplitz_ip4 , .Fn stoeplitz_ip4port , .Fn stoeplitz_ip6 , -- 2.20.1