Commit Graph

8332 Commits

Author SHA1 Message Date
Gregory Nutt
8e84282c05 ARP: Fix bid conversion from msec to nsec 2014-08-19 08:37:14 -06:00
Gregory Nutt
a9ca05266b Update ChangeLog 2014-08-19 07:52:52 -06:00
Gregory Nutt
9662f1750c ARP: Add signal logic so that we do not have to wait so long with the network responses to ARP requests quickly 2014-08-19 07:47:32 -06:00
Gregory Nutt
4bba611dc6 Move some internal networking function protoypes out of the public include/nuttx/net/arp.h into to the private net/arp/arp.h 2014-08-18 16:35:20 -06:00
Gregory Nutt
482fd2d502 Update ChangeLog 2014-08-18 16:23:32 -06:00
Gregory Nutt
6e04518e4a If CONFIG_NET_ARP_SEND is enabled, then all ICMP, TCP, and UDP send operations will call arp_send() before attempting the real send operation. arp_send() will check if the the IP address mapping is in the ARP table and, if not send ARP requests periodically until it is. This eliminates losing the first outgoing message because there is not mapping in the ARP table. 2014-08-18 16:22:14 -06:00
Gregory Nutt
7f862bd381 Update ChangeLog 2014-08-18 15:30:56 -06:00
Gregory Nutt
548fda7834 arp_poll(): inished the implementation of logic to send ARP requests. Complete, fully hooked into the networking logic, and ready for test (but still untested) 2014-08-18 15:24:51 -06:00
Gregory Nutt
b440fa18ca arp_send.c: Partial implementation of logic to send ARP requests to assure that an IP address mapping is present in the ARP table 2014-08-18 14:29:02 -06:00
Gregory Nutt
ec429fdf00 PKT sockets: Change how the IFF_NOARP flag is handled. This should be set only when data is moved into the buffer and cleared after tested by the ARP logic. Setting it globally can cause packets to be sent with no valid MAC addresses 2014-08-18 13:42:51 -06:00
Gregory Nutt
1a7e1fb93b arp_format.c: Move the logic that formats an ARP packet into a separate file where it can be re-used. 2014-08-18 12:37:40 -06:00
Gregory Nutt
9e44fec80c Change all Spark configurations to use SPI mode 1. From Alan Carvalho de Assis 2014-08-18 11:58:45 -06:00
Gregory Nutt
cb7c8ca0e0 Update ChangeLog 2014-08-18 11:37:53 -06:00
Gregory Nutt
1323ab9352 Move arp_arpin() from arp_inout.c to its own file. Rename arp_inout.c to arpipin.c because that is all that is left in the file 2014-08-18 11:36:39 -06:00
Gregory Nutt
6f1d354ef1 Move arp_out() from arp_inout.c to its own file 2014-08-18 11:21:53 -06:00
Gregory Nutt
985c016150 ARP: Add missing configuration option to select dumping of ARP packet headers. Move ARP dumping logic from arp_inout.c to its own file 2014-08-18 11:08:15 -06:00
Gregory Nutt
9aab8f77ea Update ChangeLog 2014-08-18 07:34:16 -06:00
Gregory Nutt
a325cb9f0d sscanf(): NuttX libc tried to guess how many characters to parse, extracted them into a buffer, then ran strtol() on that buffer. That guess is often wrong. A better approach would be to call strtol() directly on the input data, using the endptr return value to determine how many characters to skip after parsing. From Kosma Moczek 2014-08-18 07:33:17 -06:00
Gregory Nutt
a8d7772ad6 Update README files, Kconfig help comments, and make the network monitor not EXPERIMENTAL 2014-08-18 07:24:47 -06:00
Gregory Nutt
3b07378b38 NSH link management now works! The last fix was to the Ethernet drivers: They cannot disable clocking to the Ethernet blok on ifdown. Otherwise, we cannot communicate with the PHY 2014-08-17 17:54:46 -06:00
Gregory Nutt
004788d7c0 Change the way PHY interrupts work: disable automatically. Then we have to re-subscribe each time after the interrupt fires 2014-08-17 16:51:56 -06:00
Gregory Nutt
7cc93b708a SAMA5 PHY: Add more debug instrumentation; Fix logic that would be used to disable PHY interrupts 2014-08-17 14:07:53 -06:00
Gregory Nutt
1db9858e9d KSZ80x1 PHY interrupts are active low and should trigger on the falling edge 2014-08-17 13:15:59 -06:00
Gregory Nutt
e04ab2bcfc In order to get PHY interrupts, they must be enabled at the PHY (still don't get PHY interrupts) 2014-08-17 13:03:18 -06:00
Gregory Nutt
5ba42680ac For all SAM Ethernet, need to enable management interface before reading PHY regisers in IOCTL 2014-08-17 11:09:54 -06:00
Gregory Nutt
f28fb77e55 Update ChangeLogs 2014-08-17 09:53:43 -06:00
Gregory Nutt
dcfc76336a Add some helper macros to make the code a little more compac 2014-08-17 09:46:03 -06:00
Gregory Nutt
716aec39bf Cosmetic 2014-08-17 09:45:38 -06:00
Gregory Nutt
ab78e8a0c5 SAM3/4 Ethernet: Clone ioctl support from the SAMA5 2014-08-17 06:54:37 -06:00
Gregory Nutt
d87013a665 Use the device name assigned by the registration process, not our best guess 2014-08-16 15:14:39 -06:00
Gregory Nutt
057af36c1d More of the PHY event notification logic change: Fix some compile errors when full feature is enabled; Add some missing ioctol logic 2014-08-16 15:04:09 -06:00
Gregory Nutt
928952bec6 Update ChangeLog 2014-08-16 14:12:13 -06:00
Gregory Nutt
68e55c454c Implement all network ioctls, including the new ioctl to setup PHY event notifications. 2014-08-16 14:09:14 -06:00
Gregory Nutt
f33510a394 Modified to support the change to the network ioctl signature changes. Also add support for new ioctl to setup PHY event notifications. 2014-08-16 14:08:58 -06:00
Gregory Nutt
eb5e2e4b20 Finishes the ioctl definition to subscribe to PHY events. Revamp network ioctl signature to support arguments other than struct mii_ioctl_data. 2014-08-16 14:08:04 -06:00
Gregory Nutt
f96f40fc0d Update ChangeLog 2014-08-16 12:59:34 -06:00
Gregory Nutt
8428a58bdc Add support for an ioctl that can be used to notify an application when there is a change in the network status signalled by a PHY interrupt 2014-08-16 12:56:02 -06:00
Gregory Nutt
7c11a84c98 Refresh configuration 2014-08-16 12:54:58 -06:00
Gregory Nutt
e463730c2f A little too much was deleted in a recent commit 2014-08-16 12:52:28 -06:00
Gregory Nutt
cde108efc6 Move SLIP prototypes from net.h to new slip.h 2014-08-16 10:28:45 -06:00
Gregory Nutt
4fada956b9 Update ChangeLog 2014-08-16 10:27:49 -06:00
Gregory Nutt
79e098b20e Clean missing function headers 2014-08-16 10:24:06 -06:00
Gregory Nutt
4beb3c0ad7 Move SLIP prototypes from net.h to new slip.h 2014-08-16 10:23:17 -06:00
Gregory Nutt
01f9dcccc1 Update ChangeLog 2014-08-16 08:38:18 -06:00
Gregory Nutt
ec47914cf8 Convert existing board specific PHY interrupt interfaces to use newly defined standard interface 2014-08-16 08:35:31 -06:00
Gregory Nutt
9cc485cdee Standardize a PHY interrupt attachment interface 2014-08-16 08:34:50 -06:00
Gregory Nutt
c52f634b79 Standardize a PHY interrupt attachment interface 2014-08-16 08:34:36 -06:00
Gregory Nutt
d79c311508 SAMA5 setenv.sh: Add another CodeSourcery install path 2014-08-16 08:33:20 -06:00
Gregory Nutt
27c48a383e Don't do 64-bit calculations if accuracy not achievable; Fix compile error in high res RTC mode 2014-08-15 17:48:07 -06:00
Gregory Nutt
88bf9f3ffb Update ChangeLog 2014-08-15 16:02:57 -06:00