Diff of /trunk/mkinitrd-magellan/klibc/usr/kinit/ipconfig/bootp_proto.c
Parent Directory | Revision Log | Patch
revision 1296 by niro, Wed Aug 18 21:11:40 2010 UTC | revision 1297 by niro, Fri May 27 15:12:11 2011 UTC | |
---|---|---|
# | Line 169 int bootp_recv_reply(struct netdev *dev) | Line 169 int bootp_recv_reply(struct netdev *dev) |
169 | }; | }; |
170 | int ret; | int ret; |
171 | ||
172 | ret = packet_recv(iov, 3); | ret = packet_recv(dev, iov, 3); |
173 | if (ret <= 0) | if (ret <= 0) |
174 | return -1; | return ret; |
175 | ||
176 | if (ret < sizeof(struct bootp_hdr) || | if (ret < sizeof(struct bootp_hdr) || |
177 | bootp.op != BOOTP_REPLY || /* RFC951 7.5 */ | bootp.op != BOOTP_REPLY || /* RFC951 7.5 */ |
|