# error with local nets definition

**URL:** <https://community.zeek.org/t/error-with-local-nets-definition/1347>\
**Category:** Zeek\
**Created:** [June 18, 2008, 6:42pm UTC](https://community.zeek.org/t/error-with-local-nets-definition/1347 "2008-06-18T18:42:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uday\_chekuri](https://avatars.discourse-cdn.com/v4/letter/u/e480ec/32.png) [@uday\_chekuri](https://community.zeek.org/u/uday_chekuri)\
**Post date:** [June 18, 2008, 6:42pm UTC](https://community.zeek.org/t/error-with-local-nets-definition/1347/1 "2008-06-18T18:42:10Z")

</div>

Hi,

I am trying to run offline analysis using bro on pcap files.

I created local.bro as

redef local\_nets: set[subnet] = {  
a.b.c.d/24,  
};

@load brolite  
@load brolite-sigs

Then I am trying to use

bro -r trace1.tcpdump local.bro

but giving me errors like this

/usr/local/bro//policy/local.bro, line 1 (local\_nets): error, “redef” used but not previously defined

What can I do to overcome this error.

Thanks in advance.

–uday

---

<div class="post-metadata">

**Author:** ![Jim\_Mellander](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Jim\_Mellander](https://community.zeek.org/u/Jim_Mellander)\
**Post date:** [June 18, 2008, 8:12pm UTC](https://community.zeek.org/t/error-with-local-nets-definition/1347/2 "2008-06-18T20:12:59Z")

</div>

Try putting the redef after the @load commands - it needs to be defined in the @load'ed scripts before it can be redef'd.

Hope this helps.

uday chekuri wrote:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:38pm UTC](https://community.zeek.org/t/error-with-local-nets-definition/1347/3 "2022-05-06T15:38:34Z")

</div>


