Changeset aadf01e in mainline for uspace/srv/net/il/ip/ip.h


Ignore:
Timestamp:
2010-03-07T15:13:28Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
936835e
Parents:
aa85487
Message:

Coding style (no functional change)

File:
1 edited

Legend:

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

    raa85487 raadf01e  
    9090 *  @see device.h
    9191 */
    92 DEVICE_MAP_DECLARE( ip_netifs, ip_netif_t )
     92DEVICE_MAP_DECLARE(ip_netifs, ip_netif_t)
    9393
    9494/** IP registered protocols.
     
    9696 *  @see int_map.h
    9797 */
    98 INT_MAP_DECLARE( ip_protos, ip_proto_t )
     98INT_MAP_DECLARE(ip_protos, ip_proto_t)
    9999
    100100/** IP routing table.
    101101 *  @see generic_field.h
    102102 */
    103 GENERIC_FIELD_DECLARE( ip_routes, ip_route_t )
     103GENERIC_FIELD_DECLARE(ip_routes, ip_route_t)
    104104
    105105/** IP network interface specific data.
     
    108108        /** Device identifier.
    109109         */
    110         device_id_t     device_id;
     110        device_id_t device_id;
    111111        /** Netif module service.
    112112         */
    113         services_t      service;
     113        services_t service;
    114114        /** Netif module phone.
    115115         */
    116         int                     phone;
     116        int phone;
    117117        /** ARP module.
    118118         *  Assigned if using ARP.
    119119         */
    120         module_ref      arp;
     120        module_ref arp;
    121121        /** IP version.
    122122         */
    123         int                     ipv;
     123        int ipv;
    124124        /** Indicates whether using DHCP.
    125125         */
    126         int                     dhcp;
     126        int dhcp;
    127127        /** Indicates whether IP routing is enabled.
    128128         */
    129         int                     routing;
     129        int routing;
    130130        /** Device state.
    131131         */
    132         device_state_t  state;
     132        device_state_t state;
    133133        /** Broadcast address.
    134134         */
    135         in_addr_t       broadcast;
     135        in_addr_t broadcast;
    136136        /** Routing table.
    137137         */
    138         ip_routes_t     routes;
     138        ip_routes_t routes;
    139139        /** Packet dimension.
    140140         */
    141         packet_dimension_t      packet_dimension;
     141        packet_dimension_t packet_dimension;
    142142};
    143143
     
    147147        /** Protocol number.
    148148         */
    149         int     protocol;
     149        int protocol;
    150150        /** Protocol module service.
    151151         */
     
    153153        /** Protocol module phone.
    154154         */
    155         int     phone;
     155        int phone;
    156156        /** Protocol packet receiving function.
    157157         */
     
    164164        /** Target address.
    165165         */
    166         in_addr_t               address;
     166        in_addr_t address;
    167167        /** Target network mask.
    168168         */
    169         in_addr_t               netmask;
     169        in_addr_t netmask;
    170170        /** Gateway.
    171171         */
    172         in_addr_t               gateway;
     172        in_addr_t gateway;
    173173        /** Parent netif.
    174174         */
    175         ip_netif_ref    netif;
     175        ip_netif_ref netif;
    176176};
    177177
     
    181181        /** Networking module phone.
    182182         */
    183         int                     net_phone;
     183        int net_phone;
    184184        /** Registered network interfaces.
    185185         */
    186         ip_netifs_t     netifs;
     186        ip_netifs_t netifs;
    187187        /** Netifs safeyt lock.
    188188         */
    189         fibril_rwlock_t netifs_lock;
     189        fibril_rwlock_t netifs_lock;
    190190        /** Registered protocols.
    191191         */
    192         ip_protos_t     protos;
     192        ip_protos_t protos;
    193193        /** Protocols safety lock.
    194194         */
    195         fibril_rwlock_t protos_lock;
     195        fibril_rwlock_t protos_lock;
    196196        /** Default gateway.
    197197         */
    198         ip_route_t      gateway;
     198        ip_route_t gateway;
    199199        /** Known support modules.
    200200         */
    201         modules_t       modules;
     201        modules_t modules;
    202202        /** Default client connection function for support modules.
    203203         */
     
    205205        /** Packet counter.
    206206         */
    207         uint16_t        packet_counter;
     207        uint16_t packet_counter;
    208208        /** Safety lock.
    209209         */
    210         fibril_rwlock_t lock;
     210        fibril_rwlock_t lock;
    211211};
    212212
Note: See TracChangeset for help on using the changeset viewer.