Changeset d01dead in rtems-docs
- Timestamp:
- 01/16/16 23:24:08 (7 years ago)
- Branches:
- 4.11, 5, am, master
- Children:
- ca49bfd
- Parents:
- 75a59fd
- git-author:
- Amar Takhar <verm@…> (01/16/16 23:24:08)
- git-committer:
- Amar Takhar <verm@…> (05/03/16 00:51:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
networking/networking.rst
r75a59fd rd01dead 286 286 This is equivalent to the following list of definitions. Early versions 287 287 of the RTEMS BSD network stack required that all of these be defined. 288 288 289 .. code:: c 289 290 … … 460 461 461 462 ``SIOCSIFADDR`` 463 462 464 If the device is an Ethernet interface these 463 465 commands should be passed on to ``ether_ioctl``. 464 466 465 467 ``SIOCSIFFLAGS`` 468 466 469 This command should be used to start or stop the device, 467 470 depending on the state of the interface ``IFF_UP`` and``IFF_RUNNING`` bits in ``if_flags``: 471 468 472 ``IFF_RUNNING`` 473 469 474 Stop the device. 475 470 476 ``IFF_UP`` 477 471 478 Start the device. 479 472 480 ``IFF_UP|IFF_RUNNING`` 481 473 482 Stop then start the device. 483 474 484 ``0`` 485 475 486 Do nothing. 476 487 … … 604 615 605 616 ``struct rtems_bsdnet_ifconfig \*ifconfig`` 617 606 618 A pointer to the first configuration structure of the first network 607 619 device. This structure is described in the following section. … … 609 621 610 622 ``void (\*bootp)(void)`` 623 611 624 This entry should be set to ``rtems_bsdnet_do_bootp`` if your 612 625 application by default uses the BOOTP/DHCP client protocol to obtain … … 687 700 688 701 ``unsigned long udp_tx_buf_size`` 702 689 703 This configuration parameter specifies the maximum amount of 690 704 buffer memory which may be used for UDP sockets to transmit … … 693 707 694 708 ``unsigned long udp_rx_buf_size`` 709 695 710 This configuration parameter specifies the maximum amount of 696 711 buffer memory which may be used for UDP sockets to receive 697 712 into. The default size is the following length in bytes: 713 698 714 .. code:: c 715 699 716 40 * (1024 + sizeof(struct sockaddr_in) 700 717 701 718 ``unsigned long tcp_tx_buf_size`` 719 702 720 This configuration parameter specifies the maximum amount of 703 721 buffer memory which may be used for TCP sockets to transmit … … 705 723 706 724 ``unsigned long tcp_rx_buf_size`` 725 707 726 This configuration parameter specifies the maximum amount of 708 727 buffer memory which may be used for TCP sockets to receive … … 710 729 711 730 ``const cpu_set_t \*network_task_cpuset`` 731 712 732 This configuration parameter specifies the CPU affinity of the 713 733 network task. If set to ``0`` the network task can be scheduled on … … 715 735 716 736 ``size_t network_task_cpuset_size`` 737 717 738 This configuration parameter specifies the size of the``network_task_cpuset`` used. Only available in SMP configurations. 718 739 … … 847 868 For example the following functions return a pointer to a static 848 869 buffer which remains valid only until the next call: 870 849 871 ``gethostbyaddr`` 872 850 873 ``gethostbyname`` 874 851 875 ``inet_ntoa`` 876 852 877 (``inet_ntop`` is thread-safe, though). 853 878 … … 1409 1434 This command shows the current routing information for the TCP/IP stack. Following is an 1410 1435 example showing the output of this command. 1436 1411 1437 .. code:: c 1438 1412 1439 Destination Gateway/Mask/Hw Flags Refs Use Expire Interface 1413 1440 10.0.0.0 255.0.0.0 U 0 0 17 smc1 1414 1441 127.0.0.1 127.0.0.1 UH 0 0 0 lo0 1442 1415 1443 In this example, there is only one network interface with an IP address of 10.8.1.1. This 1416 1444 link is currently not up. … … 1421 1449 URL: (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html) 1422 1450 For a quick reference to the flags, see the table below: 1451 1423 1452 â``U``â 1424 1453 Up: The route is active. 1454 1425 1455 â``H``â 1426 1456 Host: The route destination is a single host. 1457 1427 1458 â``G``â 1428 1459 Gateway: Send anything for this destination on to this remote system, which 1429 1460 will figure out from there where to send it. 1461 1430 1462 â``S``â 1431 1463 Static: This route was configured manually, not automatically generated by the 1432 1464 system. 1465 1433 1466 â``C``â 1434 1467 Clone: Generates a new route based upon this route for machines we connect 1435 1468 to. This type of route is normally used for local networks. 1469 1436 1470 â``W``â 1437 1471 WasCloned: Indicated a route that was auto-configured based upon a local area 1438 1472 network (Clone) route. 1473 1439 1474 â``L``â 1440 1475 Link: Route involves references to Ethernet hardware. 1441 1476 1442 1477 - ``mbuf`` 1478 1443 1479 This command shows the current MBUF statistics. An example of the command is shown below: 1480 1444 1481 .. code:: c 1482 1445 1483 ************ MBUF STATISTICS \************ 1446 1484 mbufs:4096 clusters: 256 free: 241 … … 1452 1490 1453 1491 - ``if`` 1492 1454 1493 This command shows the current statistics for your Ethernet driver as long as the ioctl hook``SIO_RTEMS_SHOW_STATS`` has been implemented. Below is an example: 1494 1455 1495 .. code:: c 1496 1456 1497 ************ INTERFACE STATISTICS \************ 1457 1498 \***** smc1 \***** … … 1568 1609 - Display the driver statistics (Console â``s``â command or telnet 1569 1610 âcontrol-Gâ character) and verify that: 1611 1570 1612 # The number of transmit interrupts is non-zero. 1571 1613 This indicates that all transmit descriptors have been in use at some time. 1614 1572 1615 # The number of missed packets is non-zero. 1573 1616 This indicates that all receive descriptors have been in use at some time. … … 1605 1648 found in the ``ttcp_orig`` subdirectory. 1606 1649 1607 # On the host run ``ttcp -s -t <<insert the hostname or IP address of 1608 the Target here>>`` 1650 # On the host run ``ttcp -s -t <<insert the hostname or IP address of the Target here>>`` 1609 1651 1610 1652 The procedure for testing throughput from an RTEMS target … … 1615 1657 # Download and start the ttcp program on the Target. 1616 1658 1617 # In response to the ``ttcp`` prompt, enter ``-s -t <<insert 1618 the hostname or IP address of the Target here>>``. You need to type the 1659 # In response to the ``ttcp`` prompt, enter ``-s -t <<insert the hostname or IP address of the Target here>>``. You need to type the 1619 1660 IP address of the host unless your Target is talking to your Domain Name 1620 1661 Server. … … 1981 2022 DFE500-TX. 1982 2023 1983 - ````*[DEC21140 Hardware Manual] DIGITAL, *DIGITAL2024 - *[DEC21140 Hardware Manual] DIGITAL, *DIGITAL 1984 2025 Semiconductor 21140A PCI Fast Ethernet LAN Controller - Hardware 1985 2026 Reference Manual**. 1986 2027 1987 - ````*[99.TA.0021.M.ER]Emmanuel Raguet,*RTEMS Cache Management For Intel**.2028 - *[99.TA.0021.M.ER]Emmanuel Raguet,*RTEMS Cache Management For Intel**. 1988 2029 1989 2030 Command and Variable Index
Note: See TracChangeset
for help on using the changeset viewer.