udhcpc6: align FF02__1_2[]
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
3636d52cbe
commit
301ef96892
@ -370,7 +370,8 @@ void udhcp_sp_setup(void) FAST_FUNC;
|
|||||||
void udhcp_sp_fd_set(struct pollfd *pfds, int extra_fd) FAST_FUNC;
|
void udhcp_sp_fd_set(struct pollfd *pfds, int extra_fd) FAST_FUNC;
|
||||||
int udhcp_sp_read(void) FAST_FUNC;
|
int udhcp_sp_read(void) FAST_FUNC;
|
||||||
|
|
||||||
int udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac) FAST_FUNC;
|
int udhcp_read_interface(const char *interface,
|
||||||
|
int *ifindex, uint32_t *nip, uint8_t *mac) FAST_FUNC;
|
||||||
|
|
||||||
int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC;
|
int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC;
|
||||||
|
|
||||||
|
@ -548,7 +548,7 @@ static uint8_t *add_d6_client_options(uint8_t *ptr)
|
|||||||
static int d6_mcast_from_client_data_ifindex(struct d6_packet *packet, uint8_t *end)
|
static int d6_mcast_from_client_data_ifindex(struct d6_packet *packet, uint8_t *end)
|
||||||
{
|
{
|
||||||
/* FF02::1:2 is "All_DHCP_Relay_Agents_and_Servers" address */
|
/* FF02::1:2 is "All_DHCP_Relay_Agents_and_Servers" address */
|
||||||
static const uint8_t FF02__1_2[16] = {
|
static const uint8_t FF02__1_2[16] ALIGNED(sizeof(long)) = {
|
||||||
0xFF, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0xFF, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02,
|
||||||
};
|
};
|
||||||
|
@ -27,9 +27,8 @@ void FAST_FUNC d6_dump_packet(struct d6_packet *packet)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int FAST_FUNC d6_recv_kernel_packet(struct in6_addr *peer_ipv6
|
int FAST_FUNC d6_recv_kernel_packet(struct in6_addr *peer_ipv6 UNUSED_PARAM,
|
||||||
UNUSED_PARAM
|
struct d6_packet *packet, int fd)
|
||||||
, struct d6_packet *packet, int fd)
|
|
||||||
{
|
{
|
||||||
int bytes;
|
int bytes;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user