Home | History | Annotate | Download | only in shill

Lines Matching refs:protocol

51 // | Format of hardware address (ether)| Format of Protocol Address (IP)   |
53 // | Hardware Length | Protocol Length | ARP Protocol OpCode |
61 // | Sender IP Address (of length "Protocol Length")... |
65 // | Target IP Address (of length "Protocol Length")... |
83 const uint16_t protocol = ntohs(header.ar_pro);
85 if (protocol == ETHERTYPE_IP) {
87 } else if (protocol == ETHERTYPE_IPV6) {
90 NOTIMPLEMENTED() << "Packet has unknown protocol "
91 << protocol;
101 LOG(ERROR) << "Packet has unexpected protocol address length "
143 uint16_t protocol;
146 protocol = ETHERTYPE_IP;
148 protocol = ETHERTYPE_IPV6;
165 header.ar_pro = htons(protocol);