Return length of BOS packets

The length of BOS packets is missed with the current API, this fixes it.