Lines Matching full:arp

30 #include "arp.h"
380 /* pkt2 is the ARP packet and pkt is the IPv4 packet and it was in ZTEST()
381 * stored in ARP table. in ZTEST()
386 /* The packets cannot be the same as the ARP cache has in ZTEST()
389 "ARP cache should still have free space"); in ZTEST()
391 zassert_not_null(pkt2, "ARP pkt is empty"); in ZTEST()
393 /* The ARP cache should now have a link to pending net_pkt in ZTEST()
394 * that is to be sent after we have got an ARP reply. in ZTEST()
401 /* pkt2 should contain the arp header, verify it */ in ZTEST()
405 printk("ARP hwtype 0x%x, should be 0x%x\n", in ZTEST()
411 printk("ARP protocol 0x%x, should be 0x%x\n", in ZTEST()
417 printk("ARP hwlen 0x%x, should be 0x%zx\n", in ZTEST()
423 printk("ARP IP addr len 0x%x, should be 0x%zx\n", in ZTEST()
429 printk("ARP opcode 0x%x, should be 0x%x\n", in ZTEST()
436 printk("ARP IP dest invalid %s, should be %s", in ZTEST()
444 printk("ARP IP src invalid %s, should be %s", in ZTEST()
450 /* We could have send the new ARP request but for this test we in ZTEST()
456 "ARP cache should own the original packet"); in ZTEST()
464 "ARP cache should not find anything"); in ZTEST()
468 "ARP pkt2 is empty"); in ZTEST()
474 printk("ARP IP dst invalid %s, should be %s\n", in ZTEST()
483 * is a pending request in ARP cache. in ZTEST()
495 "ARP cache is not sending the request again"); in ZTEST()
512 "ARP cache did not send a req"); in ZTEST()
519 /* The arp request packet is now verified, create an arp reply. in ZTEST()
520 * The previous value of pkt is stored in arp table and is not lost. in ZTEST()
535 zassert_not_null(pkt2, "ARP reply generation failed."); in ZTEST()
549 /**TESTPOINTS: Check ARP reply*/ in ZTEST()
550 zassert_false(send_status < 0, "ARP reply was not sent"); in ZTEST()
553 "ARP cache should no longer own the original packet"); in ZTEST()
557 /* Then feed in ARP request */ in ZTEST()
576 /**TESTPOINT: Check if ARP request generation failed*/ in ZTEST()
577 zassert_not_null(pkt2, "ARP request generation failed."); in ZTEST()
592 /**TESTPOINT: Check if ARP request sent*/ in ZTEST()
593 zassert_false(send_status < 0, "ARP req was not sent"); in ZTEST()
597 /**TESTPOINT: Check gratuitous ARP */ in ZTEST()
637 zassert_not_equal(verdict, NET_DROP, "Gratuitous ARP failed"); in ZTEST()