| version 1.134.2.1, 2005/04/28 10:49:13 |
version 1.134.2.2, 2005/04/28 10:53:40 |
| Line 1464 udp4_espinudp(m, off, src, so) |
|
| Line 1464 udp4_espinudp(m, off, src, so) |
|
| * to select the right SPD for multiple hosts behind |
* to select the right SPD for multiple hosts behind |
| * same NAT |
* same NAT |
| */ |
*/ |
| tag = m_tag_get(PACKET_TAG_IPSEC_NAT_T_PORTS, |
if ((tag = m_tag_get(PACKET_TAG_IPSEC_NAT_T_PORTS, |
| sizeof(sport) + sizeof(dport), M_WAITOK); |
sizeof(sport) + sizeof(dport), M_DONTWAIT)) == NULL) { |
| |
printf("udp4_espinudp: m_tag_get failed\n"); |
| |
return 0; |
| |
} |
| ((u_int16_t *)(tag + 1))[0] = sport; |
((u_int16_t *)(tag + 1))[0] = sport; |
| ((u_int16_t *)(tag + 1))[1] = dport; |
((u_int16_t *)(tag + 1))[1] = dport; |
| m_tag_prepend(n, tag); |
m_tag_prepend(n, tag); |