OpenVPN cleanups by mposch@gmail.com
Woops, don't include brigeX in interfaces assign screen.
Correct warnings and errors found eclipse
MFC get_interface_list() so that NGX and CARPX does not show up in assign interfaces
Do not unlink PID file, we may need it later.
Pointy-Hat-*2: me
Trim the contents when reading in
unlink pid file after kill operation
Use same exec() command when debugging
Use gzsig
Sync get_interface_list() with HEAD
Resolve alias value for rules
Try and prevent the error:Warning: in_array(): Wrong datatype for second argument in /etc/inc/util.inc on line 269
by definging $upints = array(); at the beginning of the function
Fix aliases
return $alias name
return $aliasname
Bugfix.
Remove debugging variable.
Trim one preg_grep() call.
More retooling of get_interface_list(): * We can return the list keyed with either physical or friendly names. * Trim shell calls to 3 for both "active" and "media" types.
Document return values
Return NULL if reserved word is matched (this wasn't a typo)
Merge and fix typo.
Add "media" and "active" arguments to get_interface_list.
Aargh, test before commit!!! smackFixing stupid non-cleaned up copy/paste
Correctly allow a true, false, undef return
Return -2 when a invalid alias name is detected
Fix comment.
Rewrite get_interface_list(). It now grabs a list of interface cloners instead of using a static list, makes fewer shell calls (more noticeable on systems with many interfaces), and does not use the preg engine.
(#458) create reserved word list - we'll stumble over more reserved words in the future
Filter pfsync
Ticket #340
Huh, how did this ever work...isarray->is_array
Check for an array
process ip addresses in addition to aliases
Do not process aliases if none are defined
Detect aliases correctyl
Instead of calling two functions before unlinking, just use @unlink().
Remove duplicate string.
Instead of making 10+ calls to str_replace(), use a single call + array.
remove trailing space
Various code cleanups and a few actual bugfixes courtesy of Zend
fix aliases
Add $Id$ tag
don't attempt to unlink directories
Missing )
Glob returns false. use the original parm
If glob does not return an array, deal with the single filename.
Back out wildcard handling in unlink_if_exists() until I can test it.
Make unlink_if_exists work with wildcards using a foreach and glob().
Update arp table before decide for a missing arp entry
Ignore pflog and plip interfaces.
Create a xml_safe_fieldname function which strips out all of the bad characters that could be associated with a xml fieldname.
Initial revision