gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:MERCD 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
92:         sd = so_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
93:         DEBUG_PRINT(("init_receiver: so_socket = %d(%d, %d)\n", sd, MERCD(sd), SERCD(sd)));
94: 
100: re = so_bind(sd, (struct sockaddr*)&s, sizeof s); 101: DEBUG_PRINT(("init_receiver: so_bind = %d(%d, %d)\n", re, MERCD(re), SERCD(re))); 102:
117: re = get_hwaddr(ifname, state->hwaddr); 118: DEBUG_PRINT(("init_state: get_hwaddr = %d(%d, %d)\n", re, MERCD(re), SERCD(re))); 119:
209: fd = so_bpfopen("/dev/bpf0", O_RDWR); 210: DEBUG_PRINT(("send_request: so_bpfopen = %d(%d, %d)\n", fd, MERCD(fd), SERCD(fd))); 211: re = so_ioctl(fd, BIOCSETIF, &ifr); 212: DEBUG_PRINT(("send_request: so_ioctl = %d(%d, %d)\n", re, MERCD(re), SERCD(re))); 213: re = so_write(fd, &p, sizeof p.eth + sizeof p.ip + udp_len); 214: DEBUG_PRINT(("send_request: so_write = %d(%d, %d)\n", re, MERCD(re), SERCD(re))); 215: so_close(fd);
232: re = so_select(server+1, &fds, NULL, NULL, &tv); 233: DEBUG_PRINT(("dhclient: so_select = %d(%d, %d)\n", re, MERCD(re), SERCD(re))); 234:
284: re = so_recvfrom(server, &offer, sizeof offer, 0, (struct sockaddr*)&ssa, &ssa_len); 285: DEBUG_PRINT(("dhclient: so_recvfrom = %d(%d, %d)\n", re, MERCD(re), SERCD(re))); 286: if ( re < 0 ) {
329: re = so_resctl(SO_RES_DEL_SERVER, &sa, sizeof sa); 330: DEBUG_PRINT(("setup: so_resctl(%s) = %d(%d, %d)\n", "delete", re, MERCD(re), SERCD(re))); 331:
339: a.s_addr = state->dns[i]; 340: DEBUG_PRINT(("setup: so_resctl(%s) = %d(%d, %d)\n", inet_ntop(AF_INET, &a, rbuf, sizeof(rbuf)), re, MERCD(re), SERCD(re))); 341: }
360: re = send_request(&state); 361: DEBUG_PRINT(("dhclient: [REQUEST:%d] = %d(%d, %d)\n", state.state, re, MERCD(re), SERCD(re))); 362: if ( re < 0 ) {