函 数 名 : DHCP_SendPacket
功能描述 : 发送报文
输入参数 :
(输入的参数类型统一为小写,对应的参数值区分大小写)
-sendtype 发送的端口,可以输入: uni / nni / cni / uni2 / nni2 / cni2
---用户侧1--网络侧1--级联侧1--用户侧2--网络侧2--级联侧2--
-packet 发送的报文信息,包含参数: -msgtype / -eth(必选) / -ip(必选) / -udp(必选) / -bootp(可选) / -options(必选) / -addneedoptions /
---报文类型------以太头-----ip头---------udp头-------bootp头-------各种option--------是否添加默认的option------
-msgtype 报文类型,可以输入:discover/request/offer/decline/ack/nak/release/inform/forcerenew
-eth 以太头信息,包含参数:-srcmac(必选) / -dstmac(必选) / -vlanlist(可选)
---源mac地址---------目的mac地址----------vlan信息----
功能描述 : 发送报文
输入参数 :
(输入的参数类型统一为小写,对应的参数值区分大小写)
-sendtype 发送的端口,可以输入: uni / nni / cni / uni2 / nni2 / cni2
---用户侧1--网络侧1--级联侧1--用户侧2--网络侧2--级联侧2--
-packet 发送的报文信息,包含参数: -msgtype / -eth(必选) / -ip(必选) / -udp(必选) / -bootp(可选) / -options(必选) / -addneedoptions /
---报文类型------以太头-----ip头---------udp头-------bootp头-------各种option--------是否添加默认的option------
-msgtype 报文类型,可以输入:discover/request/offer/decline/ack/nak/release/inform/forcerenew
-eth 以太头信息,包含参数:-srcmac(必选) / -dstmac(必选) / -vlanlist(可选)
---源mac地址---------目的mac地址----------vlan信息----