Skip to content

cotonete

https://github.com/libremesh/lime-packages/blob/master/packages/cotonete

Readme

# cotonete is temporarily hosted on https://github.com/nicopace/cotonete

# cotonete [beta]

cotonete is a daemon that monitors the deafness of radios and reacts instantly to it, working around the issue.

## issue

Every now and then, certain wifi radios manifest an issue that is called deaf radio: the radio has good link, has associated links, but no traffic goes through it.

## solution

cotonete monitors the traffic over the wireless links by doing a link local ping6 to all the associated peers. If the ping doesn’t increment the transmitted bandwidth announced by the statistics of the interface, then the radio is deaf and needs to be restarted.

Makefile

include $(TOPDIR)/rules.mk

PKG_NAME:=cotonete
PKG_VERSION:=0.0.1

PKG_MAINTAINER:=Nicolas Pace <nico@libre.ws>
PKG_LICENSE:=LGPL-2.1+

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
    TITLE:=$(PKG_NAME)
    CATEGORY:=Network
    MAINTAINER:=Nicolas Pace <nico@libre.ws>
    URL:=http://www.libremesh.org/
    DEPENDS:=
    PKGARCH:=all
endef

define Package/$(PKG_NAME)/description
    Cotonete monitors mesh devices looking for the dead phys ath9k bug, and logs when it happens.
endef

define Build/Compile
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/
	$(CP) ./files/* $(1)/
	@chmod a+x $(1)/etc/init.d/cotonete
	@chmod a+x $(1)/usr/sbin/cotonete.sh
endef

$(eval $(call BuildPackage,$(PKG_NAME)))