13.03.2018, 16:12, "Ruslan R. Laishev" <address@hidden>:
Hi There!
I developing a my own custom module to be used in the GRUB2 ...
This module is use UDP to talk with a remote server.
So I have checked grub-core/net and try to use a next initialization sequence :
...
/**/
if ( status = grub_net_resolve_address("172.16.1.1", &kdepo_ip) )
return grub_error(grub_errno, "grub_net_resolve_address() -> %d, errno = %d", status, grub_errno);
/* Create UDP's context */
if ( !(nctx.sd = grub_net_udp_open (kdepo_ip, 512, hook_recv, &nctx)) )
return grub_error(grub_errno, "grub_net_udp_open(), errno = %d", grub_errno);
...
Test run show me
grub_net_udp_open(), errno = 34
Is there some steps I'm need to performs additionaly to get access to netwrok stuff ?
--
С уважением,
Ruslan R. Laishev
OpenVMS bigot, natural born system/network progger, C contractor.
+79013163222
+79910009922
,_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel
OpenVMS bigot, natural born system/network progger, C contractor.