소스 검색

We shouldn't need to allocate a TX packet buffer when calling newdata();

if the application wants to send data then it will have to use the normal
senddata() mechanism.
tags/v0.9.3
Michael Brown 18 년 전
부모
커밋
21c3d63c2e
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0
    4
      src/net/udp.c

+ 0
- 4
src/net/udp.c 파일 보기

@@ -258,10 +258,6 @@ void udp_rx ( struct pk_buff *pkb, struct in_addr *src_net_addr __unused,
258 258
 	/** Strip off the UDP header */
259 259
 	pkb_pull ( pkb, sizeof ( *udphdr ) );
260 260
 
261
-	/** Allocate max possible buffer space to the tx buffer */
262
-	conn->tx_pkb = alloc_pkb ( UDP_MAX_TXPKB );
263
-	pkb_reserve ( conn->tx_pkb, UDP_MAX_HLEN );
264
-
265 261
 	/** Call the application's callback */
266 262
 	conn->udp_op->newdata ( conn, pkb->data, ulen - sizeof ( *udphdr ) );
267 263
 }

Loading…
취소
저장