The following reply was made to PR bin/189471; it has been noted by GNATS.
From: Dennis Yusupoff <[email protected]>
To: bycn82 <[email protected]>, [email protected]
Cc:
Subject: Re: bin/189471: ipfw table regression
Date: Tue, 13 May 2014 13:58:11 +0400
This is a multi-part message in MIME format.
--------------060309080704020200020902
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
OK, I will try.
I think it's a time to add "helper" argument to *ipfw table add* command
so that you could set data type explicity, is it IPv6 or IPv4. Something
like that:
ipfw table XX add beef.de ipv6
ipfw table XX add beef.de ipv4
AFAIK, it greatly reduce complexity of programming attempt to guess what
kind of input data user meant.
13.05.2014 10:45, bycn82 ?????:
> developers are still working on it, so
>
> 1. you can get the latest source which already fixed this issue.
>
> 2. or just comment out the whole else trunk as below
> } else {
> /* Port or any other key */
> key = strtol(arg, &p, 10);
> /* Skip non-base 10 entries like 'fa1' */
> if (p != arg) {
> pkey = (uint32_t *)paddr;
> *pkey = htonl(key);
> type = IPFW_TABLE_CIDR;
> addrlen = sizeof(uint32_t);
> }
> }
>
> 3. or only comment out this line in the else trunk
> type = IPFW_TABLE_CIDR;
>
>
> Can the developer help to explain what kind of data you want to
> support in the table?
--
Best regards,
Dennis Yusupoff,
network engineer of
Smart-Telecom ISP
Russia, Saint-Petersburg
--------------060309080704020200020902
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
OK, I will try.<br>
<br>
I think it's a time to add "helper" argument to *ipfw table add*
command so that you could set data type explicity, is it IPv6 or
IPv4. Something like that:<br>
<br>
ipfw table XX add beef.de ipv6<br>
ipfw table XX add beef.de ipv4<br>
<br>
AFAIK, it greatly reduce complexity of programming attempt to guess
what kind of input data user meant.<br>
<br>
<div class="moz-cite-prefix">13.05.2014 10:45, bycn82
пишет:<br>
</div>
<blockquote cite="mid:[email protected]" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="Calibri">developers are still working on it, so <br>
<br>
1. you can get the latest source which already fixed
this
issue.<br>
<br>
2. or just comment out the whole else trunk as
below<br>
} else {<br>
/* Port or
any other key */<br>
key =
strtol(arg, &p, 10);<br>
/* Skip
non-base 10 entries like 'fa1' */<br>
if (p != arg)
{<br>
pkey = (uint32_t *)paddr;<br>
*pkey = htonl(key);<br>
type = IPFW_TABLE_CIDR;<br>
addrlen = sizeof(uint32_t);<br>
}<br>
}<br>
<br>
3. or only comment out this line in the else
trunk <br>
</font><font face="Calibri"> type =
IPFW_TABLE_CIDR;</font><br>
<br>
<br>
<font face="Calibri">Can the developer help to explain what kind
of data you want to support in the table?<br>
</font> </blockquote>
<br>
<pre class="moz-signature" cols="72">--
Best regards,
Dennis Yusupoff,
network engineer of
Smart-Telecom ISP
Russia, Saint-Petersburg </pre>
</body>
</html>
--------------060309080704020200020902--
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"