freebsd-dev/usr.sbin/bsnmpd
Bjoern A. Zeeb a245531a29 bridge_snmp.h
* Change the API of bridge_get_basemac to take a maximum buffer length.

bridge_if.c
* Adopt to new API.
* In bridge_attach_newif() remove an additional pointer to the buffer
  by shuffling the code a bit. Also makes the code more readable.

bridge_sys.c
* bridge_get_basemac():
  - Adopt to the new API.
  - Change check for error code of getifaddrs().
  - First check for sa_family != AF_LINK.
  - Copy sockaddr_dl * to get around alignment constraints on some
    platforms.
  - Use strcmp instead of strncmp so that "foo11" != "foo1".
* other functions:
  - Allocate n times of the struct we need instead of arbitrary len,
    cast to the type we want it to be and pass around struct *s instead
    of char *s. This gets us around alignment restrictions on some
    platforms and in addition it is more clear what data is passed around.
  - Name variables for same types consistently.

Reviewed by:    syrinx
2006-12-29 19:23:38 +00:00
..
bsnmpd Make the generated oid.h dependend on the Makefile. The Makefile defines 2006-11-08 10:36:57 +00:00
gensnmptree Catch up with the import of bsnmp-1.11. Add a couple of new 2005-10-04 15:03:39 +00:00
modules bridge_snmp.h 2006-12-29 19:23:38 +00:00
Makefile Finish repo-copy of lib/libbsnmp/modules to usr.sbin/bsnmpd/modules. 2005-03-14 17:32:16 +00:00
Makefile.inc