Changeset a35b458 in mainline for uspace/srv/net/slip/slip.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/slip/slip.c
r3061bc1 ra35b458 129 129 { 130 130 log_msg(LOG_DEFAULT, LVL_DEBUG, "slip_send()"); 131 131 132 132 chardev_t *chardev = (chardev_t *) srv->arg; 133 133 uint8_t *data = sdu->data; 134 134 135 135 /* 136 136 * Strictly speaking, this is not prescribed by the RFC, but the RFC … … 139 139 */ 140 140 write_buffered(chardev, SLIP_END); 141 141 142 142 for (size_t i = 0; i < sdu->size; i++) { 143 143 switch (data[i]) { … … 155 155 } 156 156 } 157 157 158 158 write_buffered(chardev, SLIP_END); 159 159 write_flush(chardev); 160 160 161 161 return EOK; 162 162 } … … 165 165 { 166 166 log_msg(LOG_DEFAULT, LVL_DEBUG, "slip_send6()"); 167 167 168 168 return ENOTSUP; 169 169 } … … 272 272 break; 273 273 } 274 274 275 275 } 276 276
Note:
See TracChangeset
for help on using the changeset viewer.