@@ -1337,16 +1337,18 @@ static const field_descriptor descriptors_in6_pktinfo[] = {
1337
1337
{0 }
1338
1338
};
1339
1339
1340
- static const field_descriptor descriptors_in6_hbh [] = {
1340
+ #if defined(IPV6_HOPOPTS )
1341
+ static const field_descriptor descriptors_ip6_hbh [] = {
1341
1342
{"nxt" , sizeof ("nxt" ), true, offsetof(struct ip6_hbh , ip6h_nxt ), from_zval_write_uint8 , to_zval_read_uint8 },
1342
1343
{"len" , sizeof ("len" ), true, offsetof(struct ip6_hbh , ip6h_len ), from_zval_write_uint8 , to_zval_read_uint8 },
1343
1344
{0 }
1344
1345
};
1345
- static const field_descriptor descriptors_in6_dest [] = {
1346
+ static const field_descriptor descriptors_ip6_dest [] = {
1346
1347
{"nxt" , sizeof ("nxt" ), true, offsetof(struct ip6_dest , ip6d_nxt ), from_zval_write_uint8 , to_zval_read_uint8 },
1347
1348
{"len" , sizeof ("len" ), true, offsetof(struct ip6_dest , ip6d_len ), from_zval_write_uint8 , to_zval_read_uint8 },
1348
1349
{0 }
1349
1350
};
1351
+ #endif
1350
1352
1351
1353
void from_zval_write_in6_pktinfo (const zval * container , char * in6_pktinfo_c , ser_context * ctx )
1352
1354
{
@@ -1359,30 +1361,32 @@ void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx)
1359
1361
to_zval_read_aggregation (data , zv , descriptors_in6_pktinfo , ctx );
1360
1362
}
1361
1363
1364
+ #if defined(IPV6_HOPOPTS )
1362
1365
void from_zval_write_ip6_hbh (const zval * container , char * in6_hbh_c , ser_context * ctx )
1363
1366
{
1364
- from_zval_write_aggregation (container , in6_hbh_c , descriptors_in6_hbh , ctx );
1367
+ from_zval_write_aggregation (container , in6_hbh_c , descriptors_ip6_hbh , ctx );
1365
1368
}
1366
1369
1367
1370
void to_zval_read_ip6_hbh (const char * data , zval * zv , res_context * ctx )
1368
1371
{
1369
1372
array_init_size (zv , 2 );
1370
1373
1371
- to_zval_read_aggregation (data , zv , descriptors_in6_hbh , ctx );
1374
+ to_zval_read_aggregation (data , zv , descriptors_ip6_hbh , ctx );
1372
1375
}
1373
1376
1374
1377
void from_zval_write_ip6_dest (const zval * container , char * in6_dest_c , ser_context * ctx )
1375
1378
{
1376
- from_zval_write_aggregation (container , in6_dest_c , descriptors_in6_dest , ctx );
1379
+ from_zval_write_aggregation (container , in6_dest_c , descriptors_ip6_dest , ctx );
1377
1380
}
1378
1381
1379
1382
void to_zval_read_ip6_dest (const char * data , zval * zv , res_context * ctx )
1380
1383
{
1381
1384
array_init_size (zv , 2 );
1382
1385
1383
- to_zval_read_aggregation (data , zv , descriptors_in6_dest , ctx );
1386
+ to_zval_read_aggregation (data , zv , descriptors_ip6_dest , ctx );
1384
1387
}
1385
1388
#endif
1389
+ #endif
1386
1390
1387
1391
/* CONVERSIONS for struct ucred */
1388
1392
#if defined(SO_PASSCRED ) || defined(LOCAL_CREDS_PERSISTENT ) || defined(LOCAL_CREDS )
0 commit comments