[Click] CLICK checkarpheader or arpfaker problem or working as intended?

skatsu skatsu at gmail.com
Thu Sep 20 14:36:07 EDT 2007


Hi Folks,
  Thanks for the good work on this software.  Its both highly functional and
educational.  Anyways I  been trying to work on getting an arp responder to
work.  Since I was getting problems with incoming arp packets fail i decided
to create my on click script to test the arp capabilities.  The below is the
script.  I tried generated a few fake arp packets.  However some fail to
produce a valid arp packet and more importantly fail when the destination
ethernet is broadcast.  Is this working as intended?

Thanks


// arptest.click

// try to test out arp handling in
click



//-> Print(LENGTH
72)

// Post arp packet and check to see if arp header is
valid

//ARPFaker(192.168.1.1, 00:00:00:10:00:00,
192.168.1.2,00:00:00:10:00:00)

// DSTIP, DSTETH, SRCIP,
SRCETH



//ARPFaker(192.168.1.1, 00:00:00:10:00:00, 192.168.1.13,
00:13:CE:DB:C0:01)

//
ok



//ARPFaker(192.168.1.1, 00:AA:00:10:00:00, 192.168.1.13,
00:13:CE:DB:C0:01)

//
ok



//ARPFaker(192.168.1.1, AA:00:00:10:00:00, 192.168.1.13,
00:13:CE:DB:C0:09)

//
ok



//ARPFaker(192.168.1.1, FF:FF:FF:FF:FF:FF, 192.168.1.13,
00:13:CE:DB:C0:09)

//
fail



//ARPFaker(192.168.1.1, 00:FF:FF:FF:FF:FF, 192.168.1.13,
00:13:CE:DB:C0:09)

//
fail



//ARPFaker(192.168.1.1, 00:FF:FF:FF:FF:00, 192.168.1.13,
00:13:CE:DB:C0:09)

//
fail



ARPFaker(192.168.1.1, 00:FC:AA:FF:0F:00, 192.168.1.13,
00:13:CE:DB:C0:09)

//
ok



-> Print(LENGTH
60)

-> CheckARPHeader(VERBOSE
true)

-> Print(LENGTH
60)

-> ARPResponder(192.168.1.16 192.168.1.0/24FF:FF:FF:FF:FF:FF)

-> Print(LENGTH
60)

->
Discard();


More information about the click mailing list