47typedef int (*sceNetCnfOpenFunction)(
const char *device,
const char *pathname,
int flags,
int mode,
int *filesize);
48typedef int (*sceNetCnfReadFunction)(
int fd,
const char *device,
const char *pathname,
void *buf,
int offset,
int size);
49typedef int (*sceNetCnfCloseFunction)(
int fd);
54 sceNetCnfOpenFunction open;
55 sceNetCnfReadFunction read;
56 sceNetCnfCloseFunction close;
61 unsigned char mru_nego;
62 unsigned char accm_nego;
63 unsigned char magic_nego;
64 unsigned char prc_nego;
65 unsigned char acc_nego;
66 unsigned char address_nego;
67 unsigned char vjcomp_nego;
68 unsigned char dns1_nego;
69 unsigned char dns2_nego;
70 unsigned char reserved_nego[7];
77 unsigned char *ip_address;
78 unsigned char *ip_mask;
81 unsigned int reserved_value[8];
87 unsigned char *vendor;
88 unsigned char *product;
89 unsigned char *location;
91 unsigned char *dhcp_host_name;
92 unsigned char dhcp_host_name_null_terminated;
93 unsigned char dhcp_release_on_stop;
94 unsigned char *address;
95 unsigned char *netmask;
96 unsigned char *chat_additional;
99 unsigned char *outside_number;
100 unsigned char *outside_delay;
101 unsigned char *phone_numbers[10];
102 unsigned char answer_mode;
105 unsigned char *chat_login;
106 unsigned char *auth_name;
107 unsigned char *auth_key;
108 unsigned char *peer_name;
109 unsigned char *peer_key;
117 unsigned char force_chap_type;
118 unsigned char omit_empty_frame;
120 unsigned char pppoe_host_uniq_auto;
121 unsigned char pppoe_reserved[2];
122 unsigned char *pppoe_service_name;
123 unsigned char *pppoe_ac_name;
125 unsigned char lcp_max_configure;
126 unsigned char lcp_max_terminate;
127 unsigned char ipcp_max_configure;
128 unsigned char ipcp_max_terminate;
129 unsigned char auth_timeout;
130 unsigned char auth_max_failure;
131 unsigned char reserved[6];
140 unsigned char *tone_dial;
141 unsigned char *pulse_dial;
142 unsigned char *any_dial;
143 unsigned char *chat_init;
144 unsigned char *chat_dial;
145 unsigned char *chat_answer;
146 unsigned char *redial_string;
164 unsigned char *display_name;
165 unsigned char *attach_ifc;
166 unsigned char *attach_dev;
178 unsigned char *chat_additional;
181 unsigned char *outside_number;
182 unsigned char *outside_delay;
197 int f_no_check_magic;
205 unsigned char lbuf[1024];
206 unsigned char dbuf[1024];
234extern int sceNetCnfGetCount(
const char *fname,
int type);
235extern int sceNetCnfGetList(
const char *fname,
int type,
sceNetCnfList_t *p);
236extern int sceNetCnfLoadEntry(
const char *fname,
int type,
const char *usr_name,
sceNetCnfEnv_t *e);
237extern int sceNetCnfAddEntry(
const char *fname,
int type,
const char *usr_name,
sceNetCnfEnv_t *e);
238extern int sceNetCnfDeleteEntry(
const char *fname,
int type,
const char *usr_name);
239extern int sceNetCnfSetLatestEntry(
const char *fname,
int type,
const char *usr_name);
240extern void *sceNetCnfAllocMem(
sceNetCnfEnv_t *e,
int size,
int align);
246extern int sceNetCnfAddress2String(
char *buf,
int len,
const sceNetCnfAddress_t *paddr);
248sceNetCnfEditEntry(
const char *fname,
int type,
const char *usr_name,
const char *new_usr_name,
sceNetCnfEnv_t *e);
249extern int sceNetCnfDeleteAll(
const char *dev);
250extern int sceNetCnfCheckCapacity(
const char *fname);
251extern int sceNetCnfConvA2S(
char *sp_,
char *dp_,
int len);
252extern int sceNetCnfConvS2A(
char *sp_,
char *dp_,
int len);
253extern int sceNetCnfCheckSpecialProvider(
const char *fname,
int type,
const char *usr_name,
sceNetCnfEnv_t *e);
256#define netcnf_IMPORTS_start DECLARE_IMPORT_TABLE(netcnf, 1, 32)
257#define netcnf_IMPORTS_end END_IMPORT_TABLE
259#define I_sceNetCnfGetCount DECLARE_IMPORT(4, sceNetCnfGetCount)
260#define I_sceNetCnfGetList DECLARE_IMPORT(5, sceNetCnfGetList)
261#define I_sceNetCnfLoadEntry DECLARE_IMPORT(6, sceNetCnfLoadEntry)
262#define I_sceNetCnfAddEntry DECLARE_IMPORT(7, sceNetCnfAddEntry)
263#define I_sceNetCnfDeleteEntry DECLARE_IMPORT(8, sceNetCnfDeleteEntry)
264#define I_sceNetCnfSetLatestEntry DECLARE_IMPORT(9, sceNetCnfSetLatestEntry)
265#define I_sceNetCnfAllocMem DECLARE_IMPORT(10, sceNetCnfAllocMem)
266#define I_sceNetCnfInitIFC DECLARE_IMPORT(11, sceNetCnfInitIFC)
267#define I_sceNetCnfLoadConf DECLARE_IMPORT(12, sceNetCnfLoadConf)
268#define I_sceNetCnfLoadDial DECLARE_IMPORT(13, sceNetCnfLoadDial)
269#define I_sceNetCnfMergeConf DECLARE_IMPORT(14, sceNetCnfMergeConf)
270#define I_sceNetCnfName2Address DECLARE_IMPORT(15, sceNetCnfName2Address)
271#define I_sceNetCnfAddress2String DECLARE_IMPORT(16, sceNetCnfAddress2String)
272#define I_sceNetCnfEditEntry DECLARE_IMPORT(17, sceNetCnfEditEntry)
273#define I_sceNetCnfDeleteAll DECLARE_IMPORT(18, sceNetCnfDeleteAll)
274#define I_sceNetCnfCheckCapacity DECLARE_IMPORT(19, sceNetCnfCheckCapacity)
275#define I_sceNetCnfConvA2S DECLARE_IMPORT(20, sceNetCnfConvA2S)
276#define I_sceNetCnfConvS2A DECLARE_IMPORT(21, sceNetCnfConvS2A)
277#define I_sceNetCnfCheckSpecialProvider DECLARE_IMPORT(22, sceNetCnfCheckSpecialProvider)
278#define I_sceNetCnfSetCallback DECLARE_IMPORT(23, sceNetCnfSetCallback)