Displaying 3 results from an estimated 3 matches for "e203d0c".
2010 Apr 26
1
valgrind ipconfig work
...d values,
now:
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0
as bonus cleanup a 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 --gi...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...d bringup_one_dev(struct netdev *template, struct netdev *dev)
bringup_device(dev);
}
-static struct netdev *add_device(const char *info)
+static struct netdev *add_device(char *info)
{
struct netdev *dev;
int i;
diff --git a/usr/kinit/ipconfig/netdev.c b/usr/kinit/ipconfig/netdev.c
index e203d0c..de87f96 100644
--- a/usr/kinit/ipconfig/netdev.c
+++ b/usr/kinit/ipconfig/netdev.c
@@ -88,23 +88,44 @@ static void set_s_addr(struct sockaddr *saddr, uint32_t ipaddr)
memcpy(saddr, &sin, sizeof sin);
}
-int netdev_setdefaultroute(struct netdev *dev)
+int netdev_setroutes(struct netdev *de...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...=15636== Address 0x7fefffb02 is on thread 1's stack
==15636==
==15636== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
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;
commit 5...