Changeset a63ff7d in mainline
- Timestamp:
- 2010-11-04T22:59:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60898b6
- Parents:
- de229f8e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/udp/udp.c
rde229f8e ra63ff7d 626 626 627 627 // get the next received packet 628 packet_id = dyn_fifo_ value(&socket->received);628 packet_id = dyn_fifo_pop(&socket->received); 629 629 if (packet_id < 0) 630 630 return NO_DATA; … … 650 650 rc = data_reply(addr, *addrlen); 651 651 if (rc != EOK) 652 return rc;652 return udp_release_and_return(packet, rc); 653 653 654 654 // trim the header 655 655 rc = packet_trim(packet, UDP_HEADER_SIZE, 0); 656 656 if (rc != EOK) 657 return rc;657 return udp_release_and_return(packet, rc); 658 658 659 659 // reply the packets 660 660 rc = socket_reply_packets(packet, &length); 661 661 if (rc != EOK) 662 return rc; 663 664 dyn_fifo_pop(&socket->received); 662 return udp_release_and_return(packet, rc); 665 663 666 664 // release the packet and return the total length
Note:
See TracChangeset
for help on using the changeset viewer.