Changeset 84876aa4 in mainline for uspace/srv/net/udp/udp_inet.c
- Timestamp:
- 2019-11-15T13:46:34Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ecb7828
- Parents:
- b093a62 (diff), d548fc0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/udp_inet.c
rb093a62 r84876aa4 134 134 } 135 135 136 /** Get source address. 137 * 138 * @param remote Remote address 139 * @param tos Type of service 140 * @param local Place to store local address 141 * @return EOK on success or an error code 142 */ 143 errno_t udp_get_srcaddr(inet_addr_t *remote, uint8_t tos, inet_addr_t *local) 144 { 145 return inet_get_srcaddr(remote, tos, local); 146 } 147 148 /** Transmit message over network layer. */ 149 errno_t udp_transmit_msg(inet_ep2_t *epp, udp_msg_t *msg) 150 { 151 udp_pdu_t *pdu; 152 errno_t rc; 153 154 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_transmit_msg()"); 155 156 rc = udp_pdu_encode(epp, msg, &pdu); 157 if (rc != EOK) { 158 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed encoding PDU"); 159 return rc; 160 } 161 162 rc = udp_transmit_pdu(pdu); 163 udp_pdu_delete(pdu); 164 165 return rc; 166 } 167 136 168 /** 137 169 * @}
Note:
See TracChangeset
for help on using the changeset viewer.