Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/icmp/icmp.c

    rfb04cba8 r4eca056  
    156156 */
    157157static int icmp_send_packet(icmp_type_t type, icmp_code_t code, packet_t packet,
    158     icmp_header_ref header, services_t error, ip_ttl_t ttl, ip_tos_t tos,
     158    icmp_header_t *header, services_t error, ip_ttl_t ttl, ip_tos_t tos,
    159159    int dont_fragment)
    160160{
     
    189189 * @returns NULL on errors.
    190190 */
    191 static icmp_header_ref icmp_prepare_packet(packet_t packet)
    192 {
    193         icmp_header_ref header;
     191static icmp_header_t *icmp_prepare_packet(packet_t packet)
     192{
     193        icmp_header_t *header;
    194194        size_t header_length;
    195195        size_t total_length;
     
    247247    const struct sockaddr * addr, socklen_t addrlen)
    248248{
    249         icmp_header_ref header;
     249        icmp_header_t *header;
    250250        packet_t packet;
    251251        size_t length;
    252252        uint8_t *data;
    253         icmp_reply_ref reply;
     253        icmp_reply_t *reply;
    254254        int reply_key;
    255255        int index;
     
    342342    icmp_code_t code, icmp_param_t mtu, packet_t packet)
    343343{
    344         icmp_header_ref header;
     344        icmp_header_t *header;
    345345
    346346        header = icmp_prepare_packet(packet);
     
    357357static int icmp_source_quench_msg_local(int icmp_phone, packet_t packet)
    358358{
    359         icmp_header_ref header;
     359        icmp_header_t *header;
    360360
    361361        header = icmp_prepare_packet(packet);
     
    370370    packet_t packet)
    371371{
    372         icmp_header_ref header;
     372        icmp_header_t *header;
    373373
    374374        header = icmp_prepare_packet(packet);
     
    383383    icmp_param_t pointer, packet_t packet)
    384384{
    385         icmp_header_ref header;
     385        icmp_header_t *header;
    386386
    387387        header = icmp_prepare_packet(packet);
     
    413413                }
    414414        };
    415         measured_string_ref configuration;
     415        measured_string_t *configuration;
    416416        size_t count = sizeof(names) / sizeof(measured_string_t);
    417417        char *data;
     
    479479 * @param[in] code      The received reply message code.
    480480 */
    481 static void  icmp_process_echo_reply(packet_t packet, icmp_header_ref header,
     481static void  icmp_process_echo_reply(packet_t packet, icmp_header_t *header,
    482482    icmp_type_t type, icmp_code_t code)
    483483{
    484484        int reply_key;
    485         icmp_reply_ref reply;
     485        icmp_reply_t *reply;
    486486
    487487        /* Compute the reply key */
     
    525525        int result;
    526526        void *data;
    527         icmp_header_ref header;
     527        icmp_header_t *header;
    528528        icmp_type_t type;
    529529        icmp_code_t code;
     
    567567
    568568        /* Get ICMP header */
    569         header = (icmp_header_ref) data;
     569        header = (icmp_header_t *) data;
    570570
    571571        if (header->checksum) {
     
    735735 * @returns             ENOTCONN if no free identifier have been found.
    736736 */
    737 static int icmp_bind_free_id(icmp_echo_ref echo_data)
     737static int icmp_bind_free_id(icmp_echo_t *echo_data)
    738738{
    739739        icmp_param_t index;
     
    791791        struct sockaddr *addr;
    792792        ipc_callid_t data_callid;
    793         icmp_echo_ref echo_data;
     793        icmp_echo_t *echo_data;
    794794        int rc = EOK;
    795795
     
    800800        answer_count = 0;
    801801
    802         echo_data = (icmp_echo_ref) malloc(sizeof(*echo_data));
     802        echo_data = (icmp_echo_t *) malloc(sizeof(*echo_data));
    803803        if (!echo_data)
    804804                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.