Lines Matching refs:wol
22 static int wol_check_magic(struct wol_hdr *wol, unsigned int len) in wol_check_magic() argument
30 if (wol->wol_sync[i] != WOL_SYNC_BYTE) in wol_check_magic()
34 if (memcmp(&wol->wol_dest[i * ARP_HLEN], in wol_check_magic()
43 struct wol_hdr *wol; in wol_receive() local
45 wol = (struct wol_hdr *)ip; in wol_receive()
47 if (!wol_check_magic(wol, len)) in wol_receive()
53 eth_env_set_enetaddr("wolpassword", wol->wol_passwd); in wol_receive()
56 struct in_addr *ip = (struct in_addr *)(wol->wol_passwd); in wol_receive()
67 struct wol_hdr *wol; in wol_udp_handler() local
69 wol = (struct wol_hdr *)pkt; in wol_udp_handler()
75 if (!wol_check_magic(wol, len)) in wol_udp_handler()