search for: 508c7ba

Displaying 2 results from an estimated 2 matches for "508c7ba".

2010 Apr 26
1
valgrind ipconfig work
...etdev.c @@ -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_namel...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...n /home/maks/src/klibc-latest/usr/kinit/ipconfig/static/ipconfig.g) ==3319== by 0x5: ??? ==3319== Address 0x7fefffa22 is on thread 1's stack Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/kinit/ipconfig/packet.c b/usr/kinit/ipconfig/packet.c index 508c7ba..d242457 100644 --- a/usr/kinit/ipconfig/packet.c +++ b/usr/kinit/ipconfig/packet.c @@ -114,17 +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_namel...