This reverts commit
02ae906bb691c8b342d7ff0875e200ce55c18f2a. Turns out
Pulse doesn't *accept* ESP frames with the correct Next-Header field
for IPv6. You have to send 0x04 (IPIP). So I cleaned it up and removed
the duplication for nothing...
Might need to put this back when we work out how GPST does IPv6.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
for (i=0; i<padlen; i++)
pkt->data[pkt->len + i] = i + 1;
pkt->data[pkt->len + padlen] = padlen;
- if ((pkt->data[0] & 0xf0) == 0x60) /* iph->ip_v */
- pkt->data[pkt->len + padlen + 1] = 0x29; /* IPv6 */
- else
- pkt->data[pkt->len + padlen + 1] = 0x04; /* Legacy IP */
+ pkt->data[pkt->len + padlen + 1] = 0x04; /* Legacy IP */
memcpy(pkt->esp.iv, vpninfo->esp_out.iv, sizeof(pkt->esp.iv));