1dda17b36SConrad Meyer /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3dda17b36SConrad Meyer * 4dda17b36SConrad Meyer * Copyright (c) 2019 Isilon Systems, LLC. 5dda17b36SConrad Meyer * 6dda17b36SConrad Meyer * Redistribution and use in source and binary forms, with or without 7dda17b36SConrad Meyer * modification, are permitted provided that the following conditions 8dda17b36SConrad Meyer * are met: 9dda17b36SConrad Meyer * 1. Redistributions of source code must retain the above copyright 10dda17b36SConrad Meyer * notice, this list of conditions and the following disclaimer. 11dda17b36SConrad Meyer * 2. Redistributions in binary form must reproduce the above copyright 12dda17b36SConrad Meyer * notice, this list of conditions and the following disclaimer in the 13dda17b36SConrad Meyer * documentation and/or other materials provided with the distribution. 14dda17b36SConrad Meyer * 15dda17b36SConrad Meyer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16dda17b36SConrad Meyer * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17dda17b36SConrad Meyer * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18dda17b36SConrad Meyer * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19dda17b36SConrad Meyer * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20dda17b36SConrad Meyer * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21dda17b36SConrad Meyer * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22dda17b36SConrad Meyer * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23dda17b36SConrad Meyer * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24dda17b36SConrad Meyer * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25dda17b36SConrad Meyer * SUCH DAMAGE. 26dda17b36SConrad Meyer */ 27dda17b36SConrad Meyer #pragma once 28dda17b36SConrad Meyer 29dda17b36SConrad Meyer /* 30dda17b36SConrad Meyer * Protocol information, for use by the userspace proxy server. 31dda17b36SConrad Meyer * 32dda17b36SConrad Meyer * It might make sense to allow not hardcoding these parameters as future work 33dda17b36SConrad Meyer * (e.g., for use in environments with arbitrary port filtering). 34dda17b36SConrad Meyer * 35dda17b36SConrad Meyer * The herald port is only used for initial handshake. The proxy server will 36dda17b36SConrad Meyer * choose a different remote port to connect back to the NetGDB client on by 37dda17b36SConrad Meyer * sending the HERALD ACK from that other port. 38dda17b36SConrad Meyer */ 39dda17b36SConrad Meyer #define NETGDB_HERALDPORT 20025 40dda17b36SConrad Meyer #define NETGDB_CLIENTPORT 20026 41dda17b36SConrad Meyer 42dda17b36SConrad Meyer #define NETGDB_PROTO_V1 0x2515f095 /* Rolled a 2^32 sided die. */ 43