tr2eth: use 802.3 frame format, not Ethernet II

master
Harald Welte 10 months ago
parent b7aee6095a
commit 574cd6f74a
  1. 4
      tr-bridge.c

@ -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);

Loading…
Cancel
Save