diff --git a/sys/include/net/gnrc/tcp.h b/sys/include/net/gnrc/tcp.h index a7ccf0e6aa..b3b52d4bc0 100644 --- a/sys/include/net/gnrc/tcp.h +++ b/sys/include/net/gnrc/tcp.h @@ -22,9 +22,9 @@ #ifndef GNRC_TCP_H_ #define GNRC_TCP_H_ +#include "net/tcp.h" #include "net/gnrc/netapi.h" #include "net/gnrc/nettype.h" -#include "net/gnrc/tcp/hdr.h" #include "net/gnrc/tcp/tcb.h" #ifdef MODULE_GNRC_IPV6 diff --git a/sys/include/net/gnrc/tcp/hdr.h b/sys/include/net/tcp.h similarity index 85% rename from sys/include/net/gnrc/tcp/hdr.h rename to sys/include/net/tcp.h index dd6eba6e60..a2df086ed6 100644 --- a/sys/include/net/gnrc/tcp/hdr.h +++ b/sys/include/net/tcp.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Simon Brummer + * Copyright (C) 2017 Simon Brummer * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level @@ -7,20 +7,20 @@ */ /** - * @defgroup net_gnrc_tcp TCP - * @ingroup net_gnrc - * @brief RIOT's tcp implementation for the gnrc stack + * @defgroup net_tcp TCP + * @ingroup net + * @brief Provides TCP header and helper functions * * @{ * * @file - * @brief TCP Header + * @brief TCP header and helper functions * * @author Simon Brummer */ -#ifndef GNRC_TCP_HDR_H_ -#define GNRC_TCP_HDR_H_ +#ifndef TCP_H +#define TCP_H #include "byteorder.h" @@ -52,5 +52,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* GNRC_TCP_TCB_H_ */ +#endif /* TCP_H */ /** @} */ diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c index 17cb911f52..b89ea9c1ef 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c @@ -20,9 +20,9 @@ #include #include #include "net/af.h" +#include "net/tcp.h" #include "net/gnrc/pkt.h" #include "net/gnrc/tcp.h" -#include "net/gnrc/tcp/hdr.h" #include "internal/pkt.h" #include "internal/fsm.h" #include "internal/helper.h" diff --git a/sys/net/gnrc/transport_layer/tcp/internal/helper.h b/sys/net/gnrc/transport_layer/tcp/internal/helper.h index 1b19e60f44..ff9039e3bd 100644 --- a/sys/net/gnrc/transport_layer/tcp/internal/helper.h +++ b/sys/net/gnrc/transport_layer/tcp/internal/helper.h @@ -22,8 +22,8 @@ #ifndef GNRC_TCP_INTERNAL_HELPER_H_ #define GNRC_TCP_INTERNAL_HELPER_H_ +#include "net/tcp.h" #include "net/gnrc/netapi.h" -#include "net/gnrc/tcp/hdr.h" #ifdef __cplusplus extern "C" { diff --git a/sys/net/gnrc/transport_layer/tcp/internal/option.h b/sys/net/gnrc/transport_layer/tcp/internal/option.h index ca85af18c2..2a38ae978e 100644 --- a/sys/net/gnrc/transport_layer/tcp/internal/option.h +++ b/sys/net/gnrc/transport_layer/tcp/internal/option.h @@ -23,8 +23,8 @@ #define GNRC_TCP_INTERNAL_OPTION_H_ #include "helper.h" +#include "net/tcp.h" #include "net/gnrc/tcp.h" -#include "net/gnrc/tcp/hdr.h" #ifdef __cplusplus extern "C" {