Lines Matching refs:ebuf
121 static int __getPLC_para(char *ebuf, int addr)
132 memset(ebuf, 0, sizeof(ebuf));
134 if (FRead(ebuf, addr, len) < 0) {
147 unsigned char ebuf[ETHER_ADDR_LEN];
149 if (__getPLC_para(ebuf, OFFSET_PLC_MAC)) {
151 if (ether_etoa(ebuf, abuf))
163 unsigned char ebuf[PLC_KEY_LEN];
165 if (__getPLC_para(ebuf, OFFSET_PLC_NMK)) {
167 if (key_etoa(ebuf, abuf))
204 unsigned char ebuf[ETHER_ADDR_LEN];
207 if (__getPLC_para(ebuf, OFFSET_PLC_MAC)) {
209 if (!__getPLC_PWD(ebuf, pwd))
225 char abuf[64], ebuf[16];
228 if (__getPLC_para(ebuf, addr)) {
231 ether_etoa(ebuf, abuf);
233 key_etoa(ebuf, abuf);
244 unsigned char ebuf[32];
250 memset(ebuf, 0, sizeof(ebuf));
257 ret = ether_atoe(abuf, ebuf);
263 ret = key_atoe(abuf, ebuf);
268 FWrite(ebuf, addr, len);