/* Output: void, but we will add to proto tree if !NULL.  */
static void dissect_area_address_clv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length)
/* Output: void, but we will add to proto tree if !NULL.  */
static void dissect_area_address_clv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length)
{
	while (length > 0) {
		if (length < 4) {
			proto_tree_add_expert_format(tree, pinfo, &ei_nlsp_short_packet, tvb, offset, -1,
			    "Short area address entry");
			return;
		}
		proto_tree_add_item(tree, hf_nlsp_area_address_network_number, tvb, offset, 4, ENC_BIG_ENDIAN);
		offset += 4;
		length -= 4;
		if (length < 4) {
			proto_tree_add_expert_format(tree, pinfo, &ei_nlsp_short_packet, tvb, offset, -1,
			    "Short area address entry");
			return;
		}
		proto_tree_add_item(tree, hf_nlsp_area_address_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
		offset += 4;
		length -= 4;
	}
}