This file is indexed.

/usr/include/wvstreams/wvipraw.h is in libwvstreams-dev 4.6.1-5.

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
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2003 Net Integration Technologies, Inc.
 *
 */
#ifndef __WVIPRAW_H
#define __WVIPRAW_H

#include "wvfdstream.h"
#include "wvaddr.h"
#include <netinet/in.h>

/**
 * WvIPRawStream can send and receive packets on a connectionless IP socket.
 * 
 * In the constructor, the socket is attached using bind() to the given
 * _local address.  If the address is 0.0.0.0, all addresses on the local
 * host are used; if the port is 0, an available port number is chosen
 * automatically.
 * 
 * If the _rem address is 0.0.0.0, the port is not connect()ed.  That means
 * it can receive packets from anywhere and send them to anywhere.  The
 * src() and setdest() functions are useful for this.  If _rem is not 0.0.0.0,
 * connect() is called and the socket will only accept data to/from the
 * specified remote UDP address.
 * 
 * Buffering: all the usual WvStream-style input buffering is available,
 * including getline(), but because input packets may get lost it is of
 * limited usefulness.  Buffering will cause particular confusion if the
 * socket is not connect()ed.
 */
class WvIPRawStream : public WvFDStream
{
public:
    /** connect a new socket */
    WvIPRawStream(const WvIPAddr &_local, const WvIPAddr &_rem,
		  int ip_protocol = IPPROTO_RAW);
    virtual ~WvIPRawStream();
    
    const WvAddr *local() const;
    
    /**
     * return the remote address (source of incoming packets, target of
     * outgoing packets).  This is the last host sent to or received from,
     * whichever was more recent.
     */
    virtual const WvAddr *src() const;
    void setdest(const WvIPAddr &_remaddr)
        { remaddr = _remaddr; }
    
    void enable_broadcasts();

protected:
    WvIPAddr localaddr, remaddr;
    
    virtual size_t uread(void *buf, size_t count);
    virtual size_t uwrite(const void *buf, size_t count);

public:
    const char *wstype() const { return "WvIPRawStream"; }
};


#endif // __WVIPRAW_H