OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 Adrian Sai-wah Tam | 3 * Copyright (c) 2011 Adrian Sai-wah Tam |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 { | 100 { |
101 switch (kind) | 101 switch (kind) |
102 { | 102 { |
103 case END: | 103 case END: |
104 case NOP: | 104 case NOP: |
105 case MSS: | 105 case MSS: |
106 case WINSCALE: | 106 case WINSCALE: |
107 case SACKPERMITTED: | 107 case SACKPERMITTED: |
108 case SACK: | 108 case SACK: |
109 case TS: | 109 case TS: |
110 // Do not add UNKNOWN here | 110 case MPTCP: |
| 111 // Do not add UNKNOWN here |
111 return true; | 112 return true; |
112 } | 113 } |
113 | 114 |
114 return false; | 115 return false; |
115 } | 116 } |
116 | 117 |
117 NS_OBJECT_ENSURE_REGISTERED (TcpOptionUnknown); | 118 NS_OBJECT_ENSURE_REGISTERED (TcpOptionUnknown); |
118 | 119 |
119 TcpOptionUnknown::TcpOptionUnknown () | 120 TcpOptionUnknown::TcpOptionUnknown () |
120 : TcpOption () | 121 : TcpOption () |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return m_size; | 191 return m_size; |
191 } | 192 } |
192 | 193 |
193 uint8_t | 194 uint8_t |
194 TcpOptionUnknown::GetKind (void) const | 195 TcpOptionUnknown::GetKind (void) const |
195 { | 196 { |
196 return m_kind; | 197 return m_kind; |
197 } | 198 } |
198 | 199 |
199 } // namespace ns3 | 200 } // namespace ns3 |
OLD | NEW |