Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
ca2443b2
Commit
ca2443b2
authored
Sep 06, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: shorten a long symbolic name
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ca26578f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
10 deletions
+10
-10
constants.h
include/ppsi/constants.h
+1
-1
ieee1588_types.h
include/ppsi/ieee1588_types.h
+1
-1
common-fun.c
proto-standard/common-fun.c
+1
-1
msg.c
proto-standard/msg.c
+3
-3
state-listening.c
proto-standard/state-listening.c
+1
-1
state-master.c
proto-standard/state-master.c
+1
-1
state-passive.c
proto-standard/state-passive.c
+1
-1
state-slave.c
proto-standard/state-slave.c
+1
-1
No files found.
include/ppsi/constants.h
View file @
ca2443b2
...
...
@@ -76,7 +76,7 @@ enum pp_timeouts {
#define PP_DELAY_REQ_LENGTH 44
#define PP_DELAY_RESP_LENGTH 54
#define PP_PDELAY_RESP_LENGTH 54
#define PP_PDELAY_R
ESP_FOLLOW_UP_LENGTH
54
#define PP_PDELAY_R
_FUP_LENGTH
54
#define PP_MANAGEMENT_LENGTH 48
#define PP_MINIMUM_LENGTH 44
...
...
include/ppsi/ieee1588_types.h
View file @
ca2443b2
...
...
@@ -301,7 +301,7 @@ enum pp_std_messages {
PPM_PDELAY_RESP
,
PPM_FOLLOW_UP
=
0x8
,
PPM_DELAY_RESP
,
PPM_PDELAY_R
ESP_FOLLOW_
UP
,
PPM_PDELAY_R
_F
UP
,
PPM_ANNOUNCE
,
PPM_SIGNALING
,
PPM_MANAGEMENT
,
...
...
proto-standard/common-fun.c
View file @
ca2443b2
...
...
@@ -253,7 +253,7 @@ int st_com_peer_handle_pres_followup(struct pp_instance *ppi,
int
e
=
0
;
TimeInternal
tmp
;
if
(
plen
<
PP_PDELAY_R
ESP_FOLLOW_
UP_LENGTH
)
if
(
plen
<
PP_PDELAY_R
_F
UP_LENGTH
)
/* Ignore */
return
e
;
...
...
proto-standard/msg.c
View file @
ca2443b2
...
...
@@ -520,7 +520,7 @@ const char const *pp_msg_names[16] = {
[
PPM_FOLLOW_UP
]
=
"follow_up"
,
[
PPM_DELAY_RESP
]
=
"delay_resp"
,
[
PPM_PDELAY_R
ESP_FOLLOW_UP
]
=
"pdelay_resp_follow_up"
,
[
PPM_PDELAY_R
_FUP
]
=
"pdelay_resp_follow_up"
,
[
PPM_ANNOUNCE
]
=
"announce"
,
[
PPM_SIGNALING
]
=
"signaling"
,
[
PPM_MANAGEMENT
]
=
"management"
,
...
...
@@ -567,8 +567,8 @@ int msg_issue_pdelay_resp_followup(struct pp_instance *ppi, TimeInternal * time)
msg_pack_pdelay_resp_follow_up
(
ppi
,
&
ppi
->
received_ptp_header
,
&
prec_orig_tstamp
);
return
__send_and_log
(
ppi
,
PP_PDELAY_R
ESP_FOLLOW_
UP_LENGTH
,
PPM_PDELAY_R
ESP_FOLLOW_
UP
,
PP_NP_GEN
);
return
__send_and_log
(
ppi
,
PP_PDELAY_R
_F
UP_LENGTH
,
PPM_PDELAY_R
_F
UP
,
PP_NP_GEN
);
}
/* Pack and send on event multicast ip adress a DelayReq message */
...
...
proto-standard/state-listening.c
View file @
ca2443b2
...
...
@@ -43,7 +43,7 @@ int pp_listening(struct pp_instance *ppi, unsigned char *pkt, int plen)
e
=
st_com_peer_handle_pres
(
ppi
,
pkt
,
plen
);
break
;
case
PPM_PDELAY_R
ESP_FOLLOW_
UP
:
case
PPM_PDELAY_R
_F
UP
:
e
=
st_com_peer_handle_pres_followup
(
ppi
,
pkt
,
plen
);
break
;
...
...
proto-standard/state-master.c
View file @
ca2443b2
...
...
@@ -83,7 +83,7 @@ static int _pp_master(struct pp_instance *ppi, uint8_t *pkt, int plen, int pre)
e
=
st_com_peer_handle_pres
(
ppi
,
pkt
,
plen
);
break
;
case
PPM_PDELAY_R
ESP_FOLLOW_
UP
:
case
PPM_PDELAY_R
_F
UP
:
e
=
st_com_peer_handle_pres_followup
(
ppi
,
pkt
,
plen
);
break
;
...
...
proto-standard/state-passive.c
View file @
ca2443b2
...
...
@@ -38,7 +38,7 @@ int pp_passive(struct pp_instance *ppi, unsigned char *pkt, int plen)
e
=
st_com_peer_handle_pres
(
ppi
,
pkt
,
plen
);
break
;
case
PPM_PDELAY_R
ESP_FOLLOW_
UP
:
case
PPM_PDELAY_R
_F
UP
:
e
=
st_com_peer_handle_pres_followup
(
ppi
,
pkt
,
plen
);
break
;
...
...
proto-standard/state-slave.c
View file @
ca2443b2
...
...
@@ -99,7 +99,7 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
e
=
st_com_peer_handle_pres
(
ppi
,
pkt
,
plen
);
break
;
case
PPM_PDELAY_R
ESP_FOLLOW_
UP
:
case
PPM_PDELAY_R
_F
UP
:
e
=
st_com_peer_handle_pres_followup
(
ppi
,
pkt
,
plen
);
break
;
...
...
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