Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Ethernet/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int8_t socket(uint8_t sn, uint8_t protocol, uint16_t port, uint8_t flag) {
uint8_t taddr[16];
uint16_t local_port = 0;
CHECK_SOCKNUM();
switch (protocol & 0x0F) {
switch (protocol) {
#ifdef IPV6_AVAILABLE
case Sn_MR_TCP4 :
getSIPR(taddr);
Expand Down