Rev 4728 | Rev 4743 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4728 | Rev 4731 | ||
---|---|---|---|
Line 219... | Line 219... | ||
219 | device_ref device; |
219 | device_ref device; |
220 | dpeth_t * dep; |
220 | dpeth_t * dep; |
221 | packet_t next; |
221 | packet_t next; |
222 | 222 | ||
223 | ERROR_PROPAGATE( find_device( device_id, & device )); |
223 | ERROR_PROPAGATE( find_device( device_id, & device )); |
- | 224 | if( device->state != NETIF_ACTIVE ){ |
|
- | 225 | netif_pq_release( packet_get_id( packet )); |
|
- | 226 | return EFORWARD; |
|
- | 227 | } |
|
224 | dep = ( dpeth_t * ) device->specific; |
228 | dep = ( dpeth_t * ) device->specific; |
225 | // process packet queue |
229 | // process packet queue |
226 | do{ |
230 | do{ |
227 | next = pq_detach( packet ); |
231 | next = pq_detach( packet ); |
228 | // TODO remove debug dump: |
232 | // TODO remove debug dump: |