I have a list of IP addresses, and I have a prefix map. How can I find the value associated with each address?
Prefix maps only work on flow data. In order to do pmap lookups, we have to create some sample flow data. In this example, we use rwtuc to create a bogus flow record, set the source address to the address(es) found on STDIN, and then rwcut the address with its pmap value.