Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF-Simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-AMF-Simple
Commits
fad14f4c
Commit
fad14f4c
authored
Mar 02, 2021
by
luhan Wang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.opensource5g.org/openxg/amf
parents
acfbd900
ace3b58a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
3 deletions
+66
-3
code_format.sh
code_format.sh
+64
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+1
-3
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+1
-0
No files found.
code_format.sh
0 → 100755
View file @
fad14f4c
#!/bin/bash
#**************************************
License_name
=
"/home/root1/desktop/license.txt"
paper
=
1
str
=
'\n'
#**************************************
until
[
-z
"
$1
"
]
do
case
"
$1
"
in
-p
|
--file-path-name
)
echo
"waiting......."
filelist
=
`
find
$2
-iname
"*.cpp"
-o
-iname
"*.hpp"
-o
-iname
"*.c"
-o
-iname
"*.h"
`
for
filename
in
$filelist
;
do
if
grep
-q
"OpenAirInterface"
$filename
then
echo
"There's already license in
$filename
"
else
paper
=
1
cat
$License_name
|while
read
LINE
do
if
[
-z
"
$LINE
"
]
then
sed
-i
"
${
paper
}
i
\\
$str
"
$filename
else
sed
-i
"
${
paper
}
i
\\
$LINE
"
$filename
fi
paper
=
`
expr
$paper
+ 1
`
done
echo
"add license successfully to
$filename
"
fi
clang-format
-style
=
Google
-i
$filename
done
echo
"clang-format and add license successfully"
break
;;
-f
|
--file-name
)
echo
"file name is
$2
"
if
grep
-q
"OpenAirInterface"
$2
then
echo
"There's already license in
$2
"
else
cat
$License_name
|while
read
LINE
do
if
[
-z
"
$LINE
"
]
then
sed
-i
"
${
paper
}
i
\\
$str
"
$2
else
sed
-i
"
${
paper
}
i
\\
$LINE
"
$2
fi
paper
=
`
expr
$paper
+ 1
`
done
echo
"add license successfully to
$2
"
fi
clang-format
-style
=
Google
-i
$2
echo
"clang-format and add license successfully"
break
;;
*
)
echo
"unknown option
$1
"
break
;;
esac
done
src/amf-app/amf_n1.cpp
View file @
fad14f4c
...
@@ -1183,9 +1183,7 @@ void amf_n1::curl_http_client(
...
@@ -1183,9 +1183,7 @@ void amf_n1::curl_http_client(
curl_easy_setopt
(
curl
,
CURLOPT_HTTPGET
,
1
);
curl_easy_setopt
(
curl
,
CURLOPT_HTTPGET
,
1
);
curl_easy_setopt
(
curl
,
CURLOPT_TIMEOUT_MS
,
CURL_TIMEOUT_MS
);
curl_easy_setopt
(
curl
,
CURLOPT_TIMEOUT_MS
,
CURL_TIMEOUT_MS
);
curl_easy_setopt
(
curl
,
CURLOPT_TCP_KEEPALIVE
,
1
);
curl_easy_setopt
(
curl
,
CURLOPT_TCP_KEEPALIVE
,
1
);
curl_easy_setopt
(
curl
,
CURLOPT_INTERFACE
,
"ens33"
);
curl_easy_setopt
(
curl
,
CURLOPT_INTERFACE
,
amf_cfg
.
nausf
.
if_name
.
c_str
());
// Logger::amf_n1().info("[CURL] request sent by interface " +
// udm_cfg.nudr.if_name);
// Response information.
// Response information.
long
httpCode
=
{
0
};
long
httpCode
=
{
0
};
...
...
src/amf-app/amf_n11.cpp
View file @
fad14f4c
...
@@ -566,6 +566,7 @@ void amf_n11::curl_http_client(
...
@@ -566,6 +566,7 @@ void amf_n11::curl_http_client(
// free curl before returning
// free curl before returning
curl_slist_free_all
(
headers
);
curl_slist_free_all
(
headers
);
curl_easy_cleanup
(
curl
);
curl_easy_cleanup
(
curl
);
psc
.
get
()
->
smf_context_location
=
"/nsmf-pdusession/v2/sm-contexts/1"
;
//try to fix bugs for no-response from SMF when requesting /nsmf-pdusession/v2/sm-contexts (first pdu session establishment request)
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment