Skip to content

Commit

Permalink
[core] Fixed SRTO_SNDDROPDELAY: use POST restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Apr 12, 2021
1 parent e63edad commit 009b7b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/socketoptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const SocketOption srt_options [] {
{ "latency", 0, SRTO_LATENCY, SocketOption::PRE, SocketOption::INT, nullptr},
{ "tsbpdmode", 0, SRTO_TSBPDMODE, SocketOption::PRE, SocketOption::BOOL, nullptr},
{ "tlpktdrop", 0, SRTO_TLPKTDROP, SocketOption::PRE, SocketOption::BOOL, nullptr},
{ "snddropdelay", 0, SRTO_SNDDROPDELAY, SocketOption::PRE, SocketOption::INT, nullptr},
{ "snddropdelay", 0, SRTO_SNDDROPDELAY, SocketOption::POST, SocketOption::INT, nullptr},
{ "nakreport", 0, SRTO_NAKREPORT, SocketOption::PRE, SocketOption::BOOL, nullptr},
{ "conntimeo", 0, SRTO_CONNTIMEO, SocketOption::PRE, SocketOption::INT, nullptr},
{ "drifttracer", 0, SRTO_DRIFTTRACER, SocketOption::POST, SocketOption::BOOL, nullptr},
Expand Down
10 changes: 5 additions & 5 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ struct SrtOptionAction
flags[SRTO_SENDER] = SRTO_R_PRE;
flags[SRTO_TSBPDMODE] = SRTO_R_PRE;
flags[SRTO_LATENCY] = SRTO_R_PRE;
flags[SRTO_INPUTBW] = 0 | SRTO_POST_SPEC;
flags[SRTO_MININPUTBW] = 0 | SRTO_POST_SPEC;
flags[SRTO_OHEADBW] = 0 | SRTO_POST_SPEC;
flags[SRTO_INPUTBW] = SRTO_POST_SPEC;
flags[SRTO_MININPUTBW] = SRTO_POST_SPEC;
flags[SRTO_OHEADBW] = SRTO_POST_SPEC;
flags[SRTO_PASSPHRASE] = SRTO_R_PRE;
flags[SRTO_PBKEYLEN] = SRTO_R_PRE;
flags[SRTO_IPTTL] = SRTO_R_PREBIND;
flags[SRTO_IPTOS] = SRTO_R_PREBIND;
flags[SRTO_TLPKTDROP] = SRTO_R_PRE;
flags[SRTO_SNDDROPDELAY] = SRTO_R_PRE;
flags[SRTO_SNDDROPDELAY] = SRTO_POST_SPEC;
flags[SRTO_NAKREPORT] = SRTO_R_PRE;
flags[SRTO_VERSION] = SRTO_R_PRE;
flags[SRTO_CONNTIMEO] = SRTO_R_PRE;
flags[SRTO_LOSSMAXTTL] = 0 | SRTO_POST_SPEC;
flags[SRTO_LOSSMAXTTL] = SRTO_POST_SPEC;
flags[SRTO_RCVLATENCY] = SRTO_R_PRE;
flags[SRTO_PEERLATENCY] = SRTO_R_PRE;
flags[SRTO_MINVERSION] = SRTO_R_PRE;
Expand Down

0 comments on commit 009b7b6

Please sign in to comment.