Changeset 4989

Show
Ignore:
Timestamp:
07/04/09 22:02:48 (4 years ago)
Author:
getxsick
Message:

SLL implementation

Location:
branch/UMPA
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • branch/UMPA/umpa/protocols/__init__.py

    r4975 r4989  
    4040# loading global protocols 
    4141from Ethernet import Ethernet 
     42from SLL import SLL 
    4243from IP import IP 
    4344# from ICMP import ICMP 
  • branch/UMPA/umpa/protocols/_decoder.py

    r4988 r4989  
    2121 
    2222import umpa 
    23 from umpa.protocols import Ethernet, IP, TCP, UDP, Payload 
     23from umpa.protocols import Ethernet, SLL, IP, TCP, UDP, Payload 
    2424from umpa.protocols import _consts as consts 
    2525 
     
    3636        buffer = header.load_raw(buffer) 
    3737        next_type = header._type 
    38     #elif linktype == consts.DLT_LINUX_SLL: 
    39     #    raise Exception("got SLL") 
    40     #    header = SLL() 
    41     #    header.load_raw(buffer) 
    42     #    next_type = header.ltype 
     38    elif linktype == consts.DLT_LINUX_SLL: 
     39        header = SLL() 
     40        buffer = header.load_raw(buffer) 
     41        next_type = header._etype 
    4342    else: 
    4443        header = Payload()