Add new package to debug multicast setups. This is required to use kselftests script for network testing. net-mtools is used instead of mtools as it does conflicts with another package that is also called mtools. Some additional patch from Vladimir Oltean are added to make the tool works on kernel selftests scripts. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=net-mtools
|
|
PKG_VERSION:=2.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=https://github.com/troglobit/mtools
|
|
PKG_SOURCE_VERSION:=db665a4303c38cee908eba4dac50873c3f1d899c
|
|
PKG_MIRROR_HASH:=687e3743e46c8ddd23f03168b4021ed08b1a858b2a6743db3b62cb3d4c3592a0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/net-mtools
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Debug multicast setups with mtools (msend and mreceive)
|
|
URL:=https://github.com/troglobit/mtools
|
|
endef
|
|
|
|
define Package/net-mtools/description
|
|
The tools msend and mreceive can be particulary useful
|
|
when debugging multicast setups.
|
|
|
|
msend continuously sends UDP packets to the multicast
|
|
group specified by the -g and -p options.
|
|
|
|
mreceive joins a multicast group specified by the -g and
|
|
-p options, then receives and displays the multicast
|
|
packets sent to this group:port combination by the msend
|
|
command.
|
|
endef
|
|
|
|
define Package/net-mtools/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(CP) $(PKG_BUILD_DIR)/msend $(1)/usr/sbin/
|
|
$(CP) $(PKG_BUILD_DIR)/mreceive $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,net-mtools))
|