Skip to content

UDPRecv #1

Description

@pekspro

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions