Lines Matching defs:ip
18 #include <lwip/ip.h>
139 * @brief queries the current ip setting of the machine
164 DEBUG_ERR(err, "cannot get static ip record\n");
168 uint64_t ip, nm, gw;
169 err = oct_read(record, "_" NET_CONFIG_IP_RECORD_FIELDS, &ip, &gw, &nm);
171 DEBUG_ERR(err, "cannot read current ip record '%s\n", record);
178 ipaddr.s_addr = (uint32_t)ip;
181 *ip_address = (uint32_t)ip;
192 * @brief queries the static ip setting of the machine and sets it
214 DEBUG_ERR(err, "cannot get static ip record\n");
218 uint64_t ip, nm, gw;
219 err = oct_read(record, "_" NET_CONFIG_IP_RECORD_FIELDS, &ip, &gw, &nm);
221 DEBUG_ERR(err, "cannot read static ip record '%s\n", record);
228 ipaddr.s_addr = (uint32_t)ip;
238 DEBUG_ERR(err, "cannot set static ip\n");
249 * @param ip return the IP address
255 errval_t netif_get_ipconfig(struct in_addr *ip, struct in_addr *gw, struct in_addr *nm)
258 if (ip) {
259 ip->s_addr = netif_ip4_addr(&st->netif)->addr;
276 * @param ip the IP address
282 errval_t netif_set_ipconfig(struct in_addr *ip, struct in_addr *gw, struct in_addr *nm)
295 _ipaddr.addr = ip->s_addr;