summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_string.go')
-rw-r--r--dhcpv4/option_string.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpv4/option_string.go b/dhcpv4/option_string.go
index 289319b..eb0cc2b 100644
--- a/dhcpv4/option_string.go
+++ b/dhcpv4/option_string.go
@@ -77,3 +77,8 @@ func OptClassIdentifier(name string) Option {
func OptUserClass(name string) Option {
return Option{Code: OptionUserClassInformation, Value: String(name)}
}
+
+// OptMessage returns a new DHCPv4 (Error) Message option.
+func OptMessage(msg string) Option {
+ return Option{Code: OptionMessage, Value: String(msg)}
+}