Home | History | Annotate | Download | only in sboot

Lines Matching refs:iph

115 	iph->ip_v = IP_VERSION;
116 iph->ip_hl = IP_HLEN;
117 iph->ip_tos = 0; /* type of service is 0 */
118 iph->ip_id = 0; /* id field is 0 */
119 iph->ip_off = IP_DF;
120 iph->ip_ttl = 3; /* time to live is 3 seconds/hops */
121 iph->ip_p = IPP_UDP;
122 memcpy(iph->ip_src, myip, sizeof(myip));
123 memcpy(iph->ip_dst, servip, sizeof(servip));
124 iph->ip_sum = 0;
125 iph->ip_len = tot - (u_char *)iph;
126 res = oc_cksum(iph, sizeof(struct ip), 0);
127 iph->ip_sum = 0xffff & ~res;
175 (iph->ip_p != IPP_UDP)) {