-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#define MIB_IP_ADDR 170 | ||
#define MIB_HW_VER 0x250 | ||
#define MIB_CAPTCHA 0x2C1 | ||
|
||
int apmib_init(void) | ||
{ | ||
return 1; | ||
} | ||
|
||
int fork(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
void apmib_get(int code, int* value) | ||
{ | ||
switch(code) | ||
{ | ||
case MIB_HW_VER: | ||
*value = 0xF1; | ||
break; | ||
case MIB_IP_ADDR: | ||
*value = 0x7F000001; | ||
break; | ||
case MIB_CAPTCHA: | ||
*value = 1; | ||
break; | ||
} | ||
} | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.