Changeset d389819 in rtems-docs for networking
- Timestamp:
- 01/18/16 05:37:40 (7 years ago)
- Branches:
- 4.11, 5, am, master
- Children:
- f916fca
- Parents:
- 11e1a6f
- git-author:
- Amar Takhar <amar@…> (01/18/16 05:37:40)
- git-committer:
- Amar Takhar <verm@…> (05/03/16 00:51:24)
- Location:
- networking
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
networking/dec_21140.rst
r11e1a6f rd389819 47 47 The board we have chosen for our PC386 implementation is a D-Link DFE-500TX. 48 48 This is a dual-speed 10/100Mbps Ethernet PCI adapter with a DEC21140AF chip. 49 Like other PCI devices, this board has a PCI device âs header containing some49 Like other PCI devices, this board has a PCI device's header containing some 50 50 required configuration registers, as shown in the PCI Register Figure. 51 51 By reading … … 133 133 134 134 This thread is event driven. Each time a DEC PCI board interrupt occurs, the 135 handler checks if this is a receive interrupt and send an event âreceptionâ135 handler checks if this is a receive interrupt and send an event "reception" 136 136 to the receiver thread which looks into the entire buffer descriptors ring the 137 137 ones that contain a valid incoming frame (bit OWN=0 means descriptor belongs -
networking/index.rst
r11e1a6f rd389819 2 2 RTEMS Network Supplement 3 3 ======================== 4 COPYRIGHT ©1988 - 2015.4 COPYRIGHT (c) 1988 - 2015. 5 5 6 6 On-Line Applications Research Corporation (OAR). -
networking/network_servers.rst
r11e1a6f rd389819 7 7 The RTEMS FTPD is a complete file transfer protocol (FTP) daemon 8 8 which can store, retrieve, and manipulate files on the local 9 filesystem. In addition, the RTEMS FTPD provides âhooksâ9 filesystem. In addition, the RTEMS FTPD provides "hooks" 10 10 which are actions performed on received data. Hooks are useful 11 11 in situations where a destination file is not necessarily -
networking/network_task_structure.rst
r11e1a6f rd389819 24 24 aging and removing routing table entries. 25 25 26 The âNetwork codeâcontains routines which may run in the context of26 The 'Network code' contains routines which may run in the context of 27 27 the user application tasks, the interface receive task or the network task. 28 28 A network semaphore ensures that -
networking/networking_driver.rst
r11e1a6f rd389819 7 7 This chapter is intended to provide an introduction to the 8 8 procedure for writing RTEMS network device drivers. 9 The example code is taken from the âGeneric 68360ânetwork device9 The example code is taken from the 'Generic 68360' network device 10 10 driver. The source code for this driver is located in the``c/src/lib/libbsp/m68k/gen68360/network`` directory in the RTEMS 11 11 source code distribution. Having a copy of this driver at … … 16 16 17 17 Before starting to write the network driver become completely 18 familiar with the programmer âs view of the device.18 familiar with the programmer's view of the device. 19 19 The following points list some of the details of the 20 20 device that must be understood before a driver can be written. … … 71 71 execute only when they hold the network semaphore (``rtems_bsdnet_semaphore``). 72 72 The transmit and receive tasks must abide by this protocol. Be very 73 careful to avoid âdeadly embracesâwith the other network tasks.73 careful to avoid 'deadly embraces' with the other network tasks. 74 74 A number of routines are provided to make it easier for the network 75 75 driver code to conform to the network task scheduling conventions. … … 161 161 ``ifp->if_unit`` 162 162 The device number. The network stack uses this number and the 163 device name for device name lookups. For example, if``ifp->if_name`` is â``scc``â and ``ifp->if_unit`` is â``1``â,164 the full device name would be â``scc1``â. The unit number should be165 obtained from the ânameâentry in the configuration structure.163 device name for device name lookups. For example, if``ifp->if_name`` is '``scc``' and ``ifp->if_unit`` is '``1``', 164 the full device name would be '``scc1``'. The unit number should be 165 obtained from the 'name' entry in the configuration structure. 166 166 167 167 ``ifp->if_mtu`` … … 212 212 calling ``if_attach``. Ethernet devices should then 213 213 call ``ether_ifattach``. Both functions take a pointer to the 214 device âs ``ifnet`` structure as their only argument.214 device's ``ifnet`` structure as their only argument. 215 215 216 216 The attach function should return a non-zero value to indicate that … … 222 222 This function is called each time the network stack wants to start the 223 223 transmitter. This occures whenever the network stack adds a packet 224 to a device âs send queue and the ``IFF_OACTIVE`` bit in the225 device âs ``if_flags`` is not set.224 to a device's send queue and the ``IFF_OACTIVE`` bit in the 225 device's ``if_flags`` is not set. 226 226 227 227 For many devices this function need only set the ``IFF_OACTIVE`` bit in the``if_flags`` and send an event to the transmit task -
networking/preface.rst
r11e1a6f rd389819 12 12 to understand Ethernet: 13 13 14 - *Charles Spurgeon âs Ethernet Web Site*14 - *Charles Spurgeon's Ethernet Web Site* 15 15 "This site provides extensive information about Ethernet 16 16 (IEEE 802.3) local area network (LAN) technology. Including -
networking/testing_the_driver.rst
r11e1a6f rd389819 12 12 13 13 - An Ethernet network analyzer or a workstation with an 14 âEthernet snoopâprogram such as ``ethersnoop`` or``tcpdump``.14 'Ethernet snoop' program such as ``ethersnoop`` or``tcpdump``. 15 15 16 16 - A workstation. … … 40 40 - mbuf activity 41 41 There are commented out calls to ``printf`` in the file``sys/mbuf.h`` in the network stack code. Uncommenting 42 these lines results in output when mbuf âs are allocated42 these lines results in output when mbuf's are allocated 43 43 and freed. This is very useful for finding memory leaks. 44 44 … … 92 92 For a quick reference to the flags, see the table below: 93 93 94 â``U``â94 '``U``' 95 95 Up: The route is active. 96 96 97 â``H``â97 '``H``' 98 98 Host: The route destination is a single host. 99 99 100 â``G``â100 '``G``' 101 101 Gateway: Send anything for this destination on to this remote system, which 102 102 will figure out from there where to send it. 103 103 104 â``S``â104 '``S``' 105 105 Static: This route was configured manually, not automatically generated by the 106 106 system. 107 107 108 â``C``â108 '``C``' 109 109 Clone: Generates a new route based upon this route for machines we connect 110 110 to. This type of route is normally used for local networks. 111 111 112 â``W``â112 '``W``' 113 113 WasCloned: Indicated a route that was auto-configured based upon a local area 114 114 network (Clone) route. 115 115 116 â``L``â116 '``L``' 117 117 Link: Route involves references to Ethernet hardware. 118 118 … … 183 183 Verify that the program continues to run once the driver has been attached. 184 184 185 - Issue a â``u``âcommand to send UDP186 packets to the âdiscardâport.185 - Issue a '``u``' command to send UDP 186 packets to the 'discard' port. 187 187 Verify that the packets appear on the network. 188 188 189 - Issue a â``s``âcommand to print the network and driver statistics.189 - Issue a '``s``' command to print the network and driver statistics. 190 190 191 191 - On a workstation, add a static route to the target system. 192 192 193 - On that same workstation try to âpingâthe target system.193 - On that same workstation try to 'ping' the target system. 194 194 Verify that the ICMP echo request and reply packets appear on the net. 195 195 … … 197 197 Modify ``networkconfig.h`` to attach the driver 198 198 with reception of broadcast packets enabled. 199 Try to âpingâthe target system again.199 Try to 'ping' the target system again. 200 200 Verify that ARP request/reply and ICMP echo request/reply packets appear 201 201 on the net. 202 202 203 - Issue a â``t``âcommand to send TCP204 packets to the âdiscardâport.203 - Issue a '``t``' command to send TCP 204 packets to the 'discard' port. 205 205 Verify that the packets appear on the network. 206 206 207 - Issue a â``s``âcommand to print the network and driver statistics.207 - Issue a '``s``' command to print the network and driver statistics. 208 208 209 209 - Verify that you can telnet to ports 24742 … … 233 233 a smaller value, say 514. 234 234 235 - âPingâthe driver from another workstation and verify235 - 'Ping' the driver from another workstation and verify 236 236 that frames larger than 514 bytes are correctly rejected. 237 237 … … 249 249 still telnet to both the ports. 250 250 251 - Display the driver statistics (Console â``s``âcommand or telnet252 âcontrol-Gâcharacter) and verify that:251 - Display the driver statistics (Console '``s``' command or telnet 252 'control-G' character) and verify that: 253 253 254 254 # The number of transmit interrupts is non-zero. … … 263 263 - Run the ``netdemo`` program. 264 264 265 - Issue a â``u``âconsole command to make the target machine transmit265 - Issue a '``u``' console command to make the target machine transmit 266 266 a bunch of UDP packets. 267 267 … … 278 278 279 279 Run the ``ttcp`` network benchmark program. 280 Transfer large amounts of data (100 âs of megabytes) to and from the target280 Transfer large amounts of data (100's of megabytes) to and from the target 281 281 system. 282 282 -
networking/using_networking_rtems_app.rst
r11e1a6f rd389819 127 127 standard files created with the information return by the BOOTP/DHCP 128 128 protocol. The IP address is added to :file:`/etc/hosts` with the host 129 name and domain returned. If no host name or domain is returned``me.mydomain`` is used. The BOOTP/DHCP server âs address is also129 name and domain returned. If no host name or domain is returned``me.mydomain`` is used. The BOOTP/DHCP server's address is also 130 130 added to :file:`/etc/hosts`. The domain name server listed in the 131 131 BOOTP/DHCP information are added to :file:`/etc/resolv.conf`. A``search`` record is also added if a domain is returned. The files … … 163 163 ``char \*gateway`` 164 164 The Internet host number of the network gateway machine, 165 specified in âdotted decimalâ(``129.128.4.1``) form.165 specified in 'dotted decimal' (``129.128.4.1``) form. 166 166 167 167 ``char \*log_host`` … … 280 280 ``char \*ip_address`` 281 281 The Internet address of the device, 282 specified in âdotted decimalâ(``129.128.4.2``) form, or ``NULL``282 specified in 'dotted decimal' (``129.128.4.2``) form, or ``NULL`` 283 283 if the device configuration information is being obtained from a 284 284 BOOTP/DHCP server. … … 286 286 ``char \*ip_netmask`` 287 287 The Internet inetwork mask of the device, 288 specified in âdotted decimalâ(``255.255.255.0``) form, or ``NULL``288 specified in 'dotted decimal' (``255.255.255.0``) form, or ``NULL`` 289 289 if the device configuration information is being obtained from a 290 290 BOOTP/DHCP server. … … 497 497 For sending, when the socket is connected and the free space becomes at 498 498 or above the "low water mark" for the send buffer (default 4096 bytes) 499 you will receive a writable callback. You don ât get continuous callbacks500 if you don ât write anything. Using a non-blocking write socket, you can499 you will receive a writable callback. You don't get continuous callbacks 500 if you don't write anything. Using a non-blocking write socket, you can 501 501 then call write until it returns a value less than the amount of data 502 502 requested to be sent or it produces error EWOULDBLOCK (indicating buffer … … 838 838 If the interval argument is greater than 0, the routine also starts an 839 839 RTEMS task at the specified priority and polls the NTP server every 840 âintervalâseconds. NOTE: This mode of operation has not yet been840 'interval' seconds. NOTE: This mode of operation has not yet been 841 841 implemented. 842 842 … … 844 844 returns 0. If an error occurs a message is printed and the routine returns -1 845 845 with an error code in errno. 846 There is no timeout âif there is no response from an NTP server the846 There is no timeout - if there is no response from an NTP server the 847 847 routine will wait forever. 848 848
Note: See TracChangeset
for help on using the changeset viewer.