View Single Post
  #7   (View Single Post)  
Old 15th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Whoo, ephemera used my alterations to the netstat code.

EDIT: While you're not likely to run into this yet, consider changing the size of the interface variable to IFNAMSIZ.
EDIT2: You're using OpenBSD, also consider using strlcpy/strlcat instead of strncpy/strncat..
EDIT3: I'm nagging now, ignore me.. -pedantic, anyway, consider making this daemon privsep, there shouldn't be a need to run this as root.

Last edited by BSDfan666; 15th June 2008 at 04:36 PM.
Reply With Quote