This file is indexed.

/usr/include/ieee802154.h is in liblowpan-dev 0.2.2-2ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
/*
 * IEEE802.15.4-2003 implementation user-space header.
 *
 * Copyright (C) 2008, 2009 Siemens AG
 *
 * Written-by: Dmitry Eremin-Solenikov
 * Written-by: Sergey Lapin
 * 
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef __IEEE802154_H
#define __IEEE802154_H

#ifdef HAVE_NET_IEEE802154_H
#include <net/ieee802154.h>
#endif
#ifdef HAVE_NET_AF_IEEE802154_H
#include <net/af_ieee802154.h>
#endif

#ifndef IEEE802154_ADDR_LEN
#define IEEE802154_ADDR_LEN 8
#endif

#include <sys/socket.h>
#include <stdint.h>
#ifndef HAVE_STRUCT_SOCKADDR_IEEE802154

enum {
	IEEE802154_ADDR_NONE = 0x0,
	// RESERVER = 0x01,
	IEEE802154_ADDR_SHORT = 0x2, /* 16-bit address + PANid */
	IEEE802154_ADDR_LONG = 0x3, /* 64-bit address + PANid */
};

struct ieee802154_addr {
	int addr_type;
	uint16_t pan_id;
	union {
		uint8_t hwaddr[IEEE802154_ADDR_LEN];
		uint16_t short_addr;
	};
};

struct sockaddr_ieee802154 {
	sa_family_t family; /* AF_IEEE802154 */
	struct ieee802154_addr addr;
};
#endif

#ifndef N_IEEE802154
#define N_IEEE802154 22
#ifdef ENABLE_KERNEL_COMPAT
#define N_IEEE802154_OLD 19
#endif
#endif

#ifndef PF_IEEE802154
#define PF_IEEE802154 36
#define AF_IEEE802154 PF_IEEE802154
#endif

#include <net/if_arp.h>
#ifndef ARPHRD_IEEE802154
#define ARPHRD_IEEE802154	  804
#define ARPHRD_IEEE802154_PHY	  805
#endif

#ifndef IEEE802154_MAC_SCAN_ED
#define IEEE802154_MAC_SCAN_ED		0x0
#define IEEE802154_MAC_SCAN_ACTIVE	0x1
#define IEEE802154_MAC_SCAN_PASSIVE	0x2
#define IEEE802154_MAC_SCAN_ORPHAN	0x3
#endif

#include <linux/if_ether.h>
#ifndef ETH_P_IEEE802154
#define ETH_P_IEEE802154 0x00F6		/* IEEE802.15.4 frame		*/
#endif

/* get/setsockopt */
#ifndef SOL_IEEE802154
#define SOL_IEEE802154	0
#endif

#ifndef WPAN_WANTACK
#define WPAN_WANTACK	0
#endif


#endif