Home
last modified time | relevance | path

Searched refs:new_header (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/net/dsa/
Dtag_dsa.c131 u8 new_header[4]; in dsa_rcv() local
138 new_header[0] = (ETH_P_8021Q >> 8) & 0xff; in dsa_rcv()
139 new_header[1] = ETH_P_8021Q & 0xff; in dsa_rcv()
140 new_header[2] = dsa_header[2] & ~0x10; in dsa_rcv()
141 new_header[3] = dsa_header[3]; in dsa_rcv()
148 new_header[2] |= 0x10; in dsa_rcv()
155 c = csum_add(c, csum_partial(new_header + 2, 2, 0)); in dsa_rcv()
160 memcpy(dsa_header, new_header, DSA_HLEN); in dsa_rcv()
Dtag_edsa.c144 u8 new_header[4]; in edsa_rcv() local
151 new_header[0] = (ETH_P_8021Q >> 8) & 0xff; in edsa_rcv()
152 new_header[1] = ETH_P_8021Q & 0xff; in edsa_rcv()
153 new_header[2] = edsa_header[2] & ~0x10; in edsa_rcv()
154 new_header[3] = edsa_header[3]; in edsa_rcv()
161 new_header[2] |= 0x10; in edsa_rcv()
170 c = csum_add(c, csum_partial(new_header + 2, 2, 0)); in edsa_rcv()
175 memcpy(edsa_header, new_header, DSA_HLEN); in edsa_rcv()