version 1.136, 2005/04/23 14:05:28 |
version 1.137, 2005/04/25 20:37:06 |
Line 1456 udp4_espinudp(m, off, src, so) |
|
Line 1456 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); |