gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:memcpy from t2ex/t2ex_source/kernel/sysmain/src/network_sample/dhclient.c (0.00 seconds)
t2ex
t2ex_source/kernel/sysmain/src/network_sample/dhclient.c - 13.2KB - 407 lines
173:         p.dhcp.yiaddr = state->yiaddr;
174:         memcpy(p.dhcp.chaddr, state->hwaddr, 6);
175:         p.dhcp.cookie = htonl(MAGIC_COOKIE);
187: i++; 188: memcpy(&p.dhcp.options[i], &state->yiaddr, sizeof(uint32_t)); 189: i += sizeof(uint32_t);
246: case DHO_SUBNETMASK: 247: memcpy(&state->mask, &offer->options[i+2], 4); 248: break;
250: case DHO_ROUTER: 251: memcpy(&state->gate, &offer->options[i+2], 4); 252: break;
254: case DHO_BROADCAST: 255: memcpy(&state->bcaddr, &offer->options[i+2], 4); 256: break;
258: case DHO_SERVERID: 259: memcpy(&state->dhcp_server, &offer->options[i+2], 4); 260: break;
262: case DHO_DNSSERVER: 263: memcpy(&state->dns[0], &offer->options[i+2], offer->options[i+1]); 264: break;