Remove UDP flow rules
No longer needed because RADIUS packets come directly from UDP and not as packet in. Change-Id: I91fc37fc973c25a4b42c928ce6de41e71331f59d
Showing
1 changed file
with
0 additions
and
18 deletions
... | @@ -33,11 +33,9 @@ import org.onlab.packet.EAP; | ... | @@ -33,11 +33,9 @@ import org.onlab.packet.EAP; |
33 | import org.onlab.packet.EAPOL; | 33 | import org.onlab.packet.EAPOL; |
34 | import org.onlab.packet.EthType; | 34 | import org.onlab.packet.EthType; |
35 | import org.onlab.packet.Ethernet; | 35 | import org.onlab.packet.Ethernet; |
36 | -import org.onlab.packet.IPv4; | ||
37 | import org.onlab.packet.MacAddress; | 36 | import org.onlab.packet.MacAddress; |
38 | import org.onlab.packet.RADIUS; | 37 | import org.onlab.packet.RADIUS; |
39 | import org.onlab.packet.RADIUSAttribute; | 38 | import org.onlab.packet.RADIUSAttribute; |
40 | -import org.onlab.packet.TpPort; | ||
41 | import org.onosproject.core.ApplicationId; | 39 | import org.onosproject.core.ApplicationId; |
42 | import org.onosproject.core.CoreService; | 40 | import org.onosproject.core.CoreService; |
43 | import org.onosproject.net.ConnectPoint; | 41 | import org.onosproject.net.ConnectPoint; |
... | @@ -233,14 +231,6 @@ public class AAA { | ... | @@ -233,14 +231,6 @@ public class AAA { |
233 | selector.matchEthType(EthType.EtherType.EAPOL.ethType().toShort()); | 231 | selector.matchEthType(EthType.EtherType.EAPOL.ethType().toShort()); |
234 | packetService.requestPackets(selector.build(), | 232 | packetService.requestPackets(selector.build(), |
235 | CONTROL, appId); | 233 | CONTROL, appId); |
236 | - | ||
237 | - TrafficSelector radSelector = DefaultTrafficSelector.builder() | ||
238 | - .matchEthType(EthType.EtherType.IPV4.ethType().toShort()) | ||
239 | - .matchIPProtocol(IPv4.PROTOCOL_UDP) | ||
240 | - .matchUdpDst(TpPort.tpPort(radiusServerPort)) | ||
241 | - .matchUdpSrc(TpPort.tpPort(radiusServerPort)) | ||
242 | - .build(); | ||
243 | - packetService.requestPackets(radSelector, CONTROL, appId); | ||
244 | } | 234 | } |
245 | 235 | ||
246 | /** | 236 | /** |
... | @@ -250,14 +240,6 @@ public class AAA { | ... | @@ -250,14 +240,6 @@ public class AAA { |
250 | TrafficSelector.Builder selector = DefaultTrafficSelector.builder(); | 240 | TrafficSelector.Builder selector = DefaultTrafficSelector.builder(); |
251 | selector.matchEthType(EthType.EtherType.EAPOL.ethType().toShort()); | 241 | selector.matchEthType(EthType.EtherType.EAPOL.ethType().toShort()); |
252 | packetService.cancelPackets(selector.build(), CONTROL, appId); | 242 | packetService.cancelPackets(selector.build(), CONTROL, appId); |
253 | - | ||
254 | - TrafficSelector radSelector = DefaultTrafficSelector.builder() | ||
255 | - .matchEthType(EthType.EtherType.IPV4.ethType().toShort()) | ||
256 | - .matchIPProtocol(IPv4.PROTOCOL_UDP) | ||
257 | - .matchUdpDst(TpPort.tpPort(radiusServerPort)) | ||
258 | - .matchUdpSrc(TpPort.tpPort(radiusServerPort)) | ||
259 | - .build(); | ||
260 | - packetService.cancelPackets(radSelector, CONTROL, appId); | ||
261 | } | 243 | } |
262 | 244 | ||
263 | /** | 245 | /** | ... | ... |
-
Please register or login to post a comment