Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a7811f17 in mainline for uspace/lib/net/il/ip_client.c


Ignore:
Timestamp:
2010-11-19T21:28:02Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
a9c6b966
Parents:
45f04f8 (diff), aaa3f33a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge xxx_ref typedefs removal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/il/ip_client.c

    r45f04f8 ra7811f17  
    5353size_t ip_client_header_length(packet_t packet)
    5454{
    55         ip_header_ref header;
    56 
    57         header = (ip_header_ref) packet_get_data(packet);
     55        ip_header_t *header;
     56
     57        header = (ip_header_t *) packet_get_data(packet);
    5858        if (!header || (packet_get_data_length(packet) < sizeof(ip_header_t)))
    5959                return 0;
     
    9191    size_t data_length, void **header, size_t *headerlen)
    9292{
    93         ipv4_pseudo_header_ref header_in;
     93        ipv4_pseudo_header_t *header_in;
    9494        struct sockaddr_in *address_in;
    9595
     
    109109               
    110110                *headerlen = sizeof(*header_in);
    111                 header_in = (ipv4_pseudo_header_ref) malloc(*headerlen);
     111                header_in = (ipv4_pseudo_header_t *) malloc(*headerlen);
    112112                if (!header_in)
    113113                        return ENOMEM;
     
    155155    ip_tos_t tos, int dont_fragment, size_t ipopt_length)
    156156{
    157         ip_header_ref header;
     157        ip_header_t *header;
    158158        uint8_t *data;
    159159        size_t padding;
     
    177177
    178178        // set the header
    179         header = (ip_header_ref) data;
     179        header = (ip_header_t *) data;
    180180        header->header_length = IP_COMPUTE_HEADER_LENGTH(sizeof(ip_header_t) +
    181181            ipopt_length);
     
    211211    ip_ttl_t *ttl, ip_tos_t *tos, int *dont_fragment, size_t *ipopt_length)
    212212{
    213         ip_header_ref header;
    214 
    215         header = (ip_header_ref) packet_get_data(packet);
     213        ip_header_t *header;
     214
     215        header = (ip_header_t *) packet_get_data(packet);
    216216        if (!header || (packet_get_data_length(packet) < sizeof(ip_header_t)))
    217217                return ENOMEM;
     
    247247    size_t data_length)
    248248{
    249         ipv4_pseudo_header_ref header_in;
     249        ipv4_pseudo_header_t *header_in;
    250250
    251251        if (!header)
     
    253253
    254254        if (headerlen == sizeof(ipv4_pseudo_header_t)) {
    255                 header_in = (ipv4_pseudo_header_ref) header;
     255                header_in = (ipv4_pseudo_header_t *) header;
    256256                header_in->data_length = htons(data_length);
    257257                return EOK;
Note: See TracChangeset for help on using the changeset viewer.