Rev 4728 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4728 | Rev 4731 | ||
---|---|---|---|
Line 183... | Line 183... | ||
183 | size_t length; |
183 | size_t length; |
184 | packet_t next; |
184 | packet_t next; |
185 | int phone; |
185 | int phone; |
186 | 186 | ||
187 | ERROR_PROPAGATE( find_device( device_id, & device )); |
187 | ERROR_PROPAGATE( find_device( device_id, & device )); |
188 | if( device->state != NETIF_ACTIVE ) return EPERM; |
188 | if( device->state != NETIF_ACTIVE ){ |
- | 189 | netif_pq_release( packet_get_id( packet )); |
|
- | 190 | return EFORWARD; |
|
- | 191 | } |
|
189 | next = packet; |
192 | next = packet; |
190 | do{ |
193 | do{ |
191 | ++ (( device_stats_ref ) device->specific )->send_packets; |
194 | ++ (( device_stats_ref ) device->specific )->send_packets; |
192 | ++ (( device_stats_ref ) device->specific )->receive_packets; |
195 | ++ (( device_stats_ref ) device->specific )->receive_packets; |
193 | length = packet_get_data_length( next ); |
196 | length = packet_get_data_length( next ); |