Changes in uspace/srv/net/il/ip/ip.c [1bfd3d3:46d4d9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip.c
r1bfd3d3 r46d4d9f 129 129 * @return The result parameter. 130 130 */ 131 static int ip_release_and_return(packet_t packet, int result)131 static int ip_release_and_return(packet_t *packet, int result) 132 132 { 133 133 pq_release_remote(ip_globals.net_phone, packet_get_id(packet)); … … 170 170 * @return Other error codes as defined for the packet_set_addr(). 171 171 */ 172 static int ip_prepare_icmp(packet_t packet, ip_header_t *header)173 { 174 packet_t next;172 static int ip_prepare_icmp(packet_t *packet, ip_header_t *header) 173 { 174 packet_t *next; 175 175 struct sockaddr *dest; 176 176 struct sockaddr_in dest_in; … … 233 233 */ 234 234 static int 235 ip_prepare_icmp_and_get_phone(services_t error, packet_t packet,235 ip_prepare_icmp_and_get_phone(services_t error, packet_t *packet, 236 236 ip_header_t *header) 237 237 { … … 543 543 */ 544 544 static ip_header_t * 545 ip_create_middle_header(packet_t packet, ip_header_t *last)545 ip_create_middle_header(packet_t *packet, ip_header_t *last) 546 546 { 547 547 ip_header_t *middle; … … 622 622 */ 623 623 static int 624 ip_prepare_packet(in_addr_t *source, in_addr_t dest, packet_t packet,624 ip_prepare_packet(in_addr_t *source, in_addr_t dest, packet_t *packet, 625 625 measured_string_t *destination) 626 626 { … … 629 629 ip_header_t *last_header; 630 630 ip_header_t *middle_header; 631 packet_t next;631 packet_t *next; 632 632 int rc; 633 633 … … 754 754 */ 755 755 static int 756 ip_fragment_packet_data(packet_t packet, packet_tnew_packet,756 ip_fragment_packet_data(packet_t *packet, packet_t *new_packet, 757 757 ip_header_t *header, ip_header_t *new_header, size_t length, 758 758 const struct sockaddr *src, const struct sockaddr *dest, socklen_t addrlen) … … 816 816 */ 817 817 static int 818 ip_fragment_packet(packet_t packet, size_t length, size_t prefix, size_t suffix,818 ip_fragment_packet(packet_t *packet, size_t length, size_t prefix, size_t suffix, 819 819 socklen_t addr_len) 820 820 { 821 packet_t new_packet;821 packet_t *new_packet; 822 822 ip_header_t *header; 823 823 ip_header_t *middle_header; … … 922 922 * @return NULL if there are no packets left. 923 923 */ 924 static packet_t 925 ip_split_packet(packet_t packet, size_t prefix, size_t content, size_t suffix,924 static packet_t * 925 ip_split_packet(packet_t *packet, size_t prefix, size_t content, size_t suffix, 926 926 socklen_t addr_len, services_t error) 927 927 { 928 928 size_t length; 929 packet_t next;930 packet_t new_packet;929 packet_t *next; 930 packet_t *new_packet; 931 931 int result; 932 932 int phone; … … 993 993 */ 994 994 static int 995 ip_send_route(packet_t packet, ip_netif_t *netif, ip_route_t *route,995 ip_send_route(packet_t *packet, ip_netif_t *netif, ip_route_t *route, 996 996 in_addr_t *src, in_addr_t dest, services_t error) 997 997 { … … 1247 1247 1248 1248 static int 1249 ip_send_msg_local(int il_phone, device_id_t device_id, packet_t packet,1249 ip_send_msg_local(int il_phone, device_id_t device_id, packet_t *packet, 1250 1250 services_t sender, services_t error) 1251 1251 { … … 1451 1451 */ 1452 1452 static int 1453 ip_deliver_local(device_id_t device_id, packet_t packet, ip_header_t *header,1453 ip_deliver_local(device_id_t device_id, packet_t *packet, ip_header_t *header, 1454 1454 services_t error) 1455 1455 { … … 1553 1553 */ 1554 1554 static int 1555 ip_process_packet(device_id_t device_id, packet_t packet)1555 ip_process_packet(device_id_t device_id, packet_t *packet) 1556 1556 { 1557 1557 ip_header_t *header; … … 1715 1715 static int 1716 1716 ip_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) 1718 1718 { 1719 1719 uint8_t *data; … … 1859 1859 * @return ENOMEM if there is not enough memory left. 1860 1860 */ 1861 static int ip_receive_message(device_id_t device_id, packet_t packet)1862 { 1863 packet_t next;1861 static int ip_receive_message(device_id_t device_id, packet_t *packet) 1862 { 1863 packet_t *next; 1864 1864 1865 1865 do { … … 1890 1890 int *answer_count) 1891 1891 { 1892 packet_t packet;1892 packet_t *packet; 1893 1893 struct sockaddr *addr; 1894 1894 size_t addrlen;
Note:
See TracChangeset
for help on using the changeset viewer.