Committed by
Gerrit Code Review
To encode igmp report packet need to set the record type
Change-Id: Ib9e06712873f936d6ab2466ab4e1fbb106c53b6d
Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -60,6 +60,16 @@ public class IGMPMembership extends IGMPGroup { | ... | @@ -60,6 +60,16 @@ public class IGMPMembership extends IGMPGroup { |
60 | } | 60 | } |
61 | 61 | ||
62 | /** | 62 | /** |
63 | + * Sets the IGMP record type. | ||
64 | + * | ||
65 | + * @param type A multicast record type, like MODE_IS_INCLUDE or MODE_IS_EXCLUDE. | ||
66 | + */ | ||
67 | + public void setRecordType(byte type) { | ||
68 | + recordType = type; | ||
69 | + } | ||
70 | + | ||
71 | + | ||
72 | + /** | ||
63 | * Serialize this Membership Report. | 73 | * Serialize this Membership Report. |
64 | * | 74 | * |
65 | * @param bb the ByteBuffer to write into, positioned at the next spot to be written to. | 75 | * @param bb the ByteBuffer to write into, positioned at the next spot to be written to. | ... | ... |
-
Please register or login to post a comment