# new IPv6 code

**URL:** <https://community.zeek.org/t/new-ipv6-code/2215>\
**Category:** Development\
**Tags:** development\
**Created:** [February 8, 2012, 11:02pm UTC](https://community.zeek.org/t/new-ipv6-code/2215 "2012-02-08T23:02:12Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [February 17, 2012, 5:00am UTC](https://community.zeek.org/t/new-ipv6-code/2215/21 "2012-02-17T05:00:02Z")

</div>

Thanks for working on my previous points.

I've made a pass over the code and stream-lined a few things further,  
see the recent commit message into my new branch. I didn't get to  
finishing it anymore, there's still some bug in the new serialization  
methods (I think).

I have one more request: I'd like to get rid of as many  
GetBytes()/CopyIPv6() calls as possible. Using those seems generally  
error-prone and I think we should avoid that by moving code into  
IPAddr.\* where we can can. I think some of their uses is just an  
artifact of how the old code was structured. Mind going through and  
see what can be done differently?

I've done a bit along these lines for the serialization code already,  
but another example is the various hashing code. Can we add methods to  
IPAddr to call from the hashing code so that it doesn't need to care  
about the internal representation?

Robin

---

<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:40pm UTC](https://community.zeek.org/t/new-ipv6-code/2215/22 "2022-05-06T15:40:10Z")

</div>



[Previous page](https://community.zeek.org/t/new-ipv6-code/2215.md?page=1)
