net: eth_legacy - fix build CMD_PCAP
Fix typo which would cause a build error.
Fixes: 3eaac6307d ("net: introduce packet capture support")
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
			
			
This commit is contained in:
		
							parent
							
								
									beb61e13b8
								
							
						
					
					
						commit
						c1ab738145
					
				| 
						 | 
					@ -365,7 +365,7 @@ int eth_send(void *packet, int length)
 | 
				
			||||||
	ret = eth_current->send(eth_current, packet, length);
 | 
						ret = eth_current->send(eth_current, packet, length);
 | 
				
			||||||
#if defined(CONFIG_CMD_PCAP)
 | 
					#if defined(CONFIG_CMD_PCAP)
 | 
				
			||||||
	if (ret >= 0)
 | 
						if (ret >= 0)
 | 
				
			||||||
		pcap_post(packet, lengeth, true);
 | 
							pcap_post(packet, length, true);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
	return ret;
 | 
						return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue