Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d26f8c98 authored by Treehugger Robot's avatar Treehugger Robot Committed by Luke Huang
Browse files

Add a libipchecksum that contains the C IP checksum code.

This is useful for test code that wants to statically link the IP
checksum code. This is not currently possible because libnetutils
is vendor_available and making it available for static linking is
discouraged.

Test: m libnetutils libipchecksum
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1359262

Change-Id: I18fc67d096c7b27804db37621c6662f65d4a78c2
Merged-In: Ic7f1864902581b8a5e3626860565b78c168bdb7f
(cherry picked from commit d4c69114)
parent ab0c79e5
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -23,6 +23,21 @@ cc_library_shared {
    export_include_dirs: ["include"],
}

cc_library_static {
    name: "libipchecksum",

    srcs: [
        "checksum.c",
    ],

    cflags: [
        "-Wall",
        "-Werror",
    ],

    export_include_dirs: ["include"],
}

cc_binary {
    name: "dhcpdbg",