Make sure to send packets within configured range if exceeded.

Fixes #860, #1114, #1131