Lines Matching full:protocol
68 open_socket(struct interface *iface, int protocol)
80 if ((s = socket(PF_PACKET, SOCK_DGRAM, htons(protocol))) == -1)
85 su.sll.sll_protocol = htons(protocol);
92 if (protocol == ETHERTYPE_ARP) {
107 if (protocol == ETHERTYPE_ARP)
122 send_raw_packet(const struct interface *iface, int protocol,
134 su.sll.sll_protocol = htons(protocol);
146 if (protocol == ETHERTYPE_ARP)
155 get_raw_packet(struct interface *iface, int protocol, void *data, ssize_t len)
160 if (protocol == ETHERTYPE_ARP)