Lines Matching refs:answer
117 struct inet_protosw *answer; in inet6_create() local
124 answer = NULL; in inet6_create()
127 answer = list_entry(p, struct inet_protosw, list); in inet6_create()
130 if (protocol == answer->protocol) { in inet6_create()
136 protocol = answer->protocol; in inet6_create()
139 if (IPPROTO_IP == answer->protocol) in inet6_create()
142 answer = NULL; in inet6_create()
146 if (!answer) in inet6_create()
148 if (answer->capability > 0 && !capable(answer->capability)) in inet6_create()
153 sock->ops = answer->ops; in inet6_create()
156 sk->prot = answer->prot; in inet6_create()
157 sk->no_check = answer->no_check; in inet6_create()
158 if (INET_PROTOSW_REUSE & answer->flags) in inet6_create()
172 sk->backlog_rcv = answer->prot->backlog_rcv; in inet6_create()
568 struct inet_protosw *answer; in inet6_register_protosw() local
578 answer = NULL; in inet6_register_protosw()
581 answer = list_entry(lh, struct inet_protosw, list); in inet6_register_protosw()
584 if (INET_PROTOSW_PERMANENT & answer->flags) { in inet6_register_protosw()
585 if (protocol == answer->protocol) in inet6_register_protosw()
590 answer = NULL; in inet6_register_protosw()
592 if (answer) in inet6_register_protosw()