Skip to contentSkip to conversation

Developing a custom module

DISCUSSION Ruslan R. Laishev 1 participant 2 messages Mar 13, 2018 – Mar 14, 2018

lore
Share & tools
lore
#0 lore raw

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. LaishevOpenVMS bigot, natural born system/network progger, C contractor.+79013163222+79910009922

#1 lore raw

Is the IP-stuff is available in the GRUB2 in EFI mode only ?

Is the IP-stuff is available in the GRUB2 in EFI mode only ?

13.03.2018, 16:12, "Ruslan R. Laishev" <[email protected]>: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. LaishevOpenVMS bigot, natural born system/network progger, C contractor.+79013163222+79910009922 ,_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

-- С уважением,
Ruslan R. LaishevOpenVMS bigot, natural born system/network progger, C contractor.+79013163222+79910009922