Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2009 10:59:00 +0000 (UTC)
From:      Hartmut Brandt <harti@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186935 - head/sys/netinet
Message-ID:  <200901091059.n09Ax0f8054487@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: harti
Date: Fri Jan  9 10:58:59 2009
New Revision: 186935
URL: http://svn.freebsd.org/changeset/base/186935

Log:
  Set a minimum of information in the routing message (like version and type)
  so that generic routing message parsing code can parse the messages for
  L2 info that are retrieved via the sysctl interface.

Modified:
  head/sys/netinet/in.c

Modified: head/sys/netinet/in.c
==============================================================================
--- head/sys/netinet/in.c	Fri Jan  9 10:55:33 2009	(r186934)
+++ head/sys/netinet/in.c	Fri Jan  9 10:58:59 2009	(r186935)
@@ -1201,6 +1201,10 @@ in_lltable_dump(struct lltable *llt, str
 			 */
 			bzero(&arpc, sizeof(arpc));
 			arpc.rtm.rtm_msglen = sizeof(arpc);
+			arpc.rtm.rtm_version = RTM_VERSION;
+			arpc.rtm.rtm_type = RTM_GET;
+			arpc.rtm.rtm_flags = RTF_UP;
+			arpc.rtm.rtm_addrs = RTA_DST | RTA_GATEWAY;
 			arpc.sin.sin_family = AF_INET;
 			arpc.sin.sin_len = sizeof(arpc.sin);
 			arpc.sin.sin_addr.s_addr = SIN(lle)->sin_addr.s_addr;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901091059.n09Ax0f8054487>