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 #include <netinet/in.h> | 2 #include <netinet/in.h> |
3 #include <sys/socket.h> | 3 #include <sys/socket.h> |
4 #include <sys/types.h> | 4 #include <sys/types.h> |
5 #include "ipv4-raw-socket-impl.h" | 5 #include "ipv4-raw-socket-impl.h" |
6 #include "ipv4-l3-protocol.h" | 6 #include "ipv4-l3-protocol.h" |
7 #include "icmpv4.h" | 7 #include "icmpv4.h" |
8 #include "ns3/ipv4-packet-info-tag.h" | 8 #include "ns3/ipv4-packet-info-tag.h" |
9 #include "ns3/inet-socket-address.h" | 9 #include "ns3/inet-socket-address.h" |
10 #include "ns3/node.h" | 10 #include "ns3/node.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 return 0; | 109 return 0; |
110 } | 110 } |
111 int· | 111 int· |
112 Ipv4RawSocketImpl::Bind (void) | 112 Ipv4RawSocketImpl::Bind (void) |
113 { | 113 { |
114 NS_LOG_FUNCTION (this); | 114 NS_LOG_FUNCTION (this); |
115 m_src = Ipv4Address::GetAny (); | 115 m_src = Ipv4Address::GetAny (); |
116 return 0; | 116 return 0; |
117 } | 117 } |
118 int· | 118 int· |
| 119 Ipv4RawSocketImpl::Bind6 (void) |
| 120 { |
| 121 return (-1); |
| 122 } |
| 123 int· |
119 Ipv4RawSocketImpl::GetSockName (Address &address) const | 124 Ipv4RawSocketImpl::GetSockName (Address &address) const |
120 { | 125 { |
121 address = InetSocketAddress (m_src, 0); | 126 address = InetSocketAddress (m_src, 0); |
122 return 0; | 127 return 0; |
123 } | 128 } |
124 int· | 129 int· |
125 Ipv4RawSocketImpl::Close (void) | 130 Ipv4RawSocketImpl::Close (void) |
126 { | 131 { |
127 NS_LOG_FUNCTION (this); | 132 NS_LOG_FUNCTION (this); |
128 Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol> (); | 133 Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol> (); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 return true; | 359 return true; |
355 } | 360 } |
356 | 361 |
357 bool | 362 bool |
358 Ipv4RawSocketImpl::GetAllowBroadcast () const | 363 Ipv4RawSocketImpl::GetAllowBroadcast () const |
359 { | 364 { |
360 return true; | 365 return true; |
361 } | 366 } |
362 | 367 |
363 } // namespace ns3 | 368 } // namespace ns3 |
OLD | NEW |