Skip to content

Commit

Permalink
Merge pull request #30 from USNavalResearchLaboratory/working/nrl/ljt…
Browse files Browse the repository at this point in the history
…/df-fix

Reverse boolean passed to protoSockets::setFragmentation() function s…
  • Loading branch information
ljt-git authored Jul 12, 2021
2 parents 3ade72a + ee80f81 commit 2432b49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/mgenGlobals.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ enum
};
enum FragmentationStatus
{
DF_OFF, // df = false
DF_ON, // df = true
// We pass df to protoSockets setFragmentation() method which
// reverses the bit setting.

DF_ON, // setFragmentation(false) = do not allow fragmentation set DF bit OFF
DF_OFF, // setFragmentation(true) = allow fragmentation set DF bit ON
DF_DEFAULT // leave socket DF option in its default state

};
Expand Down

0 comments on commit 2432b49

Please sign in to comment.