diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-09 13:29:16 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-09 13:29:16 +0000 |
commit | 303989a2f30ecfadc2b76022da579a61008b2951 (patch) | |
tree | 54d0f8642eec5f374a08d8a2b18c53a66b4ba269 /sys/net/if_stf.c | |
parent | 643d537fcd4d3d9d24c216f4bd63e11ef4078a97 (diff) |
Use sparse initializers for "struct domain" and "struct protosw",
so they are easier to follow for the human being.
Notes
Notes:
svn path=/head/; revision=152242
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r-- | sys/net/if_stf.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index a08291a8a9cb..9b0bfac40421 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -150,12 +150,15 @@ static MALLOC_DEFINE(M_STF, STFNAME, "6to4 Tunnel Interface"); static const int ip_stf_ttl = 40; extern struct domain inetdomain; -struct protosw in_stf_protosw = -{ SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR, - in_stf_input, (pr_output_t*)rip_output, 0, rip_ctloutput, - 0, - 0, 0, 0, 0, - &rip_usrreqs +struct protosw in_stf_protosw = { + .pr_type = SOCK_RAW, + .pr_domain = &inetdomain, + .pr_protocol = IPPROTO_IPV6, + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_input = in_stf_input, + .pr_output = (pr_output_t *)rip_output, + .pr_ctloutput = rip_ctloutput, + .pr_usrreqs = &rip_usrreqs }; static char *stfnames[] = {"stf0", "stf", "6to4", NULL}; |