Displaying 1 result from an estimated 1 matches for "4df5431".
Did you mean:
45431
2010 Apr 26
1
valgrind ipconfig work
...@ -43,6 +43,7 @@ static int netdev_sif_addr(struct ifreq *ifr, int cmd, uint32_t addr)
{
struct sockaddr_in sin;
+ memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = addr;
diff --git a/usr/kinit/ipconfig/packet.c b/usr/kinit/ipconfig/packet.c
index 508c7ba..4df5431 100644
--- a/usr/kinit/ipconfig/packet.c
+++ b/usr/kinit/ipconfig/packet.c
@@ -114,16 +114,18 @@ static char *ntoa(uint32_t addr)
int packet_send(struct netdev *dev, struct iovec *iov, int iov_len)
{
struct sockaddr_ll sll;
- struct msghdr msg = {
- .msg_name = &sll,
- .msg_namelen = size...