continuous-integration/drone/push Build is passing
- Rename driver.intf.serial -> driver.io.serial (intf/ -> io/) - Move net protocols to driver.net.proto.* (net/ -> net/proto/) - arp, dhcp, eth2, icmp, ipv4, tcp, udp - Move netdev to driver.net.dev.* (netdev/ -> net/dev/) - e1000 - Move driver.net.pas into driver/net/ - Move driver.video.pas into driver/video/ - Rename arch.x86.faults -> arch.x86.fault, move to fault/ dir - Move driver.storage.ctl.ahci.pas into ctl/ahci/ - Move driver.storage.ctl.ide.pas into ctl/ide/ - Move linker.script and version to toolchain/ - Update all unit references and namespace doc 35 files changed, 237 insertions(+), 234 deletions(-)
43 lines
1.2 KiB
ObjectPascal
43 lines
1.2 KiB
ObjectPascal
// Copyright 2021 Kieron Morris
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
{
|
|
Prog->DHClient - DHCP Configuration Management.
|
|
|
|
@author(Kieron Morris <[email protected]>)
|
|
}
|
|
unit app.dhclient;
|
|
|
|
interface
|
|
|
|
uses
|
|
io.stdio, core.util, arch.x86.util, core.strings, debug.tracer, driver.net.proto.dhcp;
|
|
|
|
procedure init();
|
|
|
|
implementation
|
|
|
|
procedure run(Params : PParamList; stdin_buf, stdout_buf, stderr_buf : POutBuf);
|
|
begin
|
|
debug.tracer.push_trace('dhclient.run');
|
|
DHCPDiscover();
|
|
end;
|
|
|
|
procedure init();
|
|
begin
|
|
debug.tracer.push_trace('dhclient.init');
|
|
io.stdio.registerCommand('DHClient', @Run, 'Run the DHCP configuration utility.');
|
|
end;
|
|
|
|
end. |