Changeset eb522e8 in mainline for uspace/lib/net/tl/icmp_client.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/icmp_client.c
r9e2e715 reb522e8 57 57 * @param[out] pointer The ICMP header pointer. 58 58 * @param[out] mtu The ICMP header MTU. 59 * @return sThe ICMP header length.60 * @return sZero if the packet contains no data.59 * @return The ICMP header length. 60 * @return Zero if the packet contains no data. 61 61 */ 62 62 int 63 icmp_client_process_packet(packet_t packet, icmp_type_t *type,63 icmp_client_process_packet(packet_t *packet, icmp_type_t *type, 64 64 icmp_code_t *code, icmp_param_t *pointer, icmp_param_t *mtu) 65 65 { 66 icmp_header_ refheader;66 icmp_header_t *header; 67 67 68 header = (icmp_header_ ref) packet_get_data(packet);68 header = (icmp_header_t *) packet_get_data(packet); 69 69 if (!header || 70 70 (packet_get_data_length(packet) < sizeof(icmp_header_t))) { … … 81 81 *mtu = header->un.frag.mtu; 82 82 83 / / remove debug dump83 /* Remove debug dump */ 84 84 #ifdef CONFIG_DEBUG 85 85 printf("ICMP error %d (%d) in packet %d\n", header->type, header->code, … … 92 92 * 93 93 * @param[in] packet The packet. 94 * @return sThe ICMP header length in bytes.94 * @return The ICMP header length in bytes. 95 95 */ 96 size_t icmp_client_header_length(packet_t packet)96 size_t icmp_client_header_length(packet_t *packet) 97 97 { 98 98 if (packet_get_data_length(packet) < sizeof(icmp_header_t))
Note:
See TracChangeset
for help on using the changeset viewer.