Displaying 4 results from an estimated 4 matches for "ip_str".
Did you mean:
id_str
2007 Feb 12
1
playing with SO_BROADCAST on centos
...ress", "ID");
while(1)
{
tm.tv_sec = 0;
tm.tv_usec = 500000;
FD_ZERO(&read_set);
FD_SET(socket_handle, &read_set);
error = select(socket_handle + 1, &read_set, NULL, NULL, &tm);
if(error <= 0)
{
break;
}
else
{
char ip_str[100];
char mac_str[100];
char mask_str[100];
error = recvfrom(socket_handle, &nmp, sizeof(nmp), 0, NULL, 0);
if(error < 0)
{
printf("errno=%d %s\n", errno, strerror(errno));
continue;
}
else if(nmp.code != IWord(NMP_LIST))
{
prin...
2019 Apr 18
0
[PATCH] efi/pxe.c: Allow ipv4 host names
...le changed, 49 insertions(+)
diff --git a/efi/pxe.c b/efi/pxe.c
index 5b552b39..366f30fd 100644
--- a/efi/pxe.c
+++ b/efi/pxe.c
@@ -35,8 +35,52 @@ int reset_pxe(void)
#define DNS_MAX_SERVERS 4 /* Max no of DNS servers */
uint32_t dns_server[DNS_MAX_SERVERS] = {0, };
+
+/*
+ * parse the ip_str and return the ip address with *res.
+ * return true if the whole string was consumed and the result
+ * was valid.
+ *
+ */
+static bool parse_quad(const char *ip_str, uint32_t *res)
+{
+ const char *p = ip_str;
+ uint8_t part = 0;
+ uint32_t ip = 0;
+ int i;
+
+ for (i = 0; i <...
2011 Nov 15
3
getenv() in plugin not working
...nip>, method=PLAIN, rip=<snip>, lip=<snip>, mpid=4018, TLS
server dovecot: imap(<snip>: Error: DRAC: IP environment not given
I traced the "IP environment not given" to the drac.c plugin file, and the code is pretty simple:
void drac_init(void)
{
const char *ip_str;
struct ip_addr ip;
ip_str = getenv("IP");
if (ip_str == NULL)
i_error("DRAC: IP environment not given");
Is there anything special that needs to be done for getenv("IP") to report the login IP? I tried to put getenv("R...
2015 Sep 10
3
[PATCH 0/1] efi: DNS resolver
From: Sylvain Gault <sylvain.gault at gmail.com>
Despite having native network capabilities, UEFI 2.4 (the most widely deployed
at the moment) has no native DNS resolver. I propose here an implementation
more or less inspired by the one found in core/legacynet/dnsresolv.c.
Since it's non-trivial, I'd like to ask for a deep review of this code. I tried
to make it as strong as