Lines Matching refs:wep
161 winChkName(const u_char *un, size_t unlen, struct winentry *wep, int chksum) in winChkName() argument
170 if (wep->weCnt & WIN_LAST) in winChkName()
171 chksum = wep->weChksum; in winChkName()
172 else if (chksum != wep->weChksum) in winChkName()
180 i = ((wep->weCnt & WIN_CNT) - 1) * WIN_CHARS; in winChkName()
190 if ((wep->weCnt & WIN_LAST) && (len - i > WIN_CHARS)) in winChkName()
197 memcpy(p, wep->wePart1, sizeof(wep->wePart1)); in winChkName()
198 p += sizeof(wep->wePart1) / sizeof(*p); in winChkName()
199 memcpy(p, wep->wePart2, sizeof(wep->wePart2)); in winChkName()
200 p += sizeof(wep->wePart2) / sizeof(*p); in winChkName()
201 memcpy(p, wep->wePart3, sizeof(wep->wePart3)); in winChkName()
232 unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt, in unix2winfn() argument
260 memset(wep, 0xff, sizeof(*wep)); in unix2winfn()
261 wep->weCnt = cnt; in unix2winfn()
262 wep->weAttributes = ATTR_WIN95; in unix2winfn()
263 wep->weReserved1 = 0; in unix2winfn()
264 wep->weChksum = chksum; in unix2winfn()
265 wep->weReserved2 = 0; in unix2winfn()
271 memcpy(wep->wePart1, p, sizeof(wep->wePart1)); in unix2winfn()
272 p += sizeof(wep->wePart1) / sizeof(*p); in unix2winfn()
273 memcpy(wep->wePart2, p, sizeof(wep->wePart2)); in unix2winfn()
274 p += sizeof(wep->wePart2) / sizeof(*p); in unix2winfn()
275 memcpy(wep->wePart3, p, sizeof(wep->wePart3)); in unix2winfn()
280 wep->weCnt |= WIN_LAST; in unix2winfn()