+pd_prefix() {
+ #Generate prefix sub-option to be included in PD option of DHCPv6
+
+ option_id=26
+ lifetime_preferred='\x00\x00\x01\x2C'
+ lifetime_valid='\x00\x00\x01\x2C'
+
+ prefix_length='64'
+ #prefix = 16 octets:
+ prefix='\x20\x01\x06\x7c\x21\x90\x1a\x01''\x00\x00\x00\x00\x00\x00\x00\x00'
+
+ prefix_length_hex=$(dec_to_hex $prefix_length)
+
+ #echo $prefix_length_hex
+ dhcp_option $option_id "$lifetime_preferred$lifetime_valid$prefix_length_hex$prefix"
+}
+