• Home
  • Raw
  • Download

Lines Matching refs:s_addr

301     *oip = ntohl(ip->sin_addr.s_addr);  in get_interface()
514 if (res->ipaddr.s_addr) { in fill_envp()
515 temp.s_addr = htonl(res->ipaddr.s_addr); in fill_envp()
638 addr.sin_addr.s_addr = INADDR_ANY ; in mode_app()
783 cli.sin_addr.s_addr = state->pdhcp.ciaddr; in send_app()
791 cli.sin_addr.s_addr = state->serverid.s_addr; in send_app()
873 memcpy(optptr, &serverid->s_addr, 4); in dhcpc_addserverid()
882 memcpy(optptr, &ipaddr->s_addr, 4); in dhcpc_addreqipaddr()
953 state->serverid.s_addr = var; in get_option_serverid()
954 presult->serverid.s_addr = state->serverid.s_addr; in get_option_serverid()
955 presult->serverid.s_addr = ntohl(presult->serverid.s_addr); in get_option_serverid()
1024 if (state->status == STATE_RENEWING) memcpy(&state->pdhcp.ciaddr, &state->ipaddr.s_addr, 4); in dhcpc_sendmsg()
1026 rqsd.s_addr = htonl(server); in dhcpc_sendmsg()
1037 memcpy(&state->pdhcp.ciaddr, &state->ipaddr.s_addr, 4); in dhcpc_sendmsg()
1038 rqsd.s_addr = htonl(server); in dhcpc_sendmsg()
1126 addr.s_addr = convtmp; in dhcpc_parseoptions()
1141 addr.s_addr = convtmp; in dhcpc_parseoptions()
1199 memcpy(&presult->ipaddr.s_addr, &state->pdhcp.yiaddr, 4); in dhcpc_parsemsg()
1200 presult->ipaddr.s_addr = ntohl(presult->ipaddr.s_addr); in dhcpc_parsemsg()
1239 temp_addr.s_addr = htonl(server); in release()
1241 temp_addr.s_addr = state->ipaddr.s_addr; in release()
1366 memcpy(&state->ipaddr.s_addr,&state->pdhcp.yiaddr, 4); in dhcp_main()
1369 …(result.ipaddr.s_addr >> 24) & 0xff, (result.ipaddr.s_addr >> 16) & 0xff, (result.ipaddr.s_addr >>… in dhcp_main()
1457 if (msgType != DHCPNAK && result.ipaddr.s_addr == 0 ) continue; // no ip for me ignore in dhcp_main()
1459 if (msgType == DHCPOFFER && server == 0) server = result.serverid.s_addr; // select the server in dhcp_main()
1460 if (result.serverid.s_addr != server) continue; // not from the server we requested ignore in dhcp_main()
1483 …(result.ipaddr.s_addr >> 24) & 0xff, (result.ipaddr.s_addr >> 16) & 0xff, (result.ipaddr.s_addr >>… in dhcp_main()
1485 …esult.serverid.s_addr >> 24) & 0xff, (result.serverid.s_addr >> 16) & 0xff, (result.serverid.s_add… in dhcp_main()
1505 state->ipaddr.s_addr = 0; in dhcp_main()