diff --git a/bmx7/Makefile b/bmx7/Makefile index 6e71222..5ec7b03 100644 --- a/bmx7/Makefile +++ b/bmx7/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bmx7 PKG_VERSION:=7.1.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/bmx-routing/bmx7/tar.gz/v$(PKG_VERSION)? diff --git a/bmx7/patches/020-siocgstamp.patch b/bmx7/patches/020-siocgstamp.patch new file mode 100644 index 0000000..977aa49 --- /dev/null +++ b/bmx7/patches/020-siocgstamp.patch @@ -0,0 +1,38 @@ +--- a/src/schedule.c ++++ b/src/schedule.c +@@ -375,7 +375,9 @@ loop4Event: + continue; + } + ++#ifdef SIOCGSTAMP + ioctl(pb.i.iif->rx_mcast_sock, SIOCGSTAMP, &(pb.i.tv_stamp)); ++#endif + + rx_packet(&pb); + +@@ -401,7 +403,9 @@ loop4Event: + continue; + } + ++#ifdef SIOCGSTAMP + ioctl(pb.i.iif->rx_fullbrc_sock, SIOCGSTAMP, &(pb.i.tv_stamp)); ++#endif + + rx_packet(&pb); + +@@ -451,10 +455,15 @@ loop4Event: + } + } + #endif ++#ifdef SIOCGSTAMP + if (tv_stamp == NULL) + ioctl(pb.i.iif->unicast_sock, SIOCGSTAMP, &(pb.i.tv_stamp)); + else + timercpy(&(pb.i.tv_stamp), tv_stamp); ++#else ++ if (tv_stamp) ++ timercpy(&(pb.i.tv_stamp), tv_stamp); ++#endif + + rx_packet(&pb); +