tr2eth: use 802.3 frame format, not Ethernet II
This commit is contained in:
parent
b7aee6095a
commit
574cd6f74a
|
@ -266,8 +266,8 @@ static int tr2eth(struct bridge_state *bst)
|
||||||
osmo_revbytebits_buf(ethh.h_dest, TR_ALEN);
|
osmo_revbytebits_buf(ethh.h_dest, TR_ALEN);
|
||||||
memcpy(ðh.h_source, trh->saddr, sizeof(ethh.h_source));
|
memcpy(ðh.h_source, trh->saddr, sizeof(ethh.h_source));
|
||||||
osmo_revbytebits_buf(ethh.h_source, TR_ALEN);
|
osmo_revbytebits_buf(ethh.h_source, TR_ALEN);
|
||||||
/* We're doing 80 */
|
/* We're doing 802.3 and not Ethernet II */
|
||||||
//ethh.h_proto = htons(
|
ethh.h_proto = htons(trlen - sizeof(*trh));
|
||||||
|
|
||||||
mac2str_buf(eth_src, ethh.h_source);
|
mac2str_buf(eth_src, ethh.h_source);
|
||||||
mac2str_buf(eth_dst, ethh.h_dest);
|
mac2str_buf(eth_dst, ethh.h_dest);
|
||||||
|
|
Loading…
Reference in New Issue