undefined4
VLAN_8023_Header_Copy
(uint param_1,uint param_2,void *param_3,uint param_4,void *param_5,undefined4 param_6,
undefined2 *param_7)
{
undefined2 uVar1;
undefined4 uVar2;
uint uVar3;
if ((param_1 & 0xffff) == 0) {
memcpy(param_5,param_3,param_4) //possible issue identified - semgrep
uVar2 = 0;
}
else {
uVar3 = (param_2 & 7) << 0xd | param_1 & 0xfff;
memcpy(param_5,param_3,0xc) //possible issue identified - semgrep
uVar1 = *param_7;
*(ushort *)((int)param_5 + 0xe) = (ushort)(uVar3 << 8) | (ushort)(uVar3 >> 8);
*(undefined2 *)((int)param_5 + 0xc) = uVar1;
*(undefined2 *)((int)param_5 + 0x10) = *(undefined2 *)((int)param_3 + 0xc);
uVar2 = 4;
if (0xe < param_4) {
memcpy((void *)((int)param_5 + 0x12),(void *)((int)param_3 + 0xe),param_4 - 0xe) //possible issue identified - semgrep
uVar2 = 4;
}
}
return uVar2;
}