/* Description: Process a user generated PROTOCOLS message and respond accordingly.  */
static int netlbl_mgmt_protocols(struct sk_buff *skb, struct netlink_callback *cb)
/* Description: Process a user generated PROTOCOLS message and respond accordingly.  */
static int netlbl_mgmt_protocols(struct sk_buff *skb, struct netlink_callback *cb)
{
	u32 protos_sent = cb->args[0];
	if (protos_sent == 0) {
		if (netlbl_mgmt_protocols_cb(skb,
					     cb,
					     NETLBL_NLTYPE_UNLABELED) < 0)
			goto protocols_return;
		protos_sent++;
	}
	if (protos_sent == 1) {
		if (netlbl_mgmt_protocols_cb(skb,
					     cb,
					     NETLBL_NLTYPE_CIPSOV4) < 0)
			goto protocols_return;
		protos_sent++;
	}
protocols_return:
	cb->args[0] = protos_sent;
	return skb->len;
}