Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2001 11:51:20 +1030
From:      Ian West <ian@niw.com.au>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: Results from RTM_GET on route socket ?
Message-ID:  <20011106115119.L34308@rose.niw.com.au>
In-Reply-To: <200111052156.fA5Lutl92439@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Mon, Nov 05, 2001 at 04:56:55PM -0500
References:  <20011106075451.E34308@rose.niw.com.au> <200111052156.fA5Lutl92439@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 05, 2001 at 04:56:55PM -0500, Garrett Wollman wrote:
> <<On Tue, 6 Nov 2001 07:54:51 +1030, Ian West <ian@niw.com.au> said:
> 
> > Starting at the * (Offset 5c, sizeof(struct rt_msghdr) I have 16 bytes
> > for RTA_DST, 16 bytes for RTA_GATEWAY, and then 4 null bytes.
> 
> The first null byte is the length of the netmask, indicating that you
> have a zero-length netmask, and the remaining three nulls are padding.
> 
> -GAWollman
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message

Thanks for that, makes sense :-) More questions though, the following is
a response to a request for 192.168.20.1. The response is a general
subnet route, how should I interpret the mask field ?  (It is actually
class C) I can't find a reference to a AF_ type for -1 or 255, but the
field is a bit small for a sockaddr_in.

0x0000: cc 00 05 04 02 00 00 00 43 08 01 00 37 00 00 00 L       C   7
0x0010: de 11 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ^
0x0020: 00 00 00 00 00 00 00 00 dc 05 00 00 00 00 00 00         \
0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0050: 00 00 00 00 00 00 00 00 00 00 00 00 10 02 00 00
0x0060: c0 a8 14 00 00 00 00 00 00 00 00 00 10 02 00 00 @(
0x0070: c0 a8 01 05 00 00 00 00 00 00 00 00 07 ff ff ff @(
0x0080: ff ff ff 00 38 12 02 00 06 03 06 00 64 63 30 00     8       dc0
0x0090: 80 c8 cd 23 fd 00 00 00 00 00 00 00 00 00 00 00  HM#}
0x00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00b0: 00 00 00 00 00 00 00 00 00 00 00 00 10 02 00 00
0x00c0: c0 a8 01 09 00 00 00 00 00 00 00 00 -- -- -- -- @(

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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