Date: Tue, 21 Jul 2009 20:44:43 GMT From: Ana Kukec <anchie@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 166383 for review Message-ID: <200907212044.n6LKihQ8093553@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=166383 Change 166383 by anchie@anchie_malimis on 2009/07/21 20:44:15 ND/SEND message is prepended to if_announcemsghdr. Affected files ... .. //depot/projects/soc2009/anchie_send/send_0.2/sendd/net.c#21 edit Differences ... ==== //depot/projects/soc2009/anchie_send/send_0.2/sendd/net.c#21 (text+ko) ==== @@ -35,6 +35,8 @@ #include <errno.h> #include <sys/types.h> #include <sys/socket.h> +#include <sys/param.h> +#include <sys/mbuf.h> #include <arpa/inet.h> #include <netinet/in.h> #include <net/route.h> @@ -168,6 +170,9 @@ rtm->rtm_addrs = 0; rtm->rtm_index = pi->ifinfo->ifidx; + if (rtm->rtm_flags & M_MCAST) + DBG(&dbg_snd, "M_MCAST!"); + if (send(sndsock, rtm, b->len, 0) < 0) { DBG(&dbg_snd, "Failed to send routing message back to kernel."); perror("Failed"); @@ -290,7 +295,10 @@ case RTM_SND_IN: applog(LOG_ERR, "RTM_SND_IN"); /* n = RTM hdr + SEND message */ +#if 0 if (sbuff_pull(b, sizeof (struct rt_msghdr)) == NULL) { +#endif + if (sbuff_pull(b, sizeof (struct if_announcemsghdr)) == NULL) { DBG(&dbg_snd, "invalid pkt (not enough for rtm hedaer"); goto done; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907212044.n6LKihQ8093553>