git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dhcp: Make dhcp_option_to_string() act sensibly with null or empty options.
[sliver-openvswitch.git]
/
debian
/
ofp-switch-setup
diff --git
a/debian/ofp-switch-setup
b/debian/ofp-switch-setup
index
275ddfc
..
aa318d7
100755
(executable)
--- a/
debian/ofp-switch-setup
+++ b/
debian/ofp-switch-setup
@@
-122,6
+122,8
@@
my (@states) =
$value =~ s/\\([0-7][0-7][0-7])/chr($1)/ge;
} else {
$value =~ s/^(0x[[:xdigit:]]+)$/hex($1)/e;
+ $value = '' if $value eq 'empty';
+ next if $value eq 'null'; # Shouldn't happen.
}
$options{$name} = $value;
}