File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ static bool xmit_requested_datagram_fits_into_current_ntb(uint16_t datagram_size
390
390
if (ncm_interface .xmit_glue_ntb_datagram_ndx >= CFG_TUD_NCM_IN_MAX_DATAGRAMS_PER_NTB ) {
391
391
return false;
392
392
}
393
- if (ncm_interface .xmit_glue_ntb -> nth .wBlockLength + datagram_size + XMIT_ALIGN_OFFSET (datagram_size ) > CFG_TUD_NCM_OUT_NTB_MAX_SIZE ) {
393
+ if (ncm_interface .xmit_glue_ntb -> nth .wBlockLength + datagram_size + XMIT_ALIGN_OFFSET (datagram_size ) > CFG_TUD_NCM_IN_NTB_MAX_SIZE ) {
394
394
return false;
395
395
}
396
396
return true;
@@ -674,7 +674,7 @@ static void recv_transfer_datagram_to_glue_logic(void) {
674
674
bool tud_network_can_xmit (uint16_t size ) {
675
675
TU_LOG_DRV ("tud_network_can_xmit(%d)\n" , size );
676
676
677
- TU_ASSERT (size <= CFG_TUD_NCM_OUT_NTB_MAX_SIZE - (sizeof (nth16_t ) + sizeof (ndp16_t ) + 2 * sizeof (ndp16_datagram_t )), false);
677
+ TU_ASSERT (size <= CFG_TUD_NCM_IN_NTB_MAX_SIZE - (sizeof (nth16_t ) + sizeof (ndp16_t ) + 2 * sizeof (ndp16_datagram_t )), false);
678
678
679
679
if (xmit_requested_datagram_fits_into_current_ntb (size ) || xmit_setup_next_glue_ntb ()) {
680
680
// -> everything is fine
@@ -709,7 +709,7 @@ void tud_network_xmit(void *ref, uint16_t arg) {
709
709
710
710
ntb -> nth .wBlockLength += (uint16_t ) (size + XMIT_ALIGN_OFFSET (size ));
711
711
712
- if (ntb -> nth .wBlockLength > CFG_TUD_NCM_OUT_NTB_MAX_SIZE ) {
712
+ if (ntb -> nth .wBlockLength > CFG_TUD_NCM_IN_NTB_MAX_SIZE ) {
713
713
TU_LOG_DRV ("(EE) tud_network_xmit: buffer overflow\n" ); // must not happen (really)
714
714
return ;
715
715
}
You can’t perform that action at this time.
0 commit comments