Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys




On Aug 6, 2007, at 9:06 PM, David Young wrote:


Module Name:    src
Committed By:   dyoung
Date:           Tue Aug  7 04:06:21 UTC 2007

Modified Files:
        src/sys/kern: uipc_domain.c
        src/sys/net: if_dl.h link_proto.c

Log Message:
Lengthen sockaddr_dl so that a 16-byte FireWire address will fit
into sdl_data[].

Um, are there any ABI issues we have to worry about here?



Move the macro satocsdl() to net/if_dl.h, and introduce satosdl().

Add some helpers for initializing sockaddr_dl (sockaddr_dl_init),
for finding out the length to put in a sockaddr_dl's sdl_len member
(sockaddr_dl_measure), and for setting the link-layer address in
a sockaddr_dl to a new value (sockaddr_dl_setaddr).

Make sockaddr_copy() panic if the caller tries to copy a sockaddr
to a destination where it will not fit.


To generate a diff of this commit:
cvs rdiff -r1.67 -r1.68 src/sys/kern/uipc_domain.c
cvs rdiff -r1.18 -r1.19 src/sys/net/if_dl.h
cvs rdiff -r1.1 -r1.2 src/sys/net/link_proto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

-- thorpej




Home | Main Index | Thread Index | Old Index