~as-s/helenos/ipv6

« back to all changes in this revision

Viewing changes to uspace/srv/net/inetsrv/pdu.h

  • 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
39
40
 
40
41
#include <sys/types.h>
41
42
#include "inetsrv.h"
 
43
#include "ndp.h"
42
44
 
43
45
#define INET_CHECKSUM_INIT 0xffff
44
46
 
45
47
extern uint16_t inet_checksum_calc(uint16_t, void *, size_t);
46
48
 
47
 
extern int inet_pdu_encode(inet_packet_t *, size_t, size_t, void **,
 
49
extern int inet_pdu_encode_ipv4(inet_packet_t *, size_t, size_t, void **,
48
50
    size_t *, size_t *);
49
 
extern int inet_pdu_decode(void *, size_t, inet_packet_t *);
 
51
extern int inet_pdu_encode_ipv6(inet_packet_t *, size_t, void **,
 
52
    size_t *);
 
53
extern int inet_pdu_decode_ipv4(void *, size_t, inet_packet_t *);
 
54
extern int inet_pdu_decode_ipv6(void *, size_t, inet_packet_t *);
 
55
extern int ndp_pdu_decode(inet_dgram_t *, ndp_packet_t *);
 
56
extern int ndp_pdu_encode(ndp_packet_t *, inet_dgram_t *);
50
57
 
51
58
#endif
52
59