Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.01.org
Subject: [PATCH v3 1/3] mpdu: expose mmpdu_header_len
Date: Mon, 21 Oct 2019 14:01:57 -0700	[thread overview]
Message-ID: <20191021210159.8132-1-prestwoj@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

---
 src/mpdu.c | 2 +-
 src/mpdu.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mpdu.c b/src/mpdu.c
index eb141c75..844e61d5 100644
--- a/src/mpdu.c
+++ b/src/mpdu.c
@@ -623,7 +623,7 @@ const struct mmpdu_header *mpdu_validate(const uint8_t *frame, int len)
 	}
 }
 
-static size_t mmpdu_header_len(const struct mmpdu_header *mmpdu)
+size_t mmpdu_header_len(const struct mmpdu_header *mmpdu)
 {
 	return mmpdu->fc.order == 0 ? 24 : 28;
 }
diff --git a/src/mpdu.h b/src/mpdu.h
index 4cf08d00..f3f7e4cd 100644
--- a/src/mpdu.h
+++ b/src/mpdu.h
@@ -408,3 +408,4 @@ struct mmpdu_deauthentication {
 
 const struct mmpdu_header *mpdu_validate(const uint8_t *frame, int len);
 const void *mmpdu_body(const struct mmpdu_header *mpdu);
+size_t mmpdu_header_len(const struct mmpdu_header *mmpdu);
-- 
2.17.1

             reply	other threads:[~2019-10-21 21:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21 21:01 James Prestwood [this message]
2019-10-21 21:01 ` [PATCH v3 2/3] sae: fix potential integer overflow James Prestwood
2019-10-21 21:01 ` [PATCH v3 3/3] sae: fix inproper return value in sae_verify_accepted James Prestwood
2019-10-21 21:51 ` [PATCH v3 1/3] mpdu: expose mmpdu_header_len Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191021210159.8132-1-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=iwd@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox