Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e5622be2
Commit
e5622be2
authored
Feb 14, 2021
by
Antoine Kaufmann
Browse files
lib/netif: rename netsim.h -> netif.h
parent
4ee2aa2b
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
17 deletions
+17
-17
lib/simbricks/netif/netif.c
lib/simbricks/netif/netif.c
+2
-2
lib/simbricks/netif/netif.h
lib/simbricks/netif/netif.h
+3
-3
lib/simbricks/netif/rules.mk
lib/simbricks/netif/rules.mk
+4
-4
sims/external/ns-3
sims/external/ns-3
+1
-1
sims/external/rules.mk
sims/external/rules.mk
+1
-1
sims/net/switch/net_switch.cc
sims/net/switch/net_switch.cc
+1
-1
sims/net/switch/rules.mk
sims/net/switch/rules.mk
+1
-1
sims/net/tap/net_tap.c
sims/net/tap/net_tap.c
+1
-1
sims/net/tap/rules.mk
sims/net/tap/rules.mk
+1
-1
sims/net/wire/net_wire.c
sims/net/wire/net_wire.c
+1
-1
sims/net/wire/rules.mk
sims/net/wire/rules.mk
+1
-1
No files found.
lib/simbricks/netif/net
sim
.c
→
lib/simbricks/netif/net
if
.c
View file @
e5622be2
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
*/
#include <simbricks/netif/netif.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
@@ -29,8 +31,6 @@
...
@@ -29,8 +31,6 @@
#include <sys/socket.h>
#include <sys/socket.h>
#include <unistd.h>
#include <unistd.h>
#include <simbricks/netif/netsim.h>
#include "lib/simbricks/netif/internal.h"
#include "lib/simbricks/netif/internal.h"
#include <simbricks/proto/base.h>
#include <simbricks/proto/base.h>
...
...
lib/simbricks/netif/net
sim
.h
→
lib/simbricks/netif/net
if
.h
View file @
e5622be2
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
*/
#ifndef SIMBRICKS_NETIF_NET
SIM
_H_
#ifndef SIMBRICKS_NETIF_NET
IF
_H_
#define SIMBRICKS_NETIF_NET
SIM
_H_
#define SIMBRICKS_NETIF_NET
IF
_H_
#include <stddef.h>
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
...
@@ -67,4 +67,4 @@ void SimbricksNetIfAdvanceEpoch(uint64_t timestamp, uint64_t sync_delay,
...
@@ -67,4 +67,4 @@ void SimbricksNetIfAdvanceEpoch(uint64_t timestamp, uint64_t sync_delay,
uint64_t
SimbricksNetIfAdvanceTime
(
uint64_t
timestamp
,
uint64_t
sync_delay
,
uint64_t
SimbricksNetIfAdvanceTime
(
uint64_t
timestamp
,
uint64_t
sync_delay
,
int
sync_mode
);
int
sync_mode
);
#endif // SIMBRICKS_NETIF_NET
SIM
_H_
#endif // SIMBRICKS_NETIF_NET
IF
_H_
lib/simbricks/netif/rules.mk
View file @
e5622be2
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
include
mk/subdir_pre.mk
include
mk/subdir_pre.mk
lib_net
sim
:=
$(d)
libnet
sim
_common.a
lib_net
if
:=
$(d)
libnet
if
_common.a
OBJS
:=
$(
addprefix
$(d)
,net
sim
.o utils.o
)
OBJS
:=
$(
addprefix
$(d)
,net
if
.o utils.o
)
$(lib_net
sim
)
:
$(OBJS)
$(lib_net
if
)
:
$(OBJS)
CLEAN
:=
$(lib_net
sim
)
$(OBJS)
CLEAN
:=
$(lib_net
if
)
$(OBJS)
include
mk/subdir_post.mk
include
mk/subdir_post.mk
ns-3
@
6cbdef11
Compare
763b902b
...
6cbdef11
Subproject commit
763b902bbcde6cc675c9210db9abaa2bb3e1c
4d
4
Subproject commit
6cbdef1111ee864c91a0dc65177f30e8a91ab
4d
c
sims/external/rules.mk
View file @
e5622be2
...
@@ -59,7 +59,7 @@ $(QEMU): $(d)qemu/ready
...
@@ -59,7 +59,7 @@ $(QEMU): $(d)qemu/ready
$(d)ns-3
:
$(d)ns-3
:
git clone git@github.com:simbricks/ns-3.git
$@
git clone git@github.com:simbricks/ns-3.git
$@
$(d)ns-3/ready
:
$(d)ns-3 $(lib_net
sim
)
$(d)ns-3/ready
:
$(d)ns-3 $(lib_net
if
)
+cd
$<
&&
COSIM_PATH
=
$(
abspath
$(base_dir)
)
./cosim-build.sh configure
+cd
$<
&&
COSIM_PATH
=
$(
abspath
$(base_dir)
)
./cosim-build.sh configure
touch
$@
touch
$@
...
...
sims/net/switch/net_switch.cc
View file @
e5622be2
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <vector>
#include <vector>
extern
"C"
{
extern
"C"
{
#include <simbricks/netif/net
sim
.h>
#include <simbricks/netif/net
if
.h>
#include <simbricks/proto/base.h>
#include <simbricks/proto/base.h>
};
};
...
...
sims/net/switch/rules.mk
View file @
e5622be2
...
@@ -28,7 +28,7 @@ OBJS := $(d)net_switch.o
...
@@ -28,7 +28,7 @@ OBJS := $(d)net_switch.o
$(OBJS)
:
CPPFLAGS := $(CPPFLAGS) -I$(d)include/
$(OBJS)
:
CPPFLAGS := $(CPPFLAGS) -I$(d)include/
$(bin_net_switch)
:
$(OBJS) $(lib_net
sim
) -lpcap
$(bin_net_switch)
:
$(OBJS) $(lib_net
if
) -lpcap
CLEAN
:=
$(bin_net_switch)
$(OBJS)
CLEAN
:=
$(bin_net_switch)
$(OBJS)
ALL
:=
$(bin_net_switch)
ALL
:=
$(bin_net_switch)
...
...
sims/net/tap/net_tap.c
View file @
e5622be2
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include <sys/mman.h>
#include <sys/mman.h>
#include <unistd.h>
#include <unistd.h>
#include <simbricks/netif/net
sim
.h>
#include <simbricks/netif/net
if
.h>
// #define DEBUG_PKTMETA
// #define DEBUG_PKTMETA
...
...
sims/net/tap/rules.mk
View file @
e5622be2
...
@@ -28,7 +28,7 @@ OBJS := $(d)net_tap.o
...
@@ -28,7 +28,7 @@ OBJS := $(d)net_tap.o
$(OBJS)
:
CPPFLAGS := $(CPPFLAGS) -I$(d)include/
$(OBJS)
:
CPPFLAGS := $(CPPFLAGS) -I$(d)include/
$(bin_net_tap)
:
$(OBJS) $(lib_net
sim
) -lpcap -lpthread
$(bin_net_tap)
:
$(OBJS) $(lib_net
if
) -lpcap -lpthread
CLEAN
:=
$(bin_net_tap)
$(OBJS)
CLEAN
:=
$(bin_net_tap)
$(OBJS)
ALL
:=
$(bin_net_tap)
ALL
:=
$(bin_net_tap)
...
...
sims/net/wire/net_wire.c
View file @
e5622be2
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include <sys/mman.h>
#include <sys/mman.h>
#include <unistd.h>
#include <unistd.h>
#include <simbricks/netif/net
sim
.h>
#include <simbricks/netif/net
if
.h>
#include <simbricks/proto/base.h>
#include <simbricks/proto/base.h>
static
uint64_t
sync_period
=
(
500
*
1000ULL
);
// 500ns
static
uint64_t
sync_period
=
(
500
*
1000ULL
);
// 500ns
...
...
sims/net/wire/rules.mk
View file @
e5622be2
...
@@ -28,7 +28,7 @@ OBJS := $(d)net_wire.o
...
@@ -28,7 +28,7 @@ OBJS := $(d)net_wire.o
$(OBJS)
:
CPPFLAGS := $(CPPFLAGS) -I$(d)include/
$(OBJS)
:
CPPFLAGS := $(CPPFLAGS) -I$(d)include/
$(bin_net_wire)
:
$(OBJS) $(lib_net
sim
) -lpcap
$(bin_net_wire)
:
$(OBJS) $(lib_net
if
) -lpcap
CLEAN
:=
$(bin_net_wire)
$(OBJS)
CLEAN
:=
$(bin_net_wire)
$(OBJS)
ALL
:=
$(bin_net_wire)
ALL
:=
$(bin_net_wire)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment