Changeset aadf01e in mainline for uspace/srv/net/tl/tcp/tcp.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/tl/tcp/tcp.h

    raa85487 raadf01e  
    150150        /** Operation result.
    151151         */
    152         int                                     result;
     152        int result;
    153153        /** Safety lock.
    154154         */
    155         fibril_mutex_t          mutex;
     155        fibril_mutex_t mutex;
    156156        /** Operation result signaling.
    157157         */
    158         fibril_condvar_t        condvar;
     158        fibril_condvar_t condvar;
    159159};
    160160
     
    164164        /** TCP socket state.
    165165         */
    166         tcp_socket_state_t      state;
     166        tcp_socket_state_t state;
    167167        /** Data fragment size.
    168168         *  Sending optimalization.
    169169         */
    170         size_t                  data_fragment_size;
     170        size_t data_fragment_size;
    171171        /** Device identifier.
    172172         */
    173         device_id_t             device_id;
     173        device_id_t device_id;
    174174        /** Listening backlog.
    175175         *  The maximal number of connected but not yet accepted sockets.
    176176         */
    177         int                             backlog;
     177        int backlog;
    178178//      /** Segment size.
    179179//       */
     
    182182         *  Set if this socket is an accepted one.
    183183         */
    184         int                             listening_socket_id;
     184        int listening_socket_id;
    185185        /** Treshold size in bytes.
    186186         */
    187         size_t                  treshold;
     187        size_t treshold;
    188188        /** Window size in bytes.
    189189         */
    190         size_t                  window;
     190        size_t window;
    191191        /** Acknowledgement timeout.
    192192         */
    193         suseconds_t             timeout;
     193        suseconds_t timeout;
    194194        /** Last acknowledged byte.
    195195         */
    196         uint32_t                acknowledged;
     196        uint32_t acknowledged;
    197197        /** Next incoming sequence number.
    198198         */
    199         uint32_t                next_incoming;
     199        uint32_t next_incoming;
    200200        /** Incoming FIN.
    201201         */
    202         uint32_t                fin_incoming;
     202        uint32_t fin_incoming;
    203203        /** Next outgoing sequence number.
    204204         */
    205         uint32_t                next_outgoing;
     205        uint32_t next_outgoing;
    206206        /** Last outgoing sequence number.
    207207         */
    208         uint32_t                last_outgoing;
     208        uint32_t last_outgoing;
    209209        /** Outgoing FIN.
    210210         */
    211         uint32_t                fin_outgoing;
     211        uint32_t fin_outgoing;
    212212        /** Expected sequence number by the remote host.
    213213         *  The sequence number the other host expects.
    214214         *  The notification is sent only upon a packet reecival.
    215215         */
    216         uint32_t                expected;
     216        uint32_t expected;
    217217        /** Expected sequence number counter.
    218218         *  Counts the number of received notifications for the same sequence number.
    219219         */
    220         int                             expected_count;
     220        int expected_count;
    221221        /** Incoming packet queue.
    222222         *  Packets are buffered until received in the right order.
     
    225225         *  Packets metric is set as their data length.
    226226         */
    227         packet_t                incoming;
     227        packet_t incoming;
    228228        /** Outgoing packet queue.
    229229         *  Packets are buffered until acknowledged by the remote host in the right order.
     
    232232         *  Packets metric is set as their data length.
    233233         */
    234         packet_t                outgoing;
     234        packet_t outgoing;
    235235        /** IP pseudo header.
    236236         */
    237         ip_pseudo_header_ref    pseudo_header;
     237        ip_pseudo_header_ref pseudo_header;
    238238        /** IP pseudo header length.
    239239         */
    240         size_t                  headerlen;
     240        size_t headerlen;
    241241        /** Remote host address.
    242242         */
    243         struct sockaddr *       addr;
     243        struct sockaddr * addr;
    244244        /** Remote host address length.
    245245         */
    246         socklen_t                       addrlen;
     246        socklen_t addrlen;
    247247        /** Remote host port.
    248248         */
    249         uint16_t                        dest_port;
     249        uint16_t dest_port;
    250250        /** Parent local sockets.
    251251         */
    252         socket_cores_ref        local_sockets;
     252        socket_cores_ref local_sockets;
    253253        /** Local sockets safety lock.
    254254         *  May be locked for writing while holding the global lock for reading when changing the local sockets only.
     
    258258         *  @see tcp_globals:lock
    259259         */
    260         fibril_rwlock_t *       local_lock;
     260        fibril_rwlock_t * local_lock;
    261261        /** Pending operation data.
    262262         */
    263         tcp_operation_t         operation;
     263        tcp_operation_t operation;
    264264        /** Timeouts in a row counter.
    265265         *  If TCP_MAX_TIMEOUTS is reached, the connection is lost.
    266266         */
    267         int                                     timeout_count;
     267        int timeout_count;
    268268};
    269269
     
    273273        /** Networking module phone.
    274274         */
    275         int                             net_phone;
     275        int net_phone;
    276276        /** IP module phone.
    277277         */
    278         int                             ip_phone;
     278        int ip_phone;
    279279        /** ICMP module phone.
    280280         */
    281         int                             icmp_phone;
     281        int icmp_phone;
    282282        /** Last used free port.
    283283         */
    284         int                             last_used_port;
     284        int last_used_port;
    285285        /** Active sockets.
    286286         */
    287         socket_ports_t  sockets;
     287        socket_ports_t sockets;
    288288        /** Device packet dimensions.
    289289         */
    290         packet_dimensions_t     dimensions;
     290        packet_dimensions_t dimensions;
    291291        /** Safety lock.
    292292         *  Write lock is used only for adding or removing socket ports.
    293293         */
    294         fibril_rwlock_t lock;
     294        fibril_rwlock_t lock;
    295295};
    296296
Note: See TracChangeset for help on using the changeset viewer.