pub async fn force_ip(
mac: [u8; 6],
ip: Ipv4Addr,
subnet: Ipv4Addr,
gateway: Ipv4Addr,
iface: Option<&Iface>,
) -> Result<(), GigeError>Expand description
Send a FORCEIP command to temporarily assign an IP address to a device.
FORCEIP is a broadcast command that targets a device by its MAC address.
The assigned IP is temporary — it does not survive a power cycle. Use
GigeDevice::write_persistent_ip + GigeDevice::enable_persistent_ip
for permanent configuration.
FORCEIP payload layout (56 bytes, big-endian):
[0..2] reserved
[2..8] target MAC address (6 bytes)
[8..20] reserved
[20..24] static IP address
[24..36] reserved
[36..40] subnet mask
[40..52] reserved
[52..56] gateway