usim

Check-in [a92489a346]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:uch11: Random declaration fixes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ams/sdl
Files: files | file ages | folders
SHA3-256: a92489a3469b771f92a907c3008c05df45e325f837460fb033c4b878e938e296
User & Date: ams 2024-06-25 16:46:35
Context
2024-06-26
05:04
uch11-backend.h: Include <pthread.h>. check-in: 6d8b526a75 user: ams tags: ams/sdl
2024-06-25
16:46
uch11: Random declaration fixes. check-in: a92489a346 user: ams tags: ams/sdl
12:45
uch11: Split out uch11 backend guts into seperate header, leave uch11.h for MIT CADR specifics. check-in: b32ca4506b user: ams tags: ams/sdl
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to uch11-udp.c.

34
35
36
37
38
39
40



41
42
43
44
45
46
47
#include "ucode.h"
#include "usim.h"
#include "utrace.h"

int hybrid_udp_and_local = 0;
u_short udp_bridge_chaddr;





int
chudpopen(void)
{
	int sock, lport, res, udp_dport, braddr;
	struct sockaddr_in sin;
	struct addrinfo *he, hi;







>
>
>







34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "ucode.h"
#include "usim.h"
#include "utrace.h"

int hybrid_udp_and_local = 0;
u_short udp_bridge_chaddr;

extern int chaos_send_to_local(char *buffer, int size);
extern int chaos_poll_local(void);
extern unsigned short uch11_checksum(const unsigned char *addr, int count);

int
chudpopen(void)
{
	int sock, lport, res, udp_dport, braddr;
	struct sockaddr_in sin;
	struct addrinfo *he, hi;

Changes to uch11.h.

14
15
16
17
18
19
20




extern int uch11_get_csr(void);
extern void uch11_set_csr(int);
extern int uch11_get_bit_count(void);
extern int uch11_get_rcv_buffer(void);
extern void uch11_put_xmit_buffer(int);
extern void uch11_xmit_pkt(void);










>
>
>
14
15
16
17
18
19
20
21
22
23

extern int uch11_get_csr(void);
extern void uch11_set_csr(int);
extern int uch11_get_bit_count(void);
extern int uch11_get_rcv_buffer(void);
extern void uch11_put_xmit_buffer(int);
extern void uch11_xmit_pkt(void);
extern void uch11_rx_pkt(void);
extern void uch11_reconnect(void);
extern void uch11_force_reconect(void);