bsnmp-pcap is a module for bsnmpd which allows you to measure arbitrary traffic flows. The flows are defined in the tcpdump filter syntax.
Source: bsnmp-pcap-0.3.tar.gz bsnmp-pcap-0.2.tar.gz
See the license. Contact me when bugs are found.