Changeset 46d4d9f in mainline for uspace/lib/net/tl


Ignore:
Timestamp:
2010-11-20T17:04:59Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd5046dd
Parents:
fdbc3ff
Message:

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

Location:
uspace/lib/net/tl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/tl/icmp_client.c

    rfdbc3ff r46d4d9f  
    6161 */
    6262int
    63 icmp_client_process_packet(packet_t packet, icmp_type_t *type,
     63icmp_client_process_packet(packet_t *packet, icmp_type_t *type,
    6464    icmp_code_t *code, icmp_param_t *pointer, icmp_param_t *mtu)
    6565{
     
    9494 * @return              The ICMP header length in bytes.
    9595 */
    96 size_t icmp_client_header_length(packet_t packet)
     96size_t icmp_client_header_length(packet_t *packet)
    9797{
    9898        if (packet_get_data_length(packet) < sizeof(icmp_header_t))
  • uspace/lib/net/tl/icmp_remote.c

    rfdbc3ff r46d4d9f  
    6363int
    6464icmp_destination_unreachable_msg(int icmp_phone, icmp_code_t code,
    65     icmp_param_t mtu, packet_t packet)
     65    icmp_param_t mtu, packet_t *packet)
    6666{
    6767        async_msg_3(icmp_phone, NET_ICMP_DEST_UNREACH, (ipcarg_t) code,
     
    8282 * @return              ENOMEM if there is not enough memory left.
    8383 */
    84 int icmp_source_quench_msg(int icmp_phone, packet_t packet)
     84int icmp_source_quench_msg(int icmp_phone, packet_t *packet)
    8585{
    8686        async_msg_2(icmp_phone, NET_ICMP_SOURCE_QUENCH, 0,
     
    102102 * @return              ENOMEM if there is not enough memory left.
    103103 */
    104 int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t packet)
     104int icmp_time_exceeded_msg(int icmp_phone, icmp_code_t code, packet_t *packet)
    105105{
    106106        async_msg_2(icmp_phone, NET_ICMP_TIME_EXCEEDED, (ipcarg_t) code,
     
    124124 */
    125125int icmp_parameter_problem_msg(int icmp_phone, icmp_code_t code,
    126     icmp_param_t pointer, packet_t packet)
     126    icmp_param_t pointer, packet_t *packet)
    127127{
    128128        async_msg_3(icmp_phone, NET_ICMP_PARAMETERPROB, (ipcarg_t) code,
  • uspace/lib/net/tl/socket_core.c

    rfdbc3ff r46d4d9f  
    522522 *                      function.
    523523 */
    524 int socket_reply_packets(packet_t packet, size_t *length)
    525 {
    526         packet_t next_packet;
     524int socket_reply_packets(packet_t *packet, size_t *length)
     525{
     526        packet_t *next_packet;
    527527        size_t fragments;
    528528        size_t *lengths;
  • uspace/lib/net/tl/tl_common.c

    rfdbc3ff r46d4d9f  
    248248 */
    249249int
    250 tl_prepare_icmp_packet(int packet_phone, int icmp_phone, packet_t packet,
     250tl_prepare_icmp_packet(int packet_phone, int icmp_phone, packet_t *packet,
    251251    services_t error)
    252252{
    253         packet_t next;
     253        packet_t *next;
    254254        uint8_t *src;
    255255        int length;
     
    287287 */
    288288int
    289 tl_socket_read_packet_data(int packet_phone, packet_t *packet, size_t prefix,
     289tl_socket_read_packet_data(int packet_phone, packet_t **packet, size_t prefix,
    290290    const packet_dimension_t *dimension, const struct sockaddr *addr,
    291291    socklen_t addrlen)
  • uspace/lib/net/tl/tl_interface.c

    rfdbc3ff r46d4d9f  
    5858 */
    5959int
    60 tl_received_msg(int tl_phone, device_id_t device_id, packet_t packet,
     60tl_received_msg(int tl_phone, device_id_t device_id, packet_t *packet,
    6161    services_t target, services_t error)
    6262{
Note: See TracChangeset for help on using the changeset viewer.