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

Function ip6_initpktopts

freebsd/netinet6/ip6_output.c:2541–2550  ·  view source on GitHub ↗

* initialize ip6_pktopts. beware that there are non-zero default values in * the struct. */

Source from the content-addressed store, hash-verified

2539 * the struct.
2540 */
2541void
2542ip6_initpktopts(struct ip6_pktopts *opt)
2543{
2544
2545 bzero(opt, sizeof(*opt));
2546 opt->ip6po_hlim = -1; /* -1 means default hop limit */
2547 opt->ip6po_tclass = -1; /* -1 means default traffic class */
2548 opt->ip6po_minmtu = IP6PO_MINMTU_MCASTONLY;
2549 opt->ip6po_prefer_tempaddr = IP6PO_TEMPADDR_SYSTEM;
2550}
2551
2552static int
2553ip6_pcbopt(int optname, u_char *buf, int len, struct ip6_pktopts **pktopt,

Callers 4

mld_initFunction · 0.85
ip6_pcboptFunction · 0.85
ip6_copypktoptsFunction · 0.85
ip6_setpktoptsFunction · 0.85

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected