LEFT | RIGHT |
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) 2007 INRIA | 3 * Copyright (c) 2007 INRIA |
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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 if (m_shutdownRecv) | 1066 if (m_shutdownRecv) |
1067 { | 1067 { |
1068 return; | 1068 return; |
1069 } | 1069 } |
1070 | 1070 |
1071 // Should check via getsockopt (). | 1071 // Should check via getsockopt (). |
1072 if (IsRecvPktInfo ()) | 1072 if (IsRecvPktInfo ()) |
1073 { | 1073 { |
1074 Ipv6PacketInfoTag tag; | 1074 Ipv6PacketInfoTag tag; |
1075 packet->RemovePacketTag (tag); | 1075 packet->RemovePacketTag (tag); |
1076 tag.SetRecvIf (static_cast<uint8_t>(incomingInterface->GetDevice ()->GetIf
Index ())); | 1076 tag.SetRecvIf (static_cast<uint8_t> (incomingInterface->GetDevice ()->GetI
fIndex ())); |
1077 packet->AddPacketTag (tag); | 1077 packet->AddPacketTag (tag); |
1078 } | 1078 } |
1079 | 1079 |
1080 // Check only version 6 options | 1080 // Check only version 6 options |
1081 if (IsIpv6RecvTclass ()) | 1081 if (IsIpv6RecvTclass ()) |
1082 { | 1082 { |
1083 SocketIpv6TclassTag ipTclassTag; | 1083 SocketIpv6TclassTag ipTclassTag; |
1084 ipTclassTag.SetTclass (header.GetTrafficClass ()); | 1084 ipTclassTag.SetTclass (header.GetTrafficClass ()); |
1085 packet->AddPacketTag (ipTclassTag); | 1085 packet->AddPacketTag (ipTclassTag); |
1086 } | 1086 } |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 } | 1251 } |
1252 else | 1252 else |
1253 { | 1253 { |
1254 ipv6l3->AddMulticastAddress (address); | 1254 ipv6l3->AddMulticastAddress (address); |
1255 } | 1255 } |
1256 } | 1256 } |
1257 } | 1257 } |
1258 } | 1258 } |
1259 | 1259 |
1260 } // namespace ns3 | 1260 } // namespace ns3 |
LEFT | RIGHT |