search for: netdev_sif_addr

Displaying 2 results from an estimated 2 matches for "netdev_sif_addr".

2010 Apr 26
1
valgrind ipconfig work
...bit coding style of packet_send(). Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/kinit/ipconfig/netdev.c b/usr/kinit/ipconfig/netdev.c index 6e3014f..e203d0c 100644 --- a/usr/kinit/ipconfig/netdev.c +++ b/usr/kinit/ipconfig/netdev.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/pac...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...c] add getrusage() maximilian attems (6): [klibc] resume: silence warning on resume try [klibc] bootp_packet.h minor stylistic fix [klibc] fstype: list the includes in alphabetic order [klibc] ipconfig: packet_send() fix uninitialized valgrind errors [klibc] valgrind: netdev_sif_addr fix unitialized valgrind error [klibc] x86_64: MMCONFIG cleanup vestige from pre x86 merge git diff -M --stat --summary master...maks scripts/Kbuild.klibc | 3 +- usr/include/sys/resource.h | 2 + usr/include/sys/socket.h | 80 +++++++++++++++++++++++++...