Changeset 7f95c904 in mainline for uspace/srv/inet/inet.h


Ignore:
Timestamp:
2012-04-16T07:04:19Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7fda2e0
Parents:
347768d
Message:

Prototype datagram reassembly.

File:
1 edited

Legend:

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

    r347768d r7f95c904  
    3939
    4040#include <adt/list.h>
     41#include <bool.h>
    4142#include <inet/iplink.h>
    4243#include <ipc/loc.h>
     
    103104
    104105typedef struct {
     106        /** Source address */
    105107        inet_addr_t src;
     108        /** Destination address */
    106109        inet_addr_t dest;
     110        /** Type of service */
    107111        uint8_t tos;
     112        /** Protocol */
    108113        uint8_t proto;
     114        /** Time to live */
    109115        uint8_t ttl;
    110         int df;
     116        /** Identifier */
     117        uint16_t ident;
     118        /** Do not fragment */
     119        bool df;
     120        /** More fragments */
     121        bool mf;
     122        /** Offset of fragment into datagram, in bytes */
     123        size_t offs;
     124        /** Packet data */
    111125        void *data;
     126        /** Packet data size in bytes */
    112127        size_t size;
    113128} inet_packet_t;
     
    180195extern int inet_route_packet(inet_dgram_t *, uint8_t, uint8_t, int);
    181196extern int inet_get_srcaddr(inet_addr_t *, uint8_t, inet_addr_t *);
    182 
     197extern int inet_recv_dgram_local(inet_dgram_t *, uint8_t);
    183198
    184199#endif
Note: See TracChangeset for help on using the changeset viewer.