Changes between Version 6 and Version 7 of UMPA/Documentation/Tutorials/YourFirstPackets

Show
Ignore:
Timestamp:
08/28/08 23:29:12 (5 years ago)
Author:
getxsick (IP: 83.27.164.133)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UMPA/Documentation/Tutorials/YourFirstPackets

    v6 v7  
    303303Now, we can simple create a new packet and use already created {{{sock}}} object to send it out, but before we will do that, lets change TTL field of the IP protocol. 
    304304 
    305 Some common fields like TTL or ports in TCP/UDP headers are {{{EnumField}}} objects. What does mean? Well, this is a simple numeric field but with special behaviour. 
     305Some common fields like TTL or ports in TCP/UDP headers are {{{EnumField}}} objects. What does it mean? Well, this is a simple numeric field but with special behaviour. 
    306306We can pass common names instead of numbers (what is easier to remember). Let's do it on the TTL example. 
    307307 
     
    328328}}} 
    329329 
    330 Why we can't use {{{ip.time_to_live.enumerable}}} in the first line? Well, attributes like object.''name_of_field'' are reserved only to get/set values of them. They handle only with values. To get a reference to the field's object we need to use {{{get_field()}}} method. 
     330Why can't we use {{{ip.time_to_live.enumerable}}} in the first line? Well, attributes like object.''name_of_field'' are reserved only to get/set values of them. They handle only with values. To get a reference to the field's object we need to use {{{get_field()}}} method. 
    331331 
    332332===== print statement is sooo cool =====