<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div>in kernel linux-2.6.16.60-0.54.5 code:</div><div><br></div><div>static int inet_create(struct socket *sock, int protocol)</div><div>{</div><div>struct sock *sk;</div><div>struct inet_sock *inet;</div><div>....</div><div><br></div><div><div>sk = sk_alloc(PF_INET, GFP_KERNEL, answer_prot, 1);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (sk == NULL)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>goto out;</div></div><div><br></div><font class="Apple-style-span" color="#ff0000">inet = inet_sk(sk);</font><div><div>inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) == INET_PROTOSW_ICSK;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (SOCK_RAW == sock->type) {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>inet->num = protocol;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if (IPPROTO_RAW == protocol)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>inet->hdrincl = 1;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (ipv4_config.no_pmtu_disc)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>inet->pmtudisc = IP_PMTUDISC_DONT;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>else</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>inet->pmtudisc = IP_PMTUDISC_WANT;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>inet->id = 0;</div></div><div>....</div><div>}</div><div><br></div><div>my question is in the red line , why can convert like that?</div><div><br></div><div>thanks!</div>                                            </div></body>
</html>