You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/09/25 16:10:02 UTC

[GitHub] [incubator-nuttx] davids5 edited a comment on pull request #1886: Allows network monitoring (apps repo) using polling and allows the board to provide the IP config at runtime.

davids5 edited a comment on pull request #1886:
URL: https://github.com/apache/incubator-nuttx/pull/1886#issuecomment-699016678


   Here are my take aways.
   
   1. The configuration must follow Linux file location and naming of files and variables. 
   
   2. Boardctl API shall not be used.
   
   3. The netinit (net monitor) will read the information from files.
         It will use IOCTL/net helpers to set the values.
   
   4. ifconfig needs to be updated to support the thing nuttx can
   ```
   Usage:
     ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>]
     [add <address>[/<prefixlen>]]
     [del <address>[/<prefixlen>]]
     [[-]broadcast [<address>]]  [[-]pointopoint [<address>]]
     [netmask <address>]  [dstaddr <address>]  [tunnel <address>]
     [outfill <NN>] [keepalive <NN>]
     [hw <HW> <address>]  [mtu <NN>]
     [[-]trailers]  [[-]arp]  [[-]allmulti]
     [multicast]  [[-]promisc]
     [mem_start <NN>]  [io_addr <NN>]  [irq <NN>]  [media <type>]
     [txqueuelen <NN>]
     [[-]dynamic]
     [up|down] ...
   
     <HW>=Hardware Type.
     List of possible hardware types:
       loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
       slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP)
       ash (Ash) ether (Ethernet) ax25 (AMPR AX.25)
       netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel)
       ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB)
       arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device)
       sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI)
       irda (IrLAP) ec (Econet) x25 (generic X.25)
       eui64 (Generic EUI-64)
     <AF>=Address family. Default: inet
     List of possible address families:
       unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
       ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE)
       ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet)
       ash (Ash) x25 (CCITT X.25)
   ```
   
   5. It would be nice to have a writeable proc fs so that echo "192.168.96.1" > /procfs/eth0/ipaddr
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org