~as-s/helenos/ipv6

« back to all changes in this revision

Viewing changes to uspace/srv/net/inetsrv/reass.c

  • Committer: Anthony Steinhauser
  • Date: 2013-07-08 01:07:36 UTC
  • Revision ID: as@strmilov.cz-20130708010736-pbvrszhamp0v64ez
HelenOS networking stack supports IPv6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (c) 2012 Jiri Svoboda
 
3
 * Copyright (c) 2013 Antonin Steinhauser
3
4
 * All rights reserved.
4
5
 *
5
6
 * Redistribution and use in source and binary forms, with or without
138
139
                reass_frag_t *f1 = list_get_instance(f1_link, reass_frag_t,
139
140
                    dgram_link);
140
141
 
141
 
                if (f1->packet.src.s_addr == packet->src.s_addr &&
142
 
                    f1->packet.dest.s_addr == packet->dest.s_addr &&
 
142
                if (in6addr_equal(&f1->packet.src, &packet->src) &&
 
143
                    in6addr_equal(&f1->packet.dest, &packet->dest) &&
143
144
                    f1->packet.proto == packet->proto &&
144
145
                    f1->packet.ident == packet->ident) {
145
146
                        /* Match */