diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-11-18 12:22:50 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-11-18 12:22:50 +0000 |
commit | 7b7c507c614caf371b89ec608c8a87d4426df271 (patch) | |
tree | 21f476044df409268d2ee58945cb0b69acf26629 /security/vpnc/files/patch-tunip.c | |
parent | Remove duplicate port (lang/sdcc is already there). (diff) |
Update to 0.3.1:
- IPSec over UDP and NAT-T support
- added support for interactive authentication (security tokens for example)
- fixed IOS support
PR: ports/74040
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=121863
Diffstat (limited to 'security/vpnc/files/patch-tunip.c')
-rw-r--r-- | security/vpnc/files/patch-tunip.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/security/vpnc/files/patch-tunip.c b/security/vpnc/files/patch-tunip.c new file mode 100644 index 000000000000..20cf33701117 --- /dev/null +++ b/security/vpnc/files/patch-tunip.c @@ -0,0 +1,26 @@ +Index: tunip.c +=================================================================== +--- tunip.c (revision 35) ++++ tunip.c (working copy) +@@ -596,10 +596,6 @@ + /* Fill non-mutable fields */ + ip->ip_v = IPVERSION; + ip->ip_hl = 5; +- ip->ip_len = encap->buflen + (peer->remote_sa->md_algo? 12 :0); +-#ifdef NEED_IPLEN_FIX +- ip->ip_len = htons(ip->ip_len); +-#endif + /*gcry_md_get_algo_dlen(md_algo); see RFC .. only use 96 bit */ + ip->ip_id = htons(ip_id++); + ip->ip_p = IPPROTO_ESP; +@@ -614,6 +610,10 @@ + + encap_esp_encapsulate(encap, peer); + ++ ip->ip_len = encap->buflen; ++#ifdef NEED_IPLEN_FIX ++ ip->ip_len = htons(ip->ip_len); ++#endif + ip->ip_sum = in_cksum((u_short *) encap->buf, sizeof(struct ip)); + + sent = sendto(encap->fd, encap->buf, encap->buflen, 0, |