return pairparsevalue(dst, src->vp_strvalue, 0);
}
+ if ((src->da->type == PW_TYPE_IFID) &&
+ (dst->da->type == PW_TYPE_INTEGER64)) {
+ memcpy(&dst->vp_integer64, &src->vp_ifid, sizeof(src->vp_ifid));
+ dst->vp_integer64 = htonll(dst->vp_integer64);
+ return 0;
+ }
+
if ((src->da->type == PW_TYPE_INTEGER64) &&
(dst->da->type == PW_TYPE_ETHERNET)) {
uint8_t array[8];
}
/*
+ * ifid to integer64 is OK
+ */
+ if ((c->data.map->lhs->tmpl_da->type == PW_TYPE_IFID) &&
+ (c->cast->type == PW_TYPE_INTEGER64)) {
+ goto cast_ok;
+ }
+
+ /*
* ipaddr to ipv4prefix is OK
*/
if ((c->data.map->lhs->tmpl_da->type == PW_TYPE_IPV4_ADDR) &&