Lines Matching refs:hip
51 struct hippi_hdr *hip = (struct hippi_hdr *)skb_push(skb, HIPPI_HLEN); in hippi_header() local
63 hip->fp.fixed = htonl(0x04800018); in hippi_header()
64 hip->fp.d2_size = htonl(len + 8); in hippi_header()
65 hip->le.fc = 0; in hippi_header()
66 hip->le.double_wide = 0; /* only HIPPI 800 for the time being */ in hippi_header()
67 hip->le.message_type = 0; /* Data PDU */ in hippi_header()
69 hip->le.dest_addr_type = 2; /* 12 bit SC address */ in hippi_header()
70 hip->le.src_addr_type = 2; /* 12 bit SC address */ in hippi_header()
72 memcpy(hip->le.src_switch_addr, dev->dev_addr + 3, 3); in hippi_header()
73 memset(&hip->le.reserved, 0, 16); in hippi_header()
75 hip->snap.dsap = HIPPI_EXTENDED_SAP; in hippi_header()
76 hip->snap.ssap = HIPPI_EXTENDED_SAP; in hippi_header()
77 hip->snap.ctrl = HIPPI_UI_CMD; in hippi_header()
78 hip->snap.oui[0] = 0x00; in hippi_header()
79 hip->snap.oui[1] = 0x00; in hippi_header()
80 hip->snap.oui[2] = 0x00; in hippi_header()
81 hip->snap.ethertype = htons(type); in hippi_header()
85 memcpy(hip->le.dest_switch_addr, daddr + 3, 3); in hippi_header()
101 struct hippi_hdr *hip = (struct hippi_hdr *)skb->data; in hippi_rebuild_header() local
107 if(hip->snap.ethertype != htons(ETH_P_IP)) in hippi_rebuild_header()
109 …printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethe… in hippi_rebuild_header()
117 return arp_find(hip->le.daddr, skb); in hippi_rebuild_header()
127 struct hippi_hdr *hip; in hippi_type_trans() local
135 hip = (struct hippi_hdr *)skb_mac_header(skb); in hippi_type_trans()
142 return hip->snap.ethertype; in hippi_type_trans()