I think I've done it. I've edited local/plugins/RT-IR/lib/RT/Action/RTIR_FindIP.pm and inserted a line at line 50:<br><br><span style="font-family: courier new,monospace;">49 while ( my ($addr, $bits) = splice @CIDRs, 0, 2 ) {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">50 <b>if ($bits < 32) { exit 0; }</b></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">51 my $cidr = join( '.', map $_||0, (split /\./, $addr)[0..3] ) ."/$bits";</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">52 my $range = (Net::CIDR::cidr2range( $cidr ))[0] or next;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">53 $self->AddIP( IP => $range, CustomField => $cf, Skip => \%existing );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">54 }</span><br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 9:08 PM, Landon Stewart <span dir="ltr"><<a href="mailto:lstewart@superb.net">lstewart@superb.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I want to record the IP addresses but not the ranges of IP addresses. I'll have a look at the scrip and see what I can do.<div>
<div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 8:58 PM, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruslan.zakirov@gmail.com" target="_blank">ruslan.zakirov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Landon, it's a scrip and you can just disable it.<br>
<div><div></div><div><br>
On Wed, Oct 7, 2009 at 10:44 PM, Landon Stewart <<a href="mailto:lstewart@superb.net" target="_blank">lstewart@superb.net</a>> wrote:<br>
> Even if there was some way to stop RTIR from expanding and storing ranges<br>
> when creating the ticket that would be fine since there's really no need for<br>
> the range data to be maintained for us. If anyone knows of a way to do this<br>
> or where this is done so I can kludge something together that would be<br>
> awesome. I find it difficult to trace how things are done when the MTA<br>
> calls the URL using the API.<br>
><br>
> On Wed, Oct 7, 2009 at 1:34 AM, Ruslan Zakirov <<a href="mailto:ruslan.zakirov@gmail.com" target="_blank">ruslan.zakirov@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hello Landon,<br>
>><br>
>> I don't think it's supported out of the box. However it can be improved.<br>
>><br>
>> On Wed, Oct 7, 2009 at 1:48 AM, Landon Stewart <<a href="mailto:lstewart@superb.net" target="_blank">lstewart@superb.net</a>><br>
>> wrote:<br>
>> > When using "Lookup IP" how do I not get hits from CIDR ranges? Some<br>
>> > incident reports included CIDR ranges when they include our own whois<br>
>> > information for an IP address. I'd like to not see tickets that are not<br>
>> > directly related to the IP address for the ticket I'm looking at when I<br>
>> > do a<br>
>> > search to see if other tickets about that IP address are received. In<br>
>> > other<br>
>> > words I'd like to limit the search to exact matches only. Can I change<br>
>> > the<br>
>> > "$type" in the GET to something other than "ip" to make lookuptype not<br>
>> > search inside ranges that match the one IP?<br>
>> ><br>
>> > --<br>
>> > Landon Stewart <<a href="mailto:LStewart@SUPERB.NET" target="_blank">LStewart@SUPERB.NET</a>><br>
>> > SuperbHosting.Net by Superb Internet Corp.<br>
>> > Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
>> > Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net" target="_blank">http://www.superbhosting.net</a><br>
>> ><br>
>> > _______________________________________________<br>
>> > Rtir mailing list<br>
>> > <a href="mailto:Rtir@lists.bestpractical.com" target="_blank">Rtir@lists.bestpractical.com</a><br>
>> > <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir</a><br>
>><br>
>><br>
>> --<br>
>> Best regards, Ruslan.<br>
><br>
><br>
><br>
> --<br>
> Landon Stewart <<a href="mailto:LStewart@SUPERB.NET" target="_blank">LStewart@SUPERB.NET</a>><br>
> SuperbHosting.Net by Superb Internet Corp.<br>
> Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
> Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net" target="_blank">http://www.superbhosting.net</a><br>
><br>
> _______________________________________________<br>
> Rtir mailing list<br>
> <a href="mailto:Rtir@lists.bestpractical.com" target="_blank">Rtir@lists.bestpractical.com</a><br>
> <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Best regards, Ruslan.<br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><div><div></div><div class="h5">Landon Stewart <<a href="mailto:LStewart@SUPERB.NET" target="_blank">LStewart@SUPERB.NET</a>><br>SuperbHosting.Net by Superb Internet Corp.<br>
Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net" target="_blank">http://www.superbhosting.net</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Landon Stewart <<a href="mailto:LStewart@SUPERB.NET">LStewart@SUPERB.NET</a>><br>SuperbHosting.Net by Superb Internet Corp.<br>Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net">http://www.superbhosting.net</a><br>