• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ipsec-tools/0001-susv3-legacy.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
1
Replaces sysv3 legacy functions with modern equivalents.
2
​
3
Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
4
Index: ipsec-tools-0.7.3/src/racoon/pfkey.c
5
===================================================================
6
--- ipsec-tools-0.7.3.orig/src/racoon/pfkey.c   2010-07-12 14:46:52.000000000 +0200
7
+++ ipsec-tools-0.7.3/src/racoon/pfkey.c    2010-07-12 15:01:39.000000000 +0200
8
@@ -3008,12 +3008,12 @@
9
                struct sockaddr *paddr;
10
 
11
                paddr = (struct sockaddr *)(xisr + 1);
12
-               bcopy(paddr, &(*p_isr)->saidx.src,
13
+               memmove(&(*p_isr)->saidx.src, paddr,
14
                    sysdep_sa_len(paddr));
15
 
16
                paddr = (struct sockaddr *)((caddr_t)paddr
17
                            + sysdep_sa_len(paddr));
18
-               bcopy(paddr, &(*p_isr)->saidx.dst,
19
+               memmove(&(*p_isr)->saidx.dst, paddr,
20
                    sysdep_sa_len(paddr));
21
            }
22
 
23
Index: ipsec-tools-0.7.3/src/racoon/racoonctl.c
24
===================================================================
25
--- ipsec-tools-0.7.3.orig/src/racoon/racoonctl.c   2010-07-12 14:49:51.000000000 +0200
26
+++ ipsec-tools-0.7.3/src/racoon/racoonctl.c    2010-07-12 15:00:52.000000000 +0200
27
@@ -785,7 +785,7 @@
28
        errx(1, "cannot read source address");
29
 
30
    /* We get "ip[port]" strip the port */
31
-   if ((idx = index(srcaddr, '[')) == NULL) 
32
+   if ((idx = strchr(srcaddr, '[')) == NULL)
33
        errx(1, "unexpected source address format");
34
    *idx = '\0';
35
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.