tech-net archive

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

Re: should rt_msg1() zero rt_msghdr?



In article <874p8y86v9.fsf%orac.acorntoolworks.com@localhost>,
J.T. Conklin <jtc%acorntoolworks.com@localhost> wrote:
>While debugging a problem with routing socket messages, I noticed that
>messages contained random data in the rtm_seq, rtm_pid, and rtm_errno
>fields.
>
>In TCP/IP Illustrated, rt_msg1() contains a bzero() to clear rt_msghdr
>fields.  This bzero() is not present in NetBSD-4 (which I am using) or
>in the -current sources.  
>
>Should a memset() be added where the bzero() used to be?
>
>    --jtc
>
>-- 
>J.T. Conklin
>

Can you post a diff?

christos



Home | Main Index | Thread Index | Old Index