Subversion Repositories HelenOS

Rev

Rev 3886 | Rev 4261 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3886 Rev 3912
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (c) 2008 Lukas Mejdrech
2
 * Copyright (c) 2009 Lukas Mejdrech
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
5
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
7
 * are met:
7
 * are met:
Line 28... Line 28...
28
 
28
 
29
/** @addtogroup arp
29
/** @addtogroup arp
30
 *  @{
30
 *  @{
31
 */
31
 */
32
 
32
 
33
/**
-
 
34
 * @file
33
/** @file
-
 
34
 *  ARP module functions.
-
 
35
 *  The functions are used as ARP module entry points.
35
 */
36
 */
36
 
37
 
37
#ifndef __NET_ARP_MODULE_H__
38
#ifndef __NET_ARP_MODULE_H__
38
#define __NET_ARP_MODULE_H__
39
#define __NET_ARP_MODULE_H__
39
 
40
 
-
 
41
#include <errno.h>
-
 
42
 
40
#include <ipc/ipc.h>
43
#include <ipc/ipc.h>
41
 
44
 
-
 
45
/** Initializes the ARP module.
-
 
46
 *  @returns EOK on success.
-
 
47
 *  @returns ENOMEM if there is not enough memory left.
-
 
48
 */
42
int arp_initialize( void );
49
int arp_initialize( void );
-
 
50
 
-
 
51
/** Processes the ARP message.
-
 
52
 *  @param callid The message identifier. Input parameter.
-
 
53
 *  @param call The message parameters. Input parameter.
-
 
54
 *  @param answer The message answer parameters. Output parameter.
-
 
55
 *  @param answer_count The last parameter for the actual answer in the answer parameter. Output parameter.
-
 
56
 *  \todo all possible message returns?
-
 
57
 *  @returns EOK on success.
-
 
58
 *  @returns ENOTSUP if the message is not known.
-
 
59
 *  @see IS_NET_ARP_MESSAGE()
-
 
60
 */
43
int arp_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
61
int arp_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
44
 
62
 
45
#endif
63
#endif
46
 
64
 
47
/** @}
65
/** @}