- printf("ES SA, index %u, ttl %u type %s (%u), spi %u, Tunnel %s > %s, length %u\n",
- EXTRACT_16BITS(&ih->sa_index),
- ih->ttl,
- tok2str(juniper_ipsec_type_values,"Unknown",ih->type),
- ih->type,
- EXTRACT_32BITS(&ih->spi),
- ipaddr_string(&ih->src_ip),
- ipaddr_string(&ih->dst_ip),
+ ND_PRINT("ES SA, index %u, ttl %u type %s (%u), spi %u, Tunnel %s > %s, length %u\n",
+ EXTRACT_BE_U_2(ih->sa_index),
+ EXTRACT_U_1(ih->ttl),
+ tok2str(juniper_ipsec_type_values,"Unknown",EXTRACT_U_1(ih->type)),
+ EXTRACT_U_1(ih->type),
+ EXTRACT_BE_U_4(ih->spi),
+ ipaddr_string(ndo, ih->src_ip),
+ ipaddr_string(ndo, ih->dst_ip),