~as-s/helenos/ipv6

« back to all changes in this revision

Viewing changes to uspace/srv/net/tcp/tcp_type.h

  • Committer: Anthony Steinhauser
  • Date: 2013-07-08 01:07:36 UTC
  • Revision ID: as@strmilov.cz-20130708010736-pbvrszhamp0v64ez
HelenOS networking stack supports IPv6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (c) 2011 Jiri Svoboda
 
3
 * Copyright (c) 2013 Antonin Steinhauser
3
4
 * All rights reserved.
4
5
 *
5
6
 * Redistribution and use in source and binary forms, with or without
35
36
#ifndef TCP_TYPE_H
36
37
#define TCP_TYPE_H
37
38
 
 
39
#include <net/in6.h>
38
40
#include <adt/list.h>
39
41
#include <async.h>
40
42
#include <stdbool.h>
113
115
} tcp_control_t;
114
116
 
115
117
typedef struct {
116
 
        in_addr_t addr;
 
118
        in6_addr_t addr;
117
119
        uint16_t port;
118
120
} tcp_sock_t;
119
121
 
306
308
/** Encoded PDU */
307
309
typedef struct {
308
310
        /** Source address */
309
 
        in_addr_t src_addr;
 
311
        in6_addr_t src_addr;
310
312
        /** Destination address */
311
 
        in_addr_t dest_addr;
 
313
        in6_addr_t dest_addr;
312
314
 
313
315
        /** Encoded header */
314
316
        void *header;
337
339
        /** Connection */
338
340
        tcp_conn_t *conn;
339
341
        /** Local address */
340
 
        in_addr_t laddr;
 
342
        in6_addr_t laddr;
341
343
        /** Backlog size */
342
344
        int backlog;
343
345
        /** Array of listening connections, @c backlog elements */