Examples of ProtocolInt31HexField


Examples of org.hxzon.netprotocol.field.ProtocolInt31HexField

        return _hardwareType;
    }

    public ProtocolInt31HexField fetchProtocolType() {
        if (_protocolType == null) {
            _protocolType = new ProtocolInt31HexField("protocolType", "协议类型", 2, 2, true, this) {
                public String getValueAsString() {
                    if (getValue() == Ip4Packet.EthernetType_Ip4) {
                        return "IP地址";
                    }
                    return super.getValueAsString();
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolInt31HexField

        return new ProtocolField[] { fetchPriority(), fetchCfi(), fetchVlanId(), fetchType() };
    }

    public ProtocolInt31HexField fetchType() {
        if (_type == null) {
            _type = new ProtocolInt31HexField("type", "以太网类型", 2, 2, true, this);
        }
        return _type;
    }
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolInt31HexField

        return _destMac;
    }

    public ProtocolInt31HexField fetchType() {
        if (_type == null) {
            _type = new ProtocolInt31HexField("type", "以太网类型", 12, 2, true, this);
            if (VlanPacket.EthernetType_Vlan == _type.getValue()) {
                _type.setName("vlan");
            }
        }
        return _type;
View Full Code Here

Examples of org.hxzon.netprotocol.field.ProtocolInt31HexField

        return _hardwareType;
    }

    public ProtocolInt31HexField fetchProtocolType() {
        if (_protocolType == null) {
            _protocolType = new ProtocolInt31HexField("protocolType", "协议类型", 2, 2, true, this) {
                public String getValueAsString() {
                    if (getValue() == Ip4Packet.EthernetType_Ip4) {
                        return "IP地址";
                    }
                    return super.getValueAsString();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.