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

Changeset 46d4d9f in mainline for uspace/srv/net/il/ip/ip.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/il/ip/ip.c

    rfdbc3ff r46d4d9f  
    129129 * @return              The result parameter.
    130130 */
    131 static int ip_release_and_return(packet_t packet, int result)
     131static int ip_release_and_return(packet_t *packet, int result)
    132132{
    133133        pq_release_remote(ip_globals.net_phone, packet_get_id(packet));
     
    170170 * @return              Other error codes as defined for the packet_set_addr().
    171171 */
    172 static int ip_prepare_icmp(packet_t packet, ip_header_t *header)
    173 {
    174         packet_t next;
     172static int ip_prepare_icmp(packet_t *packet, ip_header_t *header)
     173{
     174        packet_t *next;
    175175        struct sockaddr *dest;
    176176        struct sockaddr_in dest_in;
     
    233233 */
    234234static int
    235 ip_prepare_icmp_and_get_phone(services_t error, packet_t packet,
     235ip_prepare_icmp_and_get_phone(services_t error, packet_t *packet,
    236236    ip_header_t *header)
    237237{
     
    543543 */
    544544static ip_header_t *
    545 ip_create_middle_header(packet_t packet, ip_header_t *last)
     545ip_create_middle_header(packet_t *packet, ip_header_t *last)
    546546{
    547547        ip_header_t *middle;
     
    622622 */
    623623static int
    624 ip_prepare_packet(in_addr_t *source, in_addr_t dest, packet_t packet,
     624ip_prepare_packet(in_addr_t *source, in_addr_t dest, packet_t *packet,
    625625    measured_string_t *destination)
    626626{
     
    629629        ip_header_t *last_header;
    630630        ip_header_t *middle_header;
    631         packet_t next;
     631        packet_t *next;
    632632        int rc;
    633633
     
    754754 */
    755755static int
    756 ip_fragment_packet_data(packet_t packet, packet_t new_packet,
     756ip_fragment_packet_data(packet_t *packet, packet_t *new_packet,
    757757    ip_header_t *header, ip_header_t *new_header, size_t length,
    758758    const struct sockaddr *src, const struct sockaddr *dest, socklen_t addrlen)
     
    816816 */
    817817static int
    818 ip_fragment_packet(packet_t packet, size_t length, size_t prefix, size_t suffix,
     818ip_fragment_packet(packet_t *packet, size_t length, size_t prefix, size_t suffix,
    819819    socklen_t addr_len)
    820820{
    821         packet_t new_packet;
     821        packet_t *new_packet;
    822822        ip_header_t *header;
    823823        ip_header_t *middle_header;
     
    922922 * @return              NULL if there are no packets left.
    923923 */
    924 static packet_t
    925 ip_split_packet(packet_t packet, size_t prefix, size_t content, size_t suffix,
     924static packet_t *
     925ip_split_packet(packet_t *packet, size_t prefix, size_t content, size_t suffix,
    926926    socklen_t addr_len, services_t error)
    927927{
    928928        size_t length;
    929         packet_t next;
    930         packet_t new_packet;
     929        packet_t *next;
     930        packet_t *new_packet;
    931931        int result;
    932932        int phone;
     
    993993 */
    994994static int
    995 ip_send_route(packet_t packet, ip_netif_t *netif, ip_route_t *route,
     995ip_send_route(packet_t *packet, ip_netif_t *netif, ip_route_t *route,
    996996    in_addr_t *src, in_addr_t dest, services_t error)
    997997{
     
    12471247
    12481248static int
    1249 ip_send_msg_local(int il_phone, device_id_t device_id, packet_t packet,
     1249ip_send_msg_local(int il_phone, device_id_t device_id, packet_t *packet,
    12501250    services_t sender, services_t error)
    12511251{
     
    14511451 */
    14521452static int
    1453 ip_deliver_local(device_id_t device_id, packet_t packet, ip_header_t *header,
     1453ip_deliver_local(device_id_t device_id, packet_t *packet, ip_header_t *header,
    14541454    services_t error)
    14551455{
     
    15531553 */
    15541554static int
    1555 ip_process_packet(device_id_t device_id, packet_t packet)
     1555ip_process_packet(device_id_t device_id, packet_t *packet)
    15561556{
    15571557        ip_header_t *header;
     
    17151715static int
    17161716ip_received_error_msg_local(int ip_phone, device_id_t device_id,
    1717     packet_t packet, services_t target, services_t error)
     1717    packet_t *packet, services_t target, services_t error)
    17181718{
    17191719        uint8_t *data;
     
    18591859 * @return              ENOMEM if there is not enough memory left.
    18601860 */
    1861 static int ip_receive_message(device_id_t device_id, packet_t packet)
    1862 {
    1863         packet_t next;
     1861static int ip_receive_message(device_id_t device_id, packet_t *packet)
     1862{
     1863        packet_t *next;
    18641864
    18651865        do {
     
    18901890    int *answer_count)
    18911891{
    1892         packet_t packet;
     1892        packet_t *packet;
    18931893        struct sockaddr *addr;
    18941894        size_t addrlen;
Note: See TracChangeset for help on using the changeset viewer.