|
|
|
|
114
|
* callback. The callback may use the buffer space
|
114
|
* callback. The callback may use the buffer space
|
115
|
*/
|
115
|
*/
|
116
|
int udp_senddata ( struct udp_connection *conn ) {
|
116
|
int udp_senddata ( struct udp_connection *conn ) {
|
117
|
- conn->tx_pkb = pkb_alloc ( UDP_MAX_TXPKB );
|
|
|
|
|
117
|
+ conn->tx_pkb = alloc_pkb ( UDP_MAX_TXPKB );
|
118
|
if ( conn->tx_pkb == NULL ) {
|
118
|
if ( conn->tx_pkb == NULL ) {
|
119
|
DBG ( "Error allocating packet buffer of length %d\n",
|
119
|
DBG ( "Error allocating packet buffer of length %d\n",
|
120
|
UDP_MAX_TXPKB );
|
120
|
UDP_MAX_TXPKB );
|