Lines Matching refs:protocol
68 open_socket(struct interface *iface, int protocol)
83 if ((s = socket(PF_PACKET, SOCK_DGRAM, htons(protocol))) == -1)
88 su.sll.sll_protocol = htons(protocol);
95 if (protocol == ETHERTYPE_ARP) {
117 if (protocol == ETHERTYPE_ARP)
132 send_raw_packet(const struct interface *iface, int protocol,
144 su.sll.sll_protocol = htons(protocol);
156 if (protocol == ETHERTYPE_ARP)
165 get_raw_packet(struct interface *iface, int protocol,
190 if (protocol == ETHERTYPE_ARP)