开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
master
分支 (99)
标签 (392)
master
v4_1_esv
uname-n
227-remove-client-and-relay
231-final-release-of-4-4-3
relnotes-review
229-4-4-2-final-release-notes
223-dhcrelay-giaddr
226-docs-trivial-type-in-dhcpd-conf-5
226-docs-trivial-typo-in-dhcpd-conf-5-manpage
pemensik/dhcp-ldap-gssapi-principal
225-dev-guide-atf-ubuntu21.04
experiments/dug2
91-makej-fix
release-checklist
v4_4
release-4-4-3
221-relnotes-update-4.4.3
76-add-a-version-of-dhcpctl_wait_completion-that-accepts-a-timeout
148-omshell-fails-when-using-sha512-256-as-the-option
v4_4_3
v4_4_3b1
v4_1_esv_r16_p1
v4_4_2_p1
list
v4_4_2_f1
v4_1_esv_r16
v4_4_2
v4_1_esv_r16b1_f1
v4_4_2b1_f2
v4_4_2b1_f1
v4_1_esv_r16b1
v4_4_2b1
v4_4_1_f1
v4_3_6_p1_f1
v4_4_1
v4_3_6_p1_f0
v4_1_esv_r15_p1_f0
v4_4_0_f1
v4_4_0
master
分支 (99)
标签 (392)
master
v4_1_esv
uname-n
227-remove-client-and-relay
231-final-release-of-4-4-3
relnotes-review
229-4-4-2-final-release-notes
223-dhcrelay-giaddr
226-docs-trivial-type-in-dhcpd-conf-5
226-docs-trivial-typo-in-dhcpd-conf-5-manpage
pemensik/dhcp-ldap-gssapi-principal
225-dev-guide-atf-ubuntu21.04
experiments/dug2
91-makej-fix
release-checklist
v4_4
release-4-4-3
221-relnotes-update-4.4.3
76-add-a-version-of-dhcpctl_wait_completion-that-accepts-a-timeout
148-omshell-fails-when-using-sha512-256-as-the-option
v4_4_3
v4_4_3b1
v4_1_esv_r16_p1
v4_4_2_p1
list
v4_4_2_f1
v4_1_esv_r16
v4_4_2
v4_1_esv_r16b1_f1
v4_4_2b1_f2
v4_4_2b1_f1
v4_1_esv_r16b1
v4_4_2b1
v4_4_1_f1
v4_3_6_p1_f1
v4_4_1
v4_3_6_p1_f0
v4_1_esv_r15_p1_f0
v4_4_0_f1
v4_4_0
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (99)
标签 (392)
master
v4_1_esv
uname-n
227-remove-client-and-relay
231-final-release-of-4-4-3
relnotes-review
229-4-4-2-final-release-notes
223-dhcrelay-giaddr
226-docs-trivial-type-in-dhcpd-conf-5
226-docs-trivial-typo-in-dhcpd-conf-5-manpage
pemensik/dhcp-ldap-gssapi-principal
225-dev-guide-atf-ubuntu21.04
experiments/dug2
91-makej-fix
release-checklist
v4_4
release-4-4-3
221-relnotes-update-4.4.3
76-add-a-version-of-dhcpctl_wait_completion-that-accepts-a-timeout
148-omshell-fails-when-using-sha512-256-as-the-option
v4_4_3
v4_4_3b1
v4_1_esv_r16_p1
v4_4_2_p1
list
v4_4_2_f1
v4_1_esv_r16
v4_4_2
v4_1_esv_r16b1_f1
v4_4_2b1_f2
v4_4_2b1_f1
v4_1_esv_r16b1
v4_4_2b1
v4_4_1_f1
v4_3_6_p1_f1
v4_4_1
v4_3_6_p1_f0
v4_1_esv_r15_p1_f0
v4_4_0_f1
v4_4_0
dhcp
/
tests
/
DHCPv6
贡献代码
同步代码
对比差异 通过 Pull Request 同步
同步更新到分支
通过 Pull Request 同步
将会在向当前分支创建一个 Pull
Request,合入后将完成同步
File empty ...
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
In order to test the DHCPv6 server, we have a configuration file with
known values, and some Perl scripts designed to send and receive
DHCPv6 packets to check various code paths.
It is not complete test converage by any means, but it should be
fairly easy to add additional tests as needed.
The scripts themselves are not very well written. There is a lot of
copied code, poor error handling, and so on. These should be rewritten
at some point.
To use, the DHCPv6 server must be running in test mode to send back to
the originating port. (The scripts can be changed to bind to the
appropriate client port, but they don't now, and have to run as root
to do this). In server/dhcpv6.c, look for this comment:
/* For testing, we reply to the sending port, so we don't need a root */
/* client */
		to_addr.sin6_port = remote_port;
/*		to_addr.sin6_port = packet->client_port;*/
And change the code to use the client_port value.
You will need to modify one of the test configuration files to use one 
of the physical subnets that your machine uses, in the subnet6 
statement.
Then run the server as root, in debug mode:
# touch /tmp/test.leases
# dhcpd -6 -cf test-a.conf -lf /tmp/test.leases -d
You can invoke the scripts then:
$ perl 000-badmsgtype.pl
The expected results vary per script, depending on the behavior that
is being tested.
Notes about scripts:
In order to manipulate IPv6 addresses, we need the Socket6 library,
available from CPAN:
http://search.cpan.org/~umemoto/Socket6-0.19/Socket6.pm
The Perl that Sun issues for Solaris 10 is compiled with the Sun
compiler. If you have the Sun compiler, then this will work fine.
Otherwise you may need to install Perl from source.
We need to get the hardware address in order to build DUID properly.
The IO::Interface module reports hardware address, but not on Solaris
10 it seems. Rather than do this the "right way", we do it the "Perl
way", and hack it. "ifconfig" does return the Ethernet address, but
only to the root user. However, we can look for files of the name
/etc/hostname.*, get the IP address from "ifconfig", and then check
for those addresses in the ARP table.
Client DUID is supposed to be an opaque value to the server, but we go
ahead and make a "real" type 1 or type 3 DUID.
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

fork from https://gitlab.isc.org/isc-projects/dhcp
暂无标签
README
MPL-2.0
使用 MPL-2.0 开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/source-code-sync/dhcp.git
git@gitee.com:source-code-sync/dhcp.git
source-code-sync
dhcp
dhcp
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /