diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2023-03-17 01:47:58 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2023-04-12 15:26:23 +0000 |
commit | feb77422a3435f4fd25c3a6e12df1bb9526b342a (patch) | |
tree | e1ecb2ba6c1c8e30225db6d916e7a67b563b3ed0 /src/vnet/tls | |
parent | 393a05f2897db8459a660eb631a25ced2212115d (diff) |
ip: punt socket - take the tags in Ethernet header into consideration
The punt socket code rewinds the current_data pointer by sizeof (ethernet_header_t),
which is incorrect if the header is tagged - resulting in truncated destination MAC
address. Use ethernet_buffer_header_size() instead, which takes tags into account.
Also add the unittest that verifies the issue and the fix.
Type: fix
Change-Id: I6352a174df144ca1e4230390c126f4b698724ebc
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/vnet/tls')
0 files changed, 0 insertions, 0 deletions