Feature #9523 ยป pfsense-ladvd-description.diff
| ladvd.inc 2019-05-12 15:01:38.631199000 +0000 | ||
|---|---|---|
| 85 | 85 |
$cmdline .= "-N "; |
| 86 | 86 |
} |
| 87 | 87 | |
| 88 |
if (!empty($ladvd_conf['hostname_portdescription'])) {
|
|
| 89 |
$cmdline .= "-y "; |
|
| 90 |
} |
|
| 91 | ||
| 92 |
if (!empty($ladvd_conf['hostname_portname'])) {
|
|
| 93 |
$cmdline .= "-z "; |
|
| 94 |
} |
|
| 95 | ||
| 88 | 96 |
$ifaces = explode(",", $ladvd_conf['iface_array']);
|
| 89 | 97 |
$ifs = array(); |
| 90 | 98 |
foreach ($ifaces as $if) {
|
| 91 |
-- /home/jason/ladvd.xml 2019-05-12 14:56:57.502756000 +0000
|
|
| 99 |
++ ladvd.xml 2019-05-12 15:00:59.424280000 +0000
|
|
| ... | ... | |
| 127 | 127 |
<description>Enable NDP (Nortel Discovery Protocol); formerly called SynOptics Network Management Protocol (SONMP).</description> |
| 128 | 128 |
<type>checkbox</type> |
| 129 | 129 |
</field> |
| 130 |
<field> |
|
| 131 |
<fielddescr>Set description with peer hostname/port description</fielddescr> |
|
| 132 |
<fieldname>hostname_portdescription</fieldname> |
|
| 133 |
<description>Save received peer hostname and port description in interface descriptions (requires SIOCSIFDESCR support) or Linux ifAliases. This also enables receive mode.</description> |
|
| 134 |
<type>checkbox</type> |
|
| 135 |
</field> |
|
| 136 |
<field> |
|
| 137 |
<fielddescr>Set description with peer hostname/port name</fielddescr> |
|
| 138 |
<fieldname>hostname_portname</fieldname> |
|
| 139 |
<description>Save received peer hostname and port name in interface descriptions (requires SIOCSIFDESCR support) or Linux ifAliases. This also enables receive mode.</description> |
|
| 140 |
<type>checkbox</type> |
|
| 141 |
</field> |
|
| 130 | 142 |
</fields> |
| 131 | 143 |
<custom_php_resync_config_command>ladvd_resync_config();</custom_php_resync_config_command> |
| 132 | 144 |
</packagegui> |