Marcel Moolenaar
cf0d539f8b
Use the LLINDEX macro to access the link-level I/F index. This makes
...
it possible to work with a different type for the sdl_index field --
it only requires a recompile.
Obtained from: Juniper Networks, Inc.
2012-05-19 02:39:43 +00:00
Eitan Adler
e44d947d5a
When searching for uninitialized memory usage add ensure that the entire
...
struct is set to zero.
PR: bin/166483
Submitted by: Roy Marples <roy@marples.name>
Reviewed by: delphij
Approved by: cperciva
MFC after: 3 days
2012-04-15 23:56:03 +00:00
Jacques Vidrine
d05090827f
Back out the `hiding' of strlcpy and strlcat. Several people
...
vocally objected to this safety belt.
2003-05-01 19:03:14 +00:00
Jacques Vidrine
5723e501ab
`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference
...
technique) so that we don't wind up calling into an application's
version if the application defines them.
Inspired by: qpopper's interfering and buggy version of strlcpy
2003-04-29 21:13:50 +00:00
Jacques Vidrine
e0554a531f
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
...
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Reviewed by: /sbin/md5
2003-02-16 17:29:11 +00:00
Hajimu UMEMOTO
c86d6b6cb7
try SIOCGIFINDEX 1st to be able to use network aliasing.
...
Submitted by: jlemon
Approved by: re
2002-11-28 17:46:40 +00:00
Hajimu UMEMOTO
8071d8d70d
Use BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()
...
and if_freenameindex().
Obtained from: KAME
MFC after: 2 weeks
2002-07-15 19:58:56 +00:00