This source file includes following definitions.
- sys_ptrace
- sys_iopl
- sys_vm86
- sys_modify_ldt
- sys_quotactl
- sys_pipe
- sys_ipc
- sys_mmap
- sys_readdir
- halt
- _panic
- _warn
- ip_fast_csum
- ip_compute_csum
- udp_check
- tcp_check
- _do_bottom_half
- csum_partial
- csum_partial_copy
- csum_tcpudp_magic
1 #include <linux/in.h>
2
3 void sys_ptrace(void) { _panic("sys_ptrace"); }
4 void sys_iopl(void) { _panic("sys_iopl"); }
5 void sys_vm86(void) { _panic("sys_vm86"); }
6 void sys_modify_ldt(void) { _panic("sys_modify_ldt"); }
7 void sys_quotactl(void) { _panic("sys_quotactl"); }
8
9 void sys_pipe(void) {_panic("sys_pipe"); }
10 void sys_ipc(void) {_panic("sys_ipc"); }
11 void sys_mmap(void) {_panic("sys_mmap"); }
12 void sys_readdir(void) {_panic("sys_readdir"); }
13
14
15 halt()
16 {
17 _printk("\n...Halt!\n");
18 abort();
19 }
20
21 _panic(char *msg)
22 {
23 _printk("Panic: %s\n", msg);
24 printk("Panic: %s\n", msg);
25 abort();
26 }
27
28 _warn(char *msg)
29 {
30 _printk("*** Warning: %s UNIMPLEMENTED!\n", msg);
31 }
32
33 extern unsigned short _ip_fast_csum(unsigned char *buf, int len);
34
35 unsigned short
36 ip_fast_csum(unsigned char *buf, int len)
37 {
38 unsigned short _val;
39 _val = _ip_fast_csum(buf, len);
40 #if 0
41 printk("IP CKSUM(%x, %d) = %x\n", buf, len, _val);
42 #endif
43 return (_val);
44 }
45
46 extern unsigned short _ip_compute_csum(unsigned char *buf, int len);
47
48 unsigned short
49 ip_compute_csum(unsigned char *buf, int len)
50 {
51 unsigned short _val;
52 _val = _ip_compute_csum(buf, len);
53 #if 0
54 printk("Compute IP CKSUM(%x, %d) = %x\n", buf, len, _val);
55 #endif
56 return (_val);
57 }
58
59 unsigned short
60 _udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
61
62 unsigned short
63 udp_check(unsigned char *buf, int len, int saddr, int daddr)
64 {
65 unsigned short _val;
66 int hdr;
67 hdr = (len << 16) + IPPROTO_UDP;
68 _val = _udp_check(buf, len, saddr, daddr, hdr);
69 #if 0
70 printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val);
71 dump_buf(buf, len);
72 #endif
73 return (_val);
74 }
75 #if 0
76 unsigned short
77 _tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
78
79 unsigned short
80 tcp_check(unsigned char *buf, int len, int saddr, int daddr)
81 {
82 unsigned short _val;
83 int hdr;
84 hdr = (len << 16) + IPPROTO_TCP;
85 if (saddr == 0) saddr = ip_my_addr();
86 _val = _tcp_check(buf, len, saddr, daddr, hdr);
87 #if 0
88 printk("TCP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val);
89 dump_buf(buf, len);
90 #endif
91 return (_val);
92 }
93 #endif
94 _do_bottom_half()
95 {
96 _enable_interrupts(1);
97 do_bottom_half();
98 _disable_interrupts();
99 }
100
101 unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum)
102 {
103 panic("csum_partial");
104 }
105
106
107 unsigned int csum_partial_copy(char *src, char *dst, int len, int sum)
108 {
109 panic("csum_partial_copy");
110 }
111
112 unsigned int csum_tcpudp_magic()
113 {
114 }