README

mokomoking2501/profinet_master/dhcp does not have a README file

#
DhcpMessage

pub(all) struct DhcpMessage {
op : Int
htype : Int
hlen : Int
hops : Int
xid : Int
secs : Int
flags : Int
ciaddr : Int
yiaddr : Int
siaddr : Int
giaddr : Int
chaddr : Bytes
sname : Bytes
file : Bytes
options : Array[DhcpOption]
} derive(Eq,
Debug
)

DHCP message.

#
DhcpOption

pub(all) struct DhcpOption {
code : Int
data : Bytes
} derive(Eq,
Debug
)

A single DHCP option.

#
boot_reply

let boot_reply : Int

#
boot_request

let boot_request : Int

BOOTREQUEST / BOOTREPLY opcodes.

#
build_discover

fn build_discover(mac : Bytes, xid : Int, hostname? : String) -> DhcpMessage

Create a DHCP Discover message.

#
dhcp_client_port

let dhcp_client_port : Int

#
dhcp_server_port

let dhcp_server_port : Int

DHCP ports.

#
encode_dhcp_message

fn encode_dhcp_message(msg : DhcpMessage) -> Bytes

Encode a DHCP message to bytes.

#
format_dhcp_message

fn format_dhcp_message(msg : DhcpMessage) -> String

Format DHCP message summary.

#
get_message_type

fn get_message_type(msg : DhcpMessage) -> Int

Get the DHCP message type from options.
let magic_cookie : Int

DHCP magic cookie.

#
message_type_label

fn message_type_label(msg_type : Int) -> String

Get a human-readable label for a DHCP message type.

#
msg_ack

let msg_ack : Int

#
msg_decline

let msg_decline : Int

#
msg_discover

let msg_discover : Int

DHCP message types.

#
msg_inform

let msg_inform : Int

#
msg_nak

let msg_nak : Int

#
msg_offer

let msg_offer : Int

#
msg_release

let msg_release : Int

#
msg_request

let msg_request : Int

#
opt_client_id

let opt_client_id : Int

#
opt_dns

let opt_dns : Int

#
opt_end

let opt_end : Int

#
opt_hostname

let opt_hostname : Int

#
opt_lease_time

let opt_lease_time : Int

#
opt_message_type

let opt_message_type : Int

#
opt_param_request_list

let opt_param_request_list : Int

#
opt_requested_ip

let opt_requested_ip : Int

#
opt_router

let opt_router : Int

#
opt_server_id

let opt_server_id : Int

#
opt_subnet_mask

let opt_subnet_mask : Int

DHCP option codes.

#
opt_vendor_class_id

let opt_vendor_class_id : Int

#
parse_dhcp_message

fn parse_dhcp_message(data : Bytes) -> DhcpMessage raise
FrameError

Parse a DHCP message from bytes.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io