hsr_ethhdr
struct hsr_ethhdr *hsr_ethhdr,
set_hsr_tag_path(&hsr_ethhdr->hsr_tag, path_id);
struct hsr_ethhdr *hsr_ethhdr;
hsr_ethhdr = (struct hsr_ethhdr *)(pc + VLAN_HLEN);
hsr_ethhdr = (struct hsr_ethhdr *)pc;
hsr_set_path_id(frame, hsr_ethhdr, port);
set_hsr_tag_LSDU_size(&hsr_ethhdr->hsr_tag, lsdu_size);
hsr_ethhdr->hsr_tag.sequence_nr = htons(frame->sequence_nr);
hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto;
hsr_ethhdr->ethhdr.h_proto = htons(proto_version ?
skb->protocol = hsr_ethhdr->ethhdr.h_proto;
struct hsr_ethhdr *hsr_ethhdr =
(struct hsr_ethhdr *)skb_mac_header(frame->skb_hsr);
hsr_set_path_id(frame, hsr_ethhdr, port);
if (skb->mac_len < sizeof(struct hsr_ethhdr))
if (skb->mac_len < sizeof(struct hsr_ethhdr))
struct hsr_ethhdr *hsr_ethhdr;
hsr_ethhdr = (struct hsr_ethhdr *)skb_mac_header(skb);
return ntohs(hsr_ethhdr->hsr_tag.sequence_nr);