src/internet-node/udp-l4-protocol.cc
changeset 2600 6c389d0c717d
parent 2592 3ebf97150166
child 2602 d9262bff6df2
equal deleted inserted replaced
2599:fcc1728eb669 2600:6c389d0c717d
    44 UdpL4Protocol::GetTypeId (void)
    44 UdpL4Protocol::GetTypeId (void)
    45 {
    45 {
    46   static TypeId tid = TypeId ("UdpL4Protocol")
    46   static TypeId tid = TypeId ("UdpL4Protocol")
    47     .SetParent<Ipv4L4Protocol> ()
    47     .SetParent<Ipv4L4Protocol> ()
    48     .AddConstructor<UdpL4Protocol> ()
    48     .AddConstructor<UdpL4Protocol> ()
    49     .AddAttribute ("Node", "The node which contains this protocol.",
       
    50                    TypeId::ATTR_GET | TypeId::ATTR_CONSTRUCT,
       
    51                    Ptr<Node> (0),
       
    52                    MakePtrAccessor (&UdpL4Protocol::m_node),
       
    53                    MakePtrChecker<Node> ())
       
    54     ;
    49     ;
    55   return tid;
    50   return tid;
    56 }
    51 }
    57 
    52 
    58 UdpL4Protocol::UdpL4Protocol ()
    53 UdpL4Protocol::UdpL4Protocol ()