Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shell: introduce txtsnd pseudomodule #6397

Merged
merged 1 commit into from
Jan 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile.pseudomodules
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ PSEUDOMODULES += gnrc_sixlowpan_nd_border_router
PSEUDOMODULES += gnrc_sixlowpan_router
PSEUDOMODULES += gnrc_sixlowpan_router_default
PSEUDOMODULES += gnrc_sock_check_reuse
PSEUDOMODULES += gnrc_txtsnd
PSEUDOMODULES += log
PSEUDOMODULES += log_printfnoformat
PSEUDOMODULES += lwip_arp
Expand Down
2 changes: 2 additions & 0 deletions examples/default/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF)))
USEMODULE += gnrc_netdev_default
# automatically initialize the network interface
USEMODULE += auto_init_gnrc_netif
# shell command to send L2 packets with a simple string
USEMODULE += gnrc_txtsnd
# the application dumps received packets to stdout
USEMODULE += gnrc_pktdump

Expand Down
1 change: 0 additions & 1 deletion examples/posix_sockets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Running the `help` command on an iotlab-m3:
2015-09-22 14:54:54,451 - INFO # mersenne_init initializes the PRNG
2015-09-22 14:54:54,453 - INFO # mersenne_get returns 32 bit of pseudo randomness
2015-09-22 14:54:54,454 - INFO # ifconfig Configure network interfaces
2015-09-22 14:54:54,455 - INFO # txtsnd Sends a custom string as is over the link layer
2015-09-22 14:54:54,457 - INFO # ncache manage neighbor cache by hand
2015-09-22 14:54:54,459 - INFO # routers IPv6 default router list
```
Expand Down
2 changes: 2 additions & 0 deletions sys/shell/commands/shell_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ const shell_command_t _shell_command_list[] = {
#endif
#ifdef MODULE_GNRC_NETIF
{"ifconfig", "Configure network interfaces", _netif_config},
#ifdef MODULE_GNRC_TXTSND
{"txtsnd", "Sends a custom string as is over the link layer", _netif_send },
#endif
#endif
#ifdef MODULE_FIB
{"fibroute", "Manipulate the FIB (info: 'fibroute [add|del]')", _fib_route_handler},
#endif
Expand Down
1 change: 1 addition & 0 deletions tests/driver_kw2xrf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := stm32f0discovery nucleo-f334 weio

USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_netif
USEMODULE += gnrc_txtsnd
USEMODULE += gnrc_nomac
USEMODULE += gnrc_pktdump
USEMODULE += shell
Expand Down
1 change: 1 addition & 0 deletions tests/driver_xbee/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := nucleo-f030 nucleo-f334 stm32f0discovery weio \

USEMODULE += xbee
USEMODULE += gnrc_netif
USEMODULE += gnrc_txtsnd
USEMODULE += gnrc_netdev2
USEMODULE += auto_init_gnrc_netif
USEMODULE += gnrc_pktdump
Expand Down