ports/net-mgmt/mac-telnet/files/patch-src_interfaces.h
Joe Marcus Clarke 078b0010cf net-mgmt/mac-telnet: Several fixes
* Fix building with OpenSSL 1.1
* Replace use of undirected broadcast with directed broadcast when
  sockets are bound to an interface IP
* Do not override the mactelnetd.users file
2024-08-15 13:21:49 -04:00

18 lines
664 B
C

--- src/interfaces.h.orig 2024-08-15 16:06:02 UTC
+++ src/interfaces.h
@@ -25,6 +25,7 @@ struct net_interface {
char name[256];
unsigned char ipv4_addr[IPV4_ALEN];
unsigned char mac_addr[ETH_ALEN];
+ unsigned char bcast_addr[IPV4_ALEN];
/* used by mactelnetd */
int socketfd;
@@ -57,4 +58,4 @@ extern int net_send_udp(const int socket, struct net_i
const unsigned char *destmac, const struct in_addr *sourceip, const int sourceport,
const struct in_addr *destip, const int destport, const unsigned char *data, const int datalen);
extern unsigned short in_cksum(unsigned short *addr, int len);
-#endif
\ No newline at end of file
+#endif