Skip to content

Commit

Permalink
FW-867. Rename openudp to udp
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyClaeys committed May 28, 2020
1 parent 5962edc commit 7102b58
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion bsp/boards/python/openwsnmodule_obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "icmpv6rpl_obj.h"
#include "coap_obj.h"
#include "oscore_obj.h"
#include "openudp_obj.h"
#include "udp_obj.h"
#include "idmanager_obj.h"
#include "openqueue_obj.h"
#include "openrandom_obj.h"
Expand Down
4 changes: 2 additions & 2 deletions inc/check_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#error "A CoAP dependent application is defined, but CoAP is not included in the build."
#endif

#if !defined(OPENWSN_OPENUDP_C) && (\
#if !defined(OPENWSN_UDP_C) && (\
defined(OPENWSN_USERIALBRIDGE_C) || \
defined(OPENWN_UECHO_C) || \
defined(OPENWSN_UINJECT_C) || \
Expand All @@ -69,7 +69,7 @@
#endif

#if defined(OPENWSN_COAP_C) && (\
!defined(OPENWSN_OPENUDP_C) && !defined(OPEWSN_TCP_C))
!defined(OPENWSN_UDP_C) && !defined(OPEWSN_TCP_C))

#error "CoAP requires a transport layer, i.e. UDP or TCP."
#endif
Expand Down
6 changes: 3 additions & 3 deletions inc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
*
*
*
* Requires: OPENWSN_OPENUDP_C
* Requires: OPENWSN_UDP_C
*
*/

Expand Down Expand Up @@ -181,13 +181,13 @@
// ======================== Stack configuration ========================

/**
* \def OPENWSN_OPENUDP_C
* \def OPENWSN_UDP_C
*
* Implementation of the UDP protocol.
*
*/

#define OPENWSN_OPENUDP_C
#define OPENWSN_UDP_C

/**
* \def OPENWSN_6LO_FRAGMENTATION_C
Expand Down
2 changes: 1 addition & 1 deletion openapps/uecho/uecho.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include "config.h"
#include "openudp.h"
#include "udp.h"

//=========================== define ==========================================

Expand Down
2 changes: 1 addition & 1 deletion openapps/uexpiration/uexpiration.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "config.h"
#include "opentimers.h"
#include "openudp.h"
#include "udp.h"

//=========================== define ==========================================
//=========================== typedef =========================================
Expand Down
2 changes: 1 addition & 1 deletion openapps/uexpiration_monitor/uexpiration_monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include "config.h"
#include "openudp.h"
#include "udp.h"

//=========================== define ==========================================

Expand Down
2 changes: 1 addition & 1 deletion openapps/uinject/uinject.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "config.h"
#include "opentimers.h"
#include "openudp.h"
#include "udp.h"

//=========================== define ==========================================

Expand Down
2 changes: 1 addition & 1 deletion openapps/userialbridge/userialbridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "config.h"
#include "openserial.h"
#include "openudp.h"
#include "udp.h"


//=========================== define ==========================================
Expand Down
6 changes: 3 additions & 3 deletions openstack/03b-IPv6/forwarding.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "neighbors.h"
#include "icmpv6.h"
#include "icmpv6rpl.h"
#include "openudp.h"
#include "udp.h"
#include "debugpins.h"
#include "scheduler.h"

Expand Down Expand Up @@ -246,7 +246,7 @@ void forwarding_sendDone(OpenQueueEntry_t *msg, owerror_t error) {

// indicate sendDone to upper layer
switch (msg->l4_protocol) {
#ifdef OPENWSN_OPENUDP_C
#ifdef OPENWSN_UDP_C
case IANA_UDP:
openudp_sendDone(msg, error);
break;
Expand Down Expand Up @@ -318,7 +318,7 @@ void forwarding_receive(
packetfunctions_tossHeader(msg, ipv6_inner_header->header_length);
// indicate received packet to upper layer
switch (msg->l4_protocol) {
#ifdef OPENWSN_OPENUDP_C
#ifdef OPENWSN_UDP_C
case IANA_UDP:
openudp_receive(msg);
break;
Expand Down
6 changes: 3 additions & 3 deletions openstack/04-TRAN/openudp.c → openstack/04-TRAN/udp.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "config.h"

#if defined(OPENWSN_OPENUDP_C)
#if defined(OPENWSN_UDP_C)

#include "opendefs.h"
#include "openudp.h"
#include "udp.h"
#include "openserial.h"
#include "packetfunctions.h"
#include "forwarding.h"
Expand Down Expand Up @@ -245,4 +245,4 @@ static void openudp_receive_default_handler(OpenQueueEntry_t* msg) {
openqueue_freePacketBuffer(msg);
}

#endif /* OPENWSN_OPENUDP_C */
#endif /* OPENWSN_UDP_C */
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
\defgroup OpenUdp OpenUdp
\defgroup Udp Udp

\brief UDP implementation.

Expand Down
8 changes: 4 additions & 4 deletions openstack/04-TRAN/openudp.h → openstack/04-TRAN/udp.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef __OPENUDP_H
#define __OPENUDP_H
#ifndef OPENWSN_UDP_H
#define OPENWSN_UDP_H

/**
\addtogroup Transport
\{
\addtogroup OpenUdp
\addtogroup Udp
\{
*/

Expand Down Expand Up @@ -77,4 +77,4 @@ bool openudp_debugPrint(void);
\}
*/

#endif
#endif /* OPENWSN_UDP_H */
4 changes: 2 additions & 2 deletions openstack/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sources_c = [
os.path.join('03b-IPv6','icmpv6echo.c'),
os.path.join('03b-IPv6','icmpv6rpl.c'),
#=== 04-TRAN
os.path.join('04-TRAN','openudp.c'),
os.path.join('04-TRAN','udp.c'),
#=== cross-layers
os.path.join('cross-layers','idmanager.c'),
os.path.join('cross-layers','openqueue.c'),
Expand Down Expand Up @@ -58,7 +58,7 @@ sources_h = [
os.path.join('03b-IPv6','icmpv6echo.h'),
os.path.join('03b-IPv6','icmpv6rpl.h'),
#=== 04-TRAN
os.path.join('04-TRAN','openudp.h'),
os.path.join('04-TRAN','udp.h'),
#=== cross-layers
os.path.join('cross-layers','idmanager.h'),
os.path.join('cross-layers','openqueue.h'),
Expand Down
4 changes: 2 additions & 2 deletions openstack/openstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "icmpv6echo.h"
#include "icmpv6rpl.h"
//-- 04-TRAN
#include "openudp.h"
#include "udp.h"

//===== coap-layer
#include "openweb.h"
Expand Down Expand Up @@ -85,7 +85,7 @@ void openstack_init(void) {
icmpv6rpl_init();
//-- 04-TRAN

#if defined(OPEWSN_OPENUDP_C)
#if defined(OPENWSN_UDP_C)
openudp_init();
#endif

Expand Down
2 changes: 1 addition & 1 deletion openweb/opencoap/coap.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "config.h"
#include "opentimers.h"
#include "openudp.h"
#include "udp.h"

//=========================== define ==========================================

Expand Down
2 changes: 1 addition & 1 deletion projects/python/SConscript.env
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ headerFiles = [
'icmpv6echo',
'icmpv6rpl',
# 04-TRAN
'openudp',
'udp',
# cross-layers
'idmanager',
'openqueue',
Expand Down

0 comments on commit 7102b58

Please sign in to comment.