Changeset 00d7e1b in mainline for uspace/srv/net/net/net.h


Ignore:
Timestamp:
2011-10-07T20:20:33Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
49bd793b
Parents:
e2c50e1
Message:

networking improvements

  • start the networking stack from init
  • add loopback network interface driver (cherrypicked and sanitized from lp:~helenos-nicf/helenos/nicf)
  • add libnic and various small pieces from lp:~helenos-nicf/helenos/nicf
  • fix client side of NIC_GET_ADDRESS
  • net binary overhaul

Note: "ping 127.0.0.1" works, but the first three pings timeout for some reason

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/net.h

    re2c50e1 r00d7e1b  
    3232 */
    3333
    34 /** @file
    35  * Networking subsystem central module.
    36  *
    37  */
    38 
    3934#ifndef NET_NET_H_
    4035#define NET_NET_H_
     
    4843#include <devman.h>
    4944
    50 /** @name Modules definitions
    51  * @{
    52  */
     45#define NAME  "net"
    5346
    5447#define ETHERNET_FILENAME  "/srv/eth"
     
    9588 */
    9689typedef struct {
    97         uint8_t *name;                          /**< System-unique network interface name. */
    98         nic_device_id_t id;             /**< System-unique network interface identifier. */
    99         measured_strings_t configuration;  /**< Configuration. */
     90        /** System-unique network interface name. */
     91        uint8_t *name;
     92        /** System-unique network interface identifier. */
     93        nic_device_id_t id;
     94        /** Configuration. */
     95        measured_strings_t configuration;
    10096       
    10197        /** Serving network interface driver module index. */
    102         devman_handle_t handle;         /**< Handle for devman */
    103         async_sess_t *sess;                     /**< Driver session. */
     98        devman_handle_t handle;  /**< Handle for devman */
     99        async_sess_t *sess;      /**< Driver session. */
    104100       
    105         module_t *nil;   /**< Serving link layer module index. */
    106         module_t *il;    /**< Serving internet layer module index. */
     101        module_t *nil;  /**< Serving link layer module index. */
     102        module_t *il;   /**< Serving internet layer module index. */
    107103} netif_t;
    108104
     
    129125} net_globals_t;
    130126
    131 extern int add_configuration(measured_strings_t *, const uint8_t *,
    132     const uint8_t *);
    133 extern int net_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, size_t *);
    134 extern int net_initialize_build(async_client_conn_t);
    135 extern int net_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, size_t *);
    136 
    137127#endif
    138128
Note: See TracChangeset for help on using the changeset viewer.