aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-22 13:52:09 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-22 13:52:09 +0100
commit77ae19ceac3f845e4074999e7c1e0c2cd46f85c7 (patch)
treed2d8734d302d6e97b7dfe087b34f4ccfd4957298
parent6a209998cd6c19d770a4b9b28e94901f9521c4de (diff)
always request SolMaxRt and InfMaxRt options
-rw-r--r--src/main.rs28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 6042ba0..01f622e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -355,7 +355,12 @@ async fn do_send_dhcp6(dhcp6: &mut Dhcp6, sock: &UdpSocket, packet: Packet) -> R
opts.insert(DhcpOption::ClientId(dhcp6.duid.as_ref().to_vec()));
opts.insert(DhcpOption::RapidCommit);
opts.insert(DhcpOption::ORO(ORO {
- opts: vec![OptionCode::AftrName, OptionCode::DomainNameServers],
+ opts: vec![
+ OptionCode::SolMaxRt,
+ OptionCode::InfMaxRt,
+ OptionCode::AftrName,
+ OptionCode::DomainNameServers,
+ ],
}));
opts.insert(DhcpOption::IAPD(IAPD {
id: 1,
@@ -395,7 +400,12 @@ async fn do_send_dhcp6(dhcp6: &mut Dhcp6, sock: &UdpSocket, packet: Packet) -> R
opts.insert(DhcpOption::ClientId(dhcp6.duid.as_ref().to_vec()));
opts.insert(DhcpOption::ServerId(dhcp6.server_id.clone()));
opts.insert(DhcpOption::ORO(ORO {
- opts: vec![OptionCode::AftrName, OptionCode::DomainNameServers],
+ opts: vec![
+ OptionCode::SolMaxRt,
+ OptionCode::InfMaxRt,
+ OptionCode::AftrName,
+ OptionCode::DomainNameServers,
+ ],
}));
opts.insert(DhcpOption::IAPD(IAPD {
id: 1,
@@ -435,7 +445,12 @@ async fn do_send_dhcp6(dhcp6: &mut Dhcp6, sock: &UdpSocket, packet: Packet) -> R
opts.insert(DhcpOption::ClientId(dhcp6.duid.as_ref().to_vec()));
opts.insert(DhcpOption::ServerId(dhcp6.server_id.clone()));
opts.insert(DhcpOption::ORO(ORO {
- opts: vec![OptionCode::AftrName, OptionCode::DomainNameServers],
+ opts: vec![
+ OptionCode::SolMaxRt,
+ OptionCode::InfMaxRt,
+ OptionCode::AftrName,
+ OptionCode::DomainNameServers,
+ ],
}));
opts.insert(DhcpOption::IAPD(IAPD {
id: 1,
@@ -474,7 +489,12 @@ async fn do_send_dhcp6(dhcp6: &mut Dhcp6, sock: &UdpSocket, packet: Packet) -> R
opts.insert(DhcpOption::ClientId(dhcp6.duid.as_ref().to_vec()));
opts.insert(DhcpOption::ORO(ORO {
- opts: vec![OptionCode::AftrName, OptionCode::DomainNameServers],
+ opts: vec![
+ OptionCode::SolMaxRt,
+ OptionCode::InfMaxRt,
+ OptionCode::AftrName,
+ OptionCode::DomainNameServers,
+ ],
}));
opts.insert(DhcpOption::IAPD(IAPD {
id: 1,