diff --git a/sys/include/net/gnrc/icmpv6/echo.h b/sys/include/net/gnrc/icmpv6/echo.h index ed9a74fe3f..91279f93f9 100644 --- a/sys/include/net/gnrc/icmpv6/echo.h +++ b/sys/include/net/gnrc/icmpv6/echo.h @@ -46,49 +46,6 @@ extern "C" { gnrc_pktsnip_t *gnrc_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq, uint8_t *data, size_t data_len); -/** - * @brief Builds an ICMPv6 echo request for sending. - * - * @see - * RFC 4443, section 4.1 - * - * - * @param[in] id ID for the echo request in host byte-order - * @param[in] seq Sequence number for the echo request in host byte-order - * @param[in] data Payload for the echo request - * @param[in] data_len Length of @p data - * - * @return The echo request message on success - * @return NULL, on failure - */ -static inline gnrc_pktsnip_t *gnrc_icmpv6_echo_req_build(uint16_t id, uint16_t seq, - uint8_t *data, size_t data_len) -{ - return gnrc_icmpv6_echo_build(ICMPV6_ECHO_REQ, id, seq, data, data_len); -} - -/** - * @brief Builds an ICMPv6 echo reply for sending. - * - * @see - * RFC 4443, section 4.2 - * - * - * @param[in] id ID for the echo reply in host byte-order - * @param[in] seq Sequence number for the echo reply in host byte-order - * @param[in] data Payload for the echo reply - * @param[in] data_len Length of @p data - * - * @return The echo reply message on success - * @return NULL, on failure - */ -static inline gnrc_pktsnip_t *gnrc_icmpv6_echo_rep_build(uint16_t id, uint16_t seq, - uint8_t *data, size_t data_len) -{ - return gnrc_icmpv6_echo_build(ICMPV6_ECHO_REP, id, seq, data, data_len); -} - - /** * @brief ICMPv6 echo request handler * diff --git a/sys/shell/commands/sc_icmpv6_echo.c b/sys/shell/commands/sc_icmpv6_echo.c index 913a662d3e..c9e2f7aa11 100644 --- a/sys/shell/commands/sc_icmpv6_echo.c +++ b/sys/shell/commands/sc_icmpv6_echo.c @@ -215,8 +215,8 @@ int _icmpv6_ping(int argc, char **argv) gnrc_pktsnip_t *pkt; timex_t start, stop, timeout = { 5, 0 }; - pkt = gnrc_icmpv6_echo_req_build(id, ++max_seq_expected, NULL, - payload_len); + pkt = gnrc_icmpv6_echo_build(ICMPV6_ECHO_REQ, id, ++max_seq_expected, + NULL, payload_len); if (pkt == NULL) { puts("error: packet buffer full");