tech-net archive

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

should rt_msg1() zero rt_msghdr?



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


Home | Main Index | Thread Index | Old Index