diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-15 07:07:39 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-15 07:07:39 -0600 |
commit | 475bd20ef9ae32104f844eb015ad685e2b8ccd99 (patch) | |
tree | c9af6169adc1643d6d6981e1a24df89b3856bf98 /nuttx/arch/arm/src/stm32/stm32_eth.c | |
parent | 647a5c02c6f0d2871c0308c6f2e5916110136792 (diff) | |
download | px4-nuttx-475bd20ef9ae32104f844eb015ad685e2b8ccd99.tar.gz px4-nuttx-475bd20ef9ae32104f844eb015ad685e2b8ccd99.tar.bz2 px4-nuttx-475bd20ef9ae32104f844eb015ad685e2b8ccd99.zip |
Networking: Condition certain ARP logic on CONFIG_NET_ARP in all Ethernet drivers
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_eth.c')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_eth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_eth.c b/nuttx/arch/arm/src/stm32/stm32_eth.c index a45725f84..1045bcd16 100644 --- a/nuttx/arch/arm/src/stm32/stm32_eth.c +++ b/nuttx/arch/arm/src/stm32/stm32_eth.c @@ -1639,7 +1639,9 @@ static void stm32_receive(FAR struct stm32_ethmac_s *priv) stm32_transmit(priv); } } - else if (BUF->type == htons(ETHTYPE_ARP)) + else +#ifdef CONFIG_NET_ARP + if (BUF->type == htons(ETHTYPE_ARP)) { nllvdbg("ARP frame\n"); @@ -1657,6 +1659,7 @@ static void stm32_receive(FAR struct stm32_ethmac_s *priv) } } else +#endif { nlldbg("DROPPED: Unknown type: %04x\n", BUF->type); } |