Changeset 13be2583 in mainline


Ignore:
Timestamp:
2013-09-28T21:55:52Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd0c8a0, f023251
Parents:
b243da3
Message:

Client- and server-side definition of inetping[6]_sdu_t can be shared.

Location:
uspace
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/inet/inetping.h

    rb243da3 r13be2583  
    3838#include <inet/inet.h>
    3939#include <sys/types.h>
    40 
    41 typedef struct {
    42         uint32_t src;
    43         uint32_t dest;
    44         uint16_t seq_no;
    45         void *data;
    46         size_t size;
    47 } inetping_sdu_t;
     40#include <types/inetping.h>
    4841
    4942typedef struct inetping_ev_ops {
  • uspace/lib/c/include/inet/inetping6.h

    rb243da3 r13be2583  
    3838#include <inet/inet.h>
    3939#include <sys/types.h>
    40 
    41 typedef struct {
    42         addr128_t src;
    43         addr128_t dest;
    44         uint16_t seq_no;
    45         void *data;
    46         size_t size;
    47 } inetping6_sdu_t;
     40#include <types/inetping6.h>
    4841
    4942typedef struct inetping6_ev_ops {
  • uspace/srv/net/inetsrv/icmp.c

    rb243da3 r13be2583  
    4040#include <mem.h>
    4141#include <stdlib.h>
     42#include <types/inetping.h>
    4243#include <net/socket_codes.h>
    4344#include "icmp.h"
  • uspace/srv/net/inetsrv/icmp.h

    rb243da3 r13be2583  
    3838#define ICMP_H_
    3939
     40#include <types/inetping.h>
    4041#include "inetsrv.h"
    4142
  • uspace/srv/net/inetsrv/icmpv6.c

    rb243da3 r13be2583  
    4141#include <stdlib.h>
    4242#include <net/socket_codes.h>
     43#include <types/inetping6.h>
    4344#include "icmpv6.h"
    4445#include "icmpv6_std.h"
  • uspace/srv/net/inetsrv/icmpv6.h

    rb243da3 r13be2583  
    3838#define ICMPV6_H_
    3939
     40#include <types/inetping6.h>
    4041#include "inetsrv.h"
    4142
  • uspace/srv/net/inetsrv/inetping.c

    rb243da3 r13be2583  
    4343#include <stdlib.h>
    4444#include <sys/types.h>
     45#include <types/inetping.h>
    4546#include <net/socket_codes.h>
    4647#include "icmp.h"
  • uspace/srv/net/inetsrv/inetping.h

    rb243da3 r13be2583  
    3838#define INETPING_H_
    3939
     40#include <types/inetping.h>
    4041#include "inetsrv.h"
    4142
  • uspace/srv/net/inetsrv/inetping6.c

    rb243da3 r13be2583  
    4343#include <stdlib.h>
    4444#include <sys/types.h>
     45#include <types/inetping6.h>
    4546#include <net/socket_codes.h>
    4647#include "icmpv6.h"
  • uspace/srv/net/inetsrv/inetping6.h

    rb243da3 r13be2583  
    3838#define INETPING6_H_
    3939
     40#include <types/inetping6.h>
    4041#include "inetsrv.h"
    4142
  • uspace/srv/net/inetsrv/inetsrv.h

    rb243da3 r13be2583  
    148148} inet_dir_t;
    149149
    150 typedef struct {
    151         uint32_t src;
    152         uint32_t dest;
    153         uint16_t seq_no;
    154         void *data;
    155         size_t size;
    156 } inetping_sdu_t;
    157 
    158 typedef struct {
    159         addr128_t src;
    160         addr128_t dest;
    161         uint16_t seq_no;
    162         void *data;
    163         size_t size;
    164 } inetping6_sdu_t;
    165 
    166150extern int inet_ev_recv(inet_client_t *, inet_dgram_t *);
    167151extern int inet_recv_packet(inet_packet_t *);
Note: See TracChangeset for help on using the changeset viewer.