Lines Matching refs:msg
88 dhcp_msg_t msg; in dhcp_discover() member
94 s.msg.opcode = DHCP_REQUEST; in dhcp_discover()
95 s.msg.hwtype = HW_ETHERNET; in dhcp_discover()
96 s.msg.hwalen = 6; in dhcp_discover()
97 s.msg.xid = xid; in dhcp_discover()
98 s.msg.cookie = 0x63538263; in dhcp_discover()
99 minip_get_macaddr(s.msg.chaddr); in dhcp_discover()
115 udp_send(&s.msg, sizeof(dhcp_msg_t) + (opt - s.opt), dhcp_udp_handle); in dhcp_discover()
116 status_t ret = udp_send(&s.msg, sizeof(dhcp_msg_t) + (opt - s.opt), dhcp_udp_handle); in dhcp_discover()
124 dhcp_msg_t msg; in dhcp_request() member
130 s.msg.opcode = DHCP_REQUEST; in dhcp_request()
131 s.msg.hwtype = HW_ETHERNET; in dhcp_request()
132 s.msg.hwalen = 6; in dhcp_request()
133 s.msg.xid = xid; in dhcp_request()
134 s.msg.cookie = 0x63538263; in dhcp_request()
135 minip_get_macaddr(s.msg.chaddr); in dhcp_request()
161 status_t ret = udp_send(&s.msg, sizeof(dhcp_msg_t) + (opt - s.opt), dhcp_udp_handle); in dhcp_request()
168 dhcp_msg_t *msg = data; in dhcp_cb() local
178 if (memcmp(msg->chaddr, mac, 6)) return; in dhcp_cb()
181 printf("dhcp op=%d len=%d from p=%d ip=", msg->opcode, sz, srcport); in dhcp_cb()
190 printip("ciaddr", msg->ciaddr); in dhcp_cb()
191 printip("yiaddr", msg->yiaddr); in dhcp_cb()
192 printip("siaddr", msg->siaddr); in dhcp_cb()
193 printip("giaddr", msg->giaddr); in dhcp_cb()
195 msg->chaddr[0], msg->chaddr[1], msg->chaddr[2], in dhcp_cb()
196 msg->chaddr[3], msg->chaddr[4], msg->chaddr[5]); in dhcp_cb()
199 opt = msg->options; in dhcp_cb()
240 printip("dhcp: offer:", msg->yiaddr); in dhcp_cb()
242 dhcp_request(0xaabbccdd, server, msg->yiaddr); in dhcp_cb()
248 printip("dhcp: ack:", msg->yiaddr); in dhcp_cb()
249 minip_set_ipaddr(msg->yiaddr); in dhcp_cb()