tr2eth: use 802.3 frame format, not Ethernet II

This commit is contained in:
Harald Welte 2022-04-08 15:34:47 +02:00
parent b7aee6095a
commit 574cd6f74a
1 changed files with 2 additions and 2 deletions

View File

@ -266,8 +266,8 @@ static int tr2eth(struct bridge_state *bst)
osmo_revbytebits_buf(ethh.h_dest, TR_ALEN);
memcpy(&ethh.h_source, trh->saddr, sizeof(ethh.h_source));
osmo_revbytebits_buf(ethh.h_source, TR_ALEN);
/* We're doing 80 */
//ethh.h_proto = htons(
/* We're doing 802.3 and not Ethernet II */
ethh.h_proto = htons(trlen - sizeof(*trh));
mac2str_buf(eth_src, ethh.h_source);
mac2str_buf(eth_dst, ethh.h_dest);