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

Changeset 46d4d9f in mainline for uspace/srv/net/tl/icmp/icmp.c


Ignore:
Timestamp:
2010-11-20T17:04:59Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
dd5046dd
Parents:
fdbc3ff
Message:

Redefine packet_t to be just a type alias for struct packet.

File:
1 edited

Legend:

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

    rfdbc3ff r46d4d9f  
    130130 * @return              The result parameter.
    131131 */
    132 static int icmp_release_and_return(packet_t packet, int result)
     132static int icmp_release_and_return(packet_t *packet, int result)
    133133{
    134134        pq_release_remote(icmp_globals.net_phone, packet_get_id(packet));
     
    155155 * @return              EPERM if the error message is not allowed.
    156156 */
    157 static int icmp_send_packet(icmp_type_t type, icmp_code_t code, packet_t packet,
     157static int icmp_send_packet(icmp_type_t type, icmp_code_t code, packet_t *packet,
    158158    icmp_header_t *header, services_t error, ip_ttl_t ttl, ip_tos_t tos,
    159159    int dont_fragment)
     
    189189 * @return NULL on errors.
    190190 */
    191 static icmp_header_t *icmp_prepare_packet(packet_t packet)
     191static icmp_header_t *icmp_prepare_packet(packet_t *packet)
    192192{
    193193        icmp_header_t *header;
     
    248248{
    249249        icmp_header_t *header;
    250         packet_t packet;
     250        packet_t *packet;
    251251        size_t length;
    252252        uint8_t *data;
     
    340340
    341341static int icmp_destination_unreachable_msg_local(int icmp_phone,
    342     icmp_code_t code, icmp_param_t mtu, packet_t packet)
     342    icmp_code_t code, icmp_param_t mtu, packet_t *packet)
    343343{
    344344        icmp_header_t *header;
     
    355355}
    356356
    357 static int icmp_source_quench_msg_local(int icmp_phone, packet_t packet)
     357static int icmp_source_quench_msg_local(int icmp_phone, packet_t *packet)
    358358{
    359359        icmp_header_t *header;
     
    368368
    369369static int icmp_time_exceeded_msg_local(int icmp_phone, icmp_code_t code,
    370     packet_t packet)
     370    packet_t *packet)
    371371{
    372372        icmp_header_t *header;
     
    381381
    382382static int icmp_parameter_problem_msg_local(int icmp_phone, icmp_code_t code,
    383     icmp_param_t pointer, packet_t packet)
     383    icmp_param_t pointer, packet_t *packet)
    384384{
    385385        icmp_header_t *header;
     
    479479 * @param[in] code      The received reply message code.
    480480 */
    481 static void  icmp_process_echo_reply(packet_t packet, icmp_header_t *header,
     481static void  icmp_process_echo_reply(packet_t *packet, icmp_header_t *header,
    482482    icmp_type_t type, icmp_code_t code)
    483483{
     
    518518 *                      ip_client_process_packet() function.
    519519 */
    520 static int icmp_process_packet(packet_t packet, services_t error)
     520static int icmp_process_packet(packet_t *packet, services_t error)
    521521{
    522522        size_t length;
     
    658658 *                      icmp_process_packet() function.
    659659 */
    660 static int icmp_received_msg_local(device_id_t device_id, packet_t packet,
     660static int icmp_received_msg_local(device_id_t device_id, packet_t *packet,
    661661    services_t receiver, services_t error)
    662662{
     
    690690static int icmp_process_message(ipc_call_t *call)
    691691{
    692         packet_t packet;
     692        packet_t *packet;
    693693        int rc;
    694694
     
    896896    ipc_call_t *answer, int *answer_count)
    897897{
    898         packet_t packet;
     898        packet_t *packet;
    899899        int rc;
    900900
Note: See TracChangeset for help on using the changeset viewer.