@@ -1337,16 +1337,18 @@ static const field_descriptor descriptors_in6_pktinfo[] = {
13371337 {0 }
13381338};
13391339
1340- static const field_descriptor descriptors_in6_hbh [] = {
1340+ #if defined(IPV6_HOPOPTS )
1341+ static const field_descriptor descriptors_ip6_hbh [] = {
13411342 {"nxt" , sizeof ("nxt" ), true, offsetof(struct ip6_hbh , ip6h_nxt ), from_zval_write_uint8 , to_zval_read_uint8 },
13421343 {"len" , sizeof ("len" ), true, offsetof(struct ip6_hbh , ip6h_len ), from_zval_write_uint8 , to_zval_read_uint8 },
13431344 {0 }
13441345};
1345- static const field_descriptor descriptors_in6_dest [] = {
1346+ static const field_descriptor descriptors_ip6_dest [] = {
13461347 {"nxt" , sizeof ("nxt" ), true, offsetof(struct ip6_dest , ip6d_nxt ), from_zval_write_uint8 , to_zval_read_uint8 },
13471348 {"len" , sizeof ("len" ), true, offsetof(struct ip6_dest , ip6d_len ), from_zval_write_uint8 , to_zval_read_uint8 },
13481349 {0 }
13491350};
1351+ #endif
13501352
13511353void from_zval_write_in6_pktinfo (const zval * container , char * in6_pktinfo_c , ser_context * ctx )
13521354{
@@ -1359,30 +1361,32 @@ void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx)
13591361 to_zval_read_aggregation (data , zv , descriptors_in6_pktinfo , ctx );
13601362}
13611363
1364+ #if defined(IPV6_HOPOPTS )
13621365void from_zval_write_ip6_hbh (const zval * container , char * in6_hbh_c , ser_context * ctx )
13631366{
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 );
13651368}
13661369
13671370void to_zval_read_ip6_hbh (const char * data , zval * zv , res_context * ctx )
13681371{
13691372 array_init_size (zv , 2 );
13701373
1371- to_zval_read_aggregation (data , zv , descriptors_in6_hbh , ctx );
1374+ to_zval_read_aggregation (data , zv , descriptors_ip6_hbh , ctx );
13721375}
13731376
13741377void from_zval_write_ip6_dest (const zval * container , char * in6_dest_c , ser_context * ctx )
13751378{
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 );
13771380}
13781381
13791382void to_zval_read_ip6_dest (const char * data , zval * zv , res_context * ctx )
13801383{
13811384 array_init_size (zv , 2 );
13821385
1383- to_zval_read_aggregation (data , zv , descriptors_in6_dest , ctx );
1386+ to_zval_read_aggregation (data , zv , descriptors_ip6_dest , ctx );
13841387}
13851388#endif
1389+ #endif
13861390
13871391/* CONVERSIONS for struct ucred */
13881392#if defined(SO_PASSCRED ) || defined(LOCAL_CREDS_PERSISTENT ) || defined(LOCAL_CREDS )
0 commit comments