commit | f4a0865055d0130a9514ac1b84cbf518868bf8c3 | [log] [tgz] |
---|---|---|
author | Chih-Yu Huang <akahuang@google.com> | Tue Sep 17 15:08:24 2024 +0900 |
committer | Chih-Yu Huang <akahuang@google.com> | Wed Sep 18 10:46:07 2024 +0900 |
tree | b522baf30ddca75627db4698b3fb148619edb44c | |
parent | ba8631923dbc7462b1908349f2291423a741b6d4 [diff] |
Make RtNetlinkLinkMessage class immutable after creation This CL marks all the fields of RtNetlinkLinkMessage class final. That means once the instance is created, the instance is immutable. Also, the CL adds a static create method that verifies the arguments, and updates the nlmsg_len field of the header before creation. Bug: 364501824 Test: atest NetworkStaticLibTests Change-Id: I08af4a6e68df9aee8ae76d953fac5d81f0b02c84