MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nd6_option_init

Function nd6_option_init

freebsd/netinet6/nd6.c:369–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void
370nd6_option_init(void *opt, int icmp6len, union nd_opts *ndopts)
371{
372
373 bzero(ndopts, sizeof(*ndopts));
374 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt;
375 ndopts->nd_opts_last
376 = (struct nd_opt_hdr *)(((u_char *)opt) + icmp6len);
377
378 if (icmp6len == 0) {
379 ndopts->nd_opts_done = 1;
380 ndopts->nd_opts_search = NULL;
381 }
382}
383
384/*
385 * Take one ND option.

Callers 5

nd6_ns_inputFunction · 0.85
nd6_na_inputFunction · 0.85
icmp6_redirect_inputFunction · 0.85
nd6_rs_inputFunction · 0.85
nd6_ra_inputFunction · 0.85

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected