FIX ZNJK-800 PPPoE Session BASE mac 错误

RCA 取MAC使用了vxLan的头部数据
SOL 移除vxLan后再取ETH源MAC
This commit is contained in:
huangxin 2022-06-23 08:29:48 +08:00
parent 22f15ab00f
commit d3b27d0fd0
1 changed files with 7 additions and 6 deletions

View File

@ -330,14 +330,15 @@ static err_t netif_input_data(struct pbuf *p, struct netif *inp) {
if (ebuf != NULL) {
if (strlen(pContext->session.data.svrBaseMac) == 0) {
if (strlen(pContext->session.data.svrBaseMac) == 0) {
const struct eth_hdr *payloadEth = (const struct eth_hdr *)ebuf->payload;
sprintf(pContext->session.data.svrBaseMac,
"%02X:%02X:%02X:%02X:%02X:%02X",
eth->src.addr[0],
eth->src.addr[1],
eth->src.addr[2],
eth->src.addr[3],
eth->src.addr[4],
eth->src.addr[5]);
payloadEth->src.addr[0],
payloadEth->src.addr[1],
payloadEth->src.addr[2],
payloadEth->src.addr[3],
payloadEth->src.addr[4],
payloadEth->src.addr[5]);
}
}