In UDPRecv there is this line:
if((IINCHIP_READ(Sn_MR(s))&0x0F) != Sn_MR_UDP) return SOCKERR_NOT_UDP;
Later in the same function there is:
switch (IINCHIP_READ(Sn_MR(s)) & 0x07)
What's the point of this switch statement, doesn't SnMR has to be Sn_MR_UDP? And why is mask 0x07 used in the switch statement and mask 0x0f in the if-statement?
In UDPRecv there is this line:
if((IINCHIP_READ(Sn_MR(s))&0x0F) != Sn_MR_UDP) return SOCKERR_NOT_UDP;
Later in the same function there is:
switch (IINCHIP_READ(Sn_MR(s)) & 0x07)
What's the point of this switch statement, doesn't SnMR has to be Sn_MR_UDP? And why is mask 0x07 used in the switch statement and mask 0x0f in the if-statement?