Commit a137697
authored
Set arp_accept to 2 by default (#4383)
* When grat_arp is not enabled in config_db for an interface, intfmgr automatically sets kernel sysctl arp_accept for that interface to 0 as well as sets the sysctl accept_untracked_na for that interface to 0.
When grat_arp is enabled in config_db, intfmgr sets the kernel sysctl arp_accept for that interface to 1 and also sets the sysctl accept_untracked_na for that interface to 1.
Starting kernel 5.19, this sysctl has been extended to take a value of 2 to restrict learning of neighbor IPs from GARPs or unsolicited NAs to only IPs that are in the same subnet as the IP configured on that interface. In SONiC, it is more meaningful to have the value 2 instead of 1 by default.
This patch changes the default value of arp_accept and accept_untracked_na to 2 when grat_arp is enabled in the config_db for any interface.1 parent 13d6bd9 commit a137697
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
| 510 | + | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| |||
0 commit comments