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

Commit 3b56a022 authored by Lorenzo Colitti's avatar Lorenzo Colitti
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
Change-Id: Ic7f1864902581b8a5e3626860565b78c168bdb7f
parent 1e03ef5a
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",