diff options
Diffstat (limited to 'libnetutils/packet.c')
-rw-r--r-- | libnetutils/packet.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/libnetutils/packet.c b/libnetutils/packet.c index cd26d058a..56168e844 100644 --- a/libnetutils/packet.c +++ b/libnetutils/packet.c @@ -1,37 +1,36 @@ /* * Copyright 2008, The Android Open Source Project * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ +#include <errno.h> #include <stdlib.h> #include <string.h> -#include <unistd.h> -#include <sys/uio.h> #include <sys/socket.h> +#include <sys/uio.h> +#include <linux/if_ether.h> +#include <linux/if_packet.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/udp.h> -#include <linux/if_packet.h> -#include <linux/if_ether.h> -#include <errno.h> +#include <unistd.h> #ifdef ANDROID #define LOG_TAG "DHCP" -#include <cutils/log.h> +#include <android/log.h> #else #include <stdio.h> -#include <string.h> #define ALOGD printf #define ALOGW printf #endif |