Subject: misc/21849: request to reflect reality.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <maekawa@daemon-systems.org>
List: netbsd-bugs
Date: 06/11/2003 02:51:53
>Number:         21849
>Category:       misc
>Synopsis:       request to reflect reality.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 11 02:52:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     MAEKAWA Masahide
>Release:        1.6T
>Organization:
>Environment:
NetBSD astaroth.daemon-systems.org 1.6T NetBSD 1.6T (ASTAROTH) #0: Fri Jun  6 12:50:11 JST 2003  maekawa@lucifer.daemon-systems.org:/usr/src/sys/arch/i386/compile/ASTAROTH i386
>Description:
(sys/socket.h)
struct msghdr {
        void            *msg_name;      /* optional address */
        socklen_t       msg_namelen;    /* size of address */
        struct iovec    *msg_iov;       /* scatter/gather array */
        int             msg_iovlen;     /* # elements in msg_iov */
        void            *msg_control;   /* ancillary data, see below */
        socklen_t       msg_controllen; /* ancillary data buffer len */
        int             msg_flags;      /* flags on received message */
};

struct cmsghdr {
        socklen_t       cmsg_len;       /* data byte count, including hdr */
        int             cmsg_level;     /* originating protocol */
        int             cmsg_type;      /* protocol-specific type */
/* followed by  u_char  cmsg_data[]; */
};

(recv(2))
struct msghdr {
             caddr_t msg_name;       /* optional address */
             u_int   msg_namelen;    /* size of address */
             struct  iovec *msg_iov; /* scatter/gather array */
             u_int   msg_iovlen;     /* # elements in msg_iov */
             caddr_t msg_control;    /* ancillary data, see below */
             u_int   msg_controllen; /* ancillary data buffer len */
             int     msg_flags;      /* flags on received message */
};

struct cmsghdr {
             u_int   cmsg_len;       /* data byte count, including hdr */
             int     cmsg_level;     /* originating protocol */
             int     cmsg_type;      /* protocol-specific type */
     /* followed by
             u_char  cmsg_data[]; */
};
>How-To-Repeat:
% less sys/socket.h
% man 2 recv

(compare the descriptions of msghdr and cmsghdr)
>Fix:
will be fixed the problems if wizd(8) is running.
>Release-Note:
>Audit-Trail:
>Unformatted: