summaryrefslogtreecommitdiff
path: root/net/tcpview/files/patch-tv__addrtoname.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-02-14 21:02:51 -0800
committerCy Schubert <cy@FreeBSD.org>2023-02-15 08:55:01 -0800
commitb4c6b8717bcfc34a90c054805a98178b98878a3d (patch)
treef9b8e0fcd4095d8441217a37c84ee0c5975f18c9 /net/tcpview/files/patch-tv__addrtoname.c
parentx11/xforward: Permanently fix LLVM15 build error (diff)
net/tcpview: Regenerate patches
Regenerate patches using makepatch.
Diffstat (limited to 'net/tcpview/files/patch-tv__addrtoname.c')
-rw-r--r--net/tcpview/files/patch-tv__addrtoname.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/net/tcpview/files/patch-tv__addrtoname.c b/net/tcpview/files/patch-tv__addrtoname.c
new file mode 100644
index 000000000000..0e90afb30d6d
--- /dev/null
+++ b/net/tcpview/files/patch-tv__addrtoname.c
@@ -0,0 +1,46 @@
+--- tv_addrtoname.c.orig 1993-04-22 20:40:35 UTC
++++ tv_addrtoname.c
+@@ -110,6 +110,7 @@ struct ipproto {
+ u_short p;
+ };
+
++#define IPPROTO_HELLO 63 /* "hello" routing protocol */
+ struct ipproto ipproto_db[] = {
+ { "IP", IPPROTO_IP },
+ { "ICMP", IPPROTO_ICMP },
+@@ -307,7 +308,7 @@ intoa(addr)
+ register int n;
+ static char buf[sizeof(".xxx.xxx.xxx.xxx")];
+
+- NTOHL(addr);
++ ntohl(addr);
+ cp = &buf[sizeof buf];
+ *--cp = '\0';
+
+@@ -643,7 +644,7 @@ int flag;
+ static char buffer[8];
+ char *cp;
+
+- NTOHS(port);
++ ntohs(port);
+
+ if (!(flag&ADDR_NUMERICAL)) {
+ for(i=0;eproto_db[i].s;i++) {
+@@ -668,7 +669,7 @@ u_short pro;
+ {
+ int i;
+
+-/* NTOHS(pro); */
++/* ntohs(pro); */
+
+ for(i=0;ipproto_db[i].s;i++) {
+ if (ipproto_db[i].p == pro)
+@@ -750,7 +751,7 @@ init_servarray()
+ register struct hnamemem *table;
+
+ while (sv = GetServent()) {
+- NTOHS(sv->s_port);
++ ntohs(sv->s_port);
+ if (strcmp(sv->s_proto, "tcp") == 0) {
+ table = lookup_port(sv->s_port,LOOKUP_TCP);
+ } else if (strcmp(sv->s_proto, "udp") == 0) {