40 #ifndef included_ip6_input_h 41 #define included_ip6_input_h 65 error0 = error1 = IP6_ERROR_NONE;
71 6 ? IP6_ERROR_VERSION : error0;
75 6 ? IP6_ERROR_VERSION : error1;
81 error0 = ip0->
hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error0;
82 error1 = ip1->
hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error1;
86 p0->
current_length <
sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0;
88 p1->
current_length <
sizeof (ip1[0]) ? IP6_ERROR_TOO_SHORT : error1;
92 if (error0 == IP6_ERROR_TIME_EXPIRED)
95 ICMP6_time_exceeded_ttl_exceeded_in_transit,
106 if (error1 == IP6_ERROR_TIME_EXPIRED)
109 ICMP6_time_exceeded_ttl_exceeded_in_transit,
127 error0 = IP6_ERROR_NONE;
131 (clib_net_to_host_u32
133 6 ? IP6_ERROR_VERSION : error0;
139 error0 = ip0->
hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error0;
143 p0->
current_length <
sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0;
147 if (error0 == IP6_ERROR_TIME_EXPIRED)
150 ICMP6_time_exceeded_ttl_exceeded_in_transit,
void icmp6_error_set_vnet_buffer(vlib_buffer_t *b, u8 type, u8 code, u32 data)
u16 current_length
Nbytes between current data and the end of this buffer.