2022-04-24 16:59:22 +00:00
|
|
|
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│
|
|
|
|
│vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│
|
2020-06-15 14:18:57 +00:00
|
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
2021-01-25 21:08:05 +00:00
|
|
|
│ Copyright 2021 Justine Alexandra Roberts Tunney │
|
2020-06-15 14:18:57 +00:00
|
|
|
│ │
|
2020-12-28 01:18:44 +00:00
|
|
|
│ Permission to use, copy, modify, and/or distribute this software for │
|
|
|
|
│ any purpose with or without fee is hereby granted, provided that the │
|
|
|
|
│ above copyright notice and this permission notice appear in all copies. │
|
2020-06-15 14:18:57 +00:00
|
|
|
│ │
|
2020-12-28 01:18:44 +00:00
|
|
|
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │
|
|
|
|
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │
|
|
|
|
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │
|
|
|
|
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │
|
|
|
|
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │
|
|
|
|
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │
|
|
|
|
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
|
|
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
2020-06-15 14:18:57 +00:00
|
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
2022-04-25 15:30:14 +00:00
|
|
|
#include "libc/fmt/magnumstrs.internal.h"
|
2022-04-24 16:59:22 +00:00
|
|
|
#include "libc/macros.internal.h"
|
2022-03-16 20:33:13 +00:00
|
|
|
|
2022-04-25 15:30:14 +00:00
|
|
|
.macro .e e s
|
2022-04-24 16:59:22 +00:00
|
|
|
.long \e - kIpOptnames
|
2022-09-09 15:59:59 +00:00
|
|
|
.long .L\@ - kIpOptnames
|
2022-04-24 16:59:22 +00:00
|
|
|
.rodata.str1.1
|
2022-09-09 15:59:59 +00:00
|
|
|
.L\@: .string "\s"
|
2022-04-24 16:59:22 +00:00
|
|
|
.previous
|
|
|
|
.endm
|
|
|
|
|
|
|
|
.section .rodata
|
2023-05-02 02:43:59 +00:00
|
|
|
.balign 4
|
2022-04-24 16:59:22 +00:00
|
|
|
.underrun
|
|
|
|
kIpOptnames:
|
2023-05-02 20:38:16 +00:00
|
|
|
.e IP_TOS,"TOS" // int
|
|
|
|
.e IP_MTU,"MTU" // int
|
|
|
|
.e IP_TTL,"TTL" // int
|
|
|
|
.e IP_HDRINCL,"HDRINCL" // bool32
|
2022-04-25 15:30:14 +00:00
|
|
|
.long MAGNUM_TERMINATOR
|
2022-04-24 16:59:22 +00:00
|
|
|
.endobj kIpOptnames,globl,hidden
|
|
|
|
.overrun
|