summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
2777ec7)
uword *u = hash_get (ip_main.protocol_info_by_name, "IPV6_FRAGMENTATION");
uword *u = hash_get (ip_main.protocol_info_by_name, "IPV6_FRAGMENTATION");
- ip_protocol_info_t *info = vec_elt_at_index (ip_main.protocol_infos, *u);
- ASSERT (NULL == info->format_header);
- info->format_header = format_ipv6_fragmentation;
+ if (u)
+ {
+ ip_protocol_info_t *info =
+ vec_elt_at_index (ip_main.protocol_infos, *u);
+ ASSERT (NULL == info->format_header);
+ info->format_header = format_ipv6_fragmentation;
+ }
return /* no error */ 0;
}
return /* no error */ 0;
}