Menu

#137 IEEESNap class returning wrong oui

Version 1.3
open
nobody
5
2014-09-04
2014-09-04
Oliver
No

IEEESnap.oui() function returns on a CDP packet 0xc20, where the real oui should 0xc. I assume the 0x20 is added because the following pid field is 0x2000. Most likely a fix could be like this:

@Field(offset = 0, length = 24, format = "%x")
public long oui() {
    // return getUInt(0) & 0x00FFFFFF;
    return (getUInt(0) >> 8);
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB