Thomas Bernard
08127b85d4
Merge branch 'portinuse'
...
Conflicts:
miniupnpd/Makefile.linux
2014-03-28 12:52:18 +01:00
Thomas Bernard
f6f4e56bdf
miniupnpd/portinuse: cleanup
2014-03-28 12:50:42 +01:00
Thomas Bernard
0decb351e9
miniupnpd/pcpserver.c: check source address of PCP request
2014-03-24 15:03:12 +01:00
Thomas Bernard
d233655630
miniupnpd/pcpserver.c: fix for IPv6
2014-03-24 12:15:50 +01:00
Thomas Bernard
ad88cc0819
miniupnpd: start work to enable IPv6 PCP operations
2014-03-24 12:07:31 +01:00
Thomas Bernard
f70484f27f
miniupnpd/minissdp.c: reduce syslog() verbosity
...
LOG_INFO => LOG_DEBUG
2014-03-24 10:33:52 +01:00
Thomas Bernard
ba1875b52c
miniupnpd/pcpserver.c: add comments
2014-03-24 10:24:41 +01:00
Thomas Bernard
7137665101
miniupnpd/pcpserver.c: prepare code to be able to manage more than just TCP and UDP
2014-03-24 10:24:19 +01:00
Thomas Bernard
814a6b253a
miniupnpd/pcpserver.c: use const where useful
2014-03-24 10:23:07 +01:00
Thomas Bernard
b1fb9cfdc4
miniupnpd/pcpserver.c: take care of "nonce" value
2014-03-24 10:21:26 +01:00
Thomas Bernard
4a7f97c7f3
miniupnpd/pcp_msg_struct.h: comments
2014-03-22 13:12:10 +01:00
Thomas Bernard
6eab849b2e
miniupnpd/portinuse.c: Improve error handling in DragonFly BSD code
2014-03-20 14:07:52 +01:00
Thomas Bernard
6419602e14
miniupnpd/portinuse: port_in_use() returns -1 in case of error
2014-03-20 13:49:10 +01:00
Thomas Bernard
aea062a7ba
miniupnpd/portinuse.c: Add DragonFly BSD implementation
...
Thanks to YONETANI Tomokazu.
2014-03-20 13:40:53 +01:00
Thomas Bernard
5a3a670e89
miniupnpd/bsd/getifstats.c: fix for DragonFly BSD
...
struct ifnet is private to kernel code and is hidden from the userland
code unless you define a macro _KERNEL_STRUCTURES. Although other people
argue that it should be exposed as it is on other BSDs, that's the way
it is on DragonFly BSD.
Thanks to YONETANI Tomokazu for DragonFly BSD patches
2014-03-19 12:25:52 +01:00
Thomas Bernard
75cb38edda
miniupnpd/Makefile: allow to override FWNAME
2014-03-19 12:23:48 +01:00
Thomas Bernard
601bd2618b
miniupnpd/Makefile: fix for DragonFly BSD
...
TYPE : chechyesno => checkyesno
2014-03-18 10:17:19 +01:00
Thomas Bernard
f7b6b1ec19
miniupnpd/Makefile: Mac OS X switched from ipfw to pf
...
OS X 10.7 Lion switched to pf
2014-03-18 09:34:25 +01:00
Thomas Bernard
708c83d873
miniupnpd/Makefile: fix for DragonFly BSD
2014-03-18 09:33:33 +01:00
Thomas BERNARD
e657211157
miniupnpd/Makefile.macosx: update for testasyncsendto and testportinuse
2014-03-17 15:36:10 +01:00
Thomas BERNARD
ba448fd7dd
miniupnpd/testasyncsendto.c: remove warning if struct timeval fields are not long int
2014-03-17 15:35:18 +01:00
Thomas Bernard
a959e9e7de
miniupnpd/upnpevents.c: comments/logs/etc.
2014-03-15 10:54:23 +01:00
Thomas Bernard
76170e5413
miniupnpd/upnphttp.c: Support for multiple URL in Callback: header (SUBSCRIBE)
2014-03-15 10:52:39 +01:00
Thomas Bernard
19261b6fef
reject renewal of subscribtion that already timeouted
2014-03-15 10:51:32 +01:00
Thomas Bernard
3629b10ff5
miniupnpd: add port_in_use() implementation for OpenBSD
2014-03-14 12:08:13 +01:00
Thomas Bernard
dcce22647d
miniupnpd: add testportinuse test program
2014-03-14 12:07:03 +01:00
Thomas Bernard
7cb493919f
miniupnpd/getifaddr.c: don't use getifaddrs() in IPv4 only
...
should fix #62 :
Don't use getifaddrs() in IPv4 only
so we avoid problems if getifaddrs() implementation is buggy
2014-03-14 10:04:49 +01:00
Thomas Bernard
09bbaac63a
miniupnpd/portinuse.c: add #ifdef __linux__
...
TODO : BSD Code
2014-03-13 14:58:36 +01:00
Thomas Bernard
15a2320c86
miniupnpd/portinuse.c/iptcrdr.c: cosmetic changes
2014-03-13 14:49:05 +01:00
Thomas Bernard
c4e63048c4
miniupnpd: add CHECK_PORTINUSE to enable/disable port_in_use()
2014-03-13 14:48:52 +01:00
Thomas Bernard
06764123fb
Merge remote branch 'origin/master' into portinuse
...
Conflicts:
miniupnpd/Makefile.linux
miniupnpd/natpmp.c
2014-03-13 14:19:44 +01:00
Thomas Bernard
a7d9071c5a
miniupnpd/upnpevents.c: fix upnp_event_notify_connect() when ENABLE_IPV6 is set
2014-03-13 11:56:28 +01:00
Thomas Bernard
8d93ddb076
miniupnpd: change IP change msg from LOG_DEBUG to LOG_INFO
2014-03-13 11:34:34 +01:00
Thomas Bernard
9f665b572f
miniupnpd: fix BSD Makefile
2014-03-13 11:34:34 +01:00
Thomas Bernard
62d6c860ce
catch up Changelog.txt
...
see commit 3ed3478398
2014-03-13 11:34:34 +01:00
Thomas Bernard
7b13adafbd
miniupnpd: reduce number of global variables by using more runtime_flags
...
change ipv6_enabled/ipv6fc_inbound_pinhole_allowed/ipv6fc_firewall_enabled
global vars to flags in runtime_flags
2014-03-13 11:34:33 +01:00
Thomas Bernard
15682180a5
miniupnpd: Work in IPv6 on system where PF_INET6 are restricted to IPv6 only
2014-03-13 11:34:08 +01:00
Thomas Bernard
2a48074f45
miniupnpd: Enable PCP by default.
2014-03-13 11:24:04 +01:00
Thomas Bernard
3ed3478398
miniupnpd/getifaddr.c: clean up and fix getifaddr_in6()
2014-03-13 10:42:07 +01:00
Thomas Bernard
81fa1bcd57
miniupnpd/getifaddr.c: getifaddr_in6() only return IPv4 address when IPV6 disabled
...
see if it can help for issue #62
pcp/CheckAddress() is likely to need more changes.
2014-03-13 10:00:42 +01:00
Thomas Bernard
d397d73628
miniupnpd/getifaddr.c: fix getifaddr_in6()
...
-1 is returned if no address is found
2014-03-13 09:56:34 +01:00
Thomas Bernard
081c46338c
miniupnpd/upnppermissions.c: disable match_permission_internal()
2014-03-13 09:53:44 +01:00
Daniel Becker
408a0b55f6
miniupnpd/pcpserver.c: return error code if PCP mapping fails
...
This change causes CreatePCPMap to return a PCP_ERR_NO_RESOURCES
response when upnp_redirect_internal does not succeed;
previously, no error code was returned in this case.
2014-03-11 02:06:38 -07:00
Daniel Becker
efbb95aa10
miniupnpd/pcpserver.c: port NAT-PMP updates to PCP
...
This change ports the recent updates to the permissions checking
and eport selection code for NAT-PMP to the PCP MAP handler.
2014-03-11 01:54:10 -07:00
Thomas Bernard
210876f2a7
miniupnpd/natpmp.c: make indentation consistant and add a comment
2014-03-11 09:47:09 +01:00
Daniel Becker
4f160366bd
miniupnpd/natpmp.c: remove obsolete assignment
...
The eport_first variable now gets initialized in the first
iteration of the while loop; the assignment right before the
loop should have been removed in the previous commit.
2014-03-10 11:14:49 -07:00
Daniel Becker
f4f4573f53
miniupnpd: fix eport selection and error handling
...
The find_available_eport function that was intended to check if
at least one eport is allowed for a given iaddr/iport does not
work as intended; for example, it does not properly handle rule
precedence (i.e., it considers allow rules even if they are
effectively masked by earlier deny rules), and it also does not
handle the case where no rules are specified at all (which
should default to accept in order to be consistent with
check_upnp_rule_against_permissions). The present change removes
this function and instead integrates the check into the existing
while loop that iterates over all eports.
2014-03-10 00:32:23 -07:00
Thomas Bernard
ecf414e160
miniupnpd/Changelog.txt: Catch up changes...
2014-03-10 00:12:20 +01:00
Thomas Bernard
a27979afde
Merge branch 'fix_pf_redirect'
...
Conflicts:
miniupnpd/pf/testobsdrdr.c
2014-03-10 00:03:06 +01:00
Thomas BERNARD
0ff8e67c26
Merge pull request #57 from razzfazz/natpmp_avoid_port_zero
...
miniupnpd/natpmp.c: skip port zero when finding free eport
2014-03-08 01:03:43 +01:00
Daniel Becker
1db670d6ff
miniupnpd/natpmp.c: skip port zero when finding free eport
...
When skipping ports that are in use or not allowed, the existing
NAT-PMP code will consider port zero as a candidate eport after
wraparound occurs. Since this is not a legal port, we skip over it.
port zero as an eport value.
2014-03-07 11:02:04 -08:00
Daniel Becker
ba04327bb0
miniupnpd/natpmp.c: remove redundant break statements
...
These two break statements are redundant: The subsequent continue
statement will cause the loop condition to be re-evaluated, at which
point the loop will terminate if resp[3] != 0.
2014-03-07 07:42:40 -08:00
Thomas Bernard
e385db03b9
miniupnpd: improved permission checking for NAT-PMP
...
NAT-PMP now searches an allowed eport if the one from
request is not, instead of returning an error
2014-03-07 11:48:17 +01:00
Thomas Bernard
b7ee469980
miniupnpd/pf: update testobsdrdr.c
2014-03-06 14:24:58 +01:00
Thomas Bernard
60e129d131
miniupnpd/pf: delete_redirect_and_filter_rules() now take internal address into account
2014-03-06 14:24:10 +01:00
Thomas Bernard
acc149ee99
miniupnpd/pf: fix add_filter_rule2() by adding internal address
2014-03-06 14:23:13 +01:00
Thomas Bernard
65b776f1ed
miniupnpd/pf: add clear_filter_rules() for testing
...
also add a --clear / -c argument to testobsdrdr programm
2014-03-06 14:21:39 +01:00
Thomas Bernard
f49a70aab0
miniupnpd/testgetifaddr.c: also test find_ipv6_addr()
2014-03-03 12:37:01 +01:00
Thomas Bernard
e5146cdf24
miniupnpd/Makefile.linux: fixes for testasyncsendto
...
also update dependencies
2014-03-03 12:35:12 +01:00
Daniel Becker
edd501f59c
miniupnpd/natpmp.c: return correct error code when all external ports in use
...
Instead of returning code 3 ("Network Failure"), we should the
more appropriate code 4 ("Out of resources") when no external
port is available for a mapping.
2014-02-28 14:47:53 -08:00
Thomas Bernard
5512d022ac
miniupnpd/pf/obsdrdr.c: add UNUSED() when necessary
2014-02-28 21:28:12 +01:00
Thomas Bernard
9d23b88cef
miniupnpd/pf: replace delete_filter_rule()
...
now use delete_redirect_and_filter_rules()
2014-02-28 21:26:52 +01:00
Thomas Bernard
37208eecae
miniupnpd/pf/obsdrdr.c: improve documentation
2014-02-28 21:22:52 +01:00
Thomas Bernard
9c7df04b13
miniupnpd/pcpserver.c: fix defines
...
with OpenBSD, <netinet/in.h> must be included before <arpa/inet.h>
2014-02-28 20:26:02 +01:00
Thomas Bernard
56aca98164
miniupnpd/pf: catch up test programs
2014-02-28 20:20:51 +01:00
Thomas Bernard
802ad22f4d
miniupnpd: minor stuff (remove warning, add debug log)
2014-02-28 16:40:20 +01:00
Thomas Bernard
dbdad6a79b
miniupnpd: improve finalize_sendto()
2014-02-28 16:39:59 +01:00
Thomas Bernard
b71e0c028f
Merge branch 'limit_eport_search'
2014-02-28 13:36:28 +01:00
Thomas Bernard
3c90f6a30d
miniupnpd/natpmp.c: avoid hang when all external ports in use
...
reorganize a bit
2014-02-28 13:34:46 +01:00
Thomas Bernard
8fc7f0b5e1
miniupnpd: log message when shutting down
2014-02-28 13:16:22 +01:00
Thomas Bernard
6dff4263bd
miniupnpd/Changelog.txt catch up...
2014-02-28 13:16:06 +01:00
Daniel Becker
c6a8879c87
miniupnpd/natpmp.c: avoid hang when all external ports in use
...
The NAT-PMP code attempts to find a different eport if the
requested one is already in use. If all eports are in use, that
would previously cause the code to iterate through the range of
eports forever. To avoid this case, we keep track of the first
eport we attempted to use and abort the loop once we've cycled
through all possible values exactly once (which takes us back
to the initial eport).
2014-02-28 00:00:26 -08:00
hashiz
1efb4cc03c
* fix incorrect filter port in pf redirect.
2014-02-28 11:28:07 +09:00
Thomas Bernard
c492b6f56f
minissdp.c: try again write after EINTR in SubmitServicesToMiniSSDPD()
2014-02-26 02:02:34 +01:00
Thomas Bernard
34d0954718
Merge branch 'sendto_schedule'
2014-02-25 11:47:30 +01:00
Thomas Bernard
ec1686f29f
miniupnpd/minissdp: Introduce SSDP_RESPOND_SAME_VERSION
...
changes something when compiled as IGDv2.
2014-02-25 11:45:51 +01:00
Thomas Bernard
9832adc456
miniupnpd/minissdp.c: send ssdp:alive packets more than once
...
fixes #35
2014-02-25 11:37:36 +01:00
Thomas Bernard
a06c695fe3
miniupnpd/asyncsendto: finalize_sendto()
2014-02-25 11:36:58 +01:00
Thomas Bernard
02165b70dc
minissdp.c: wait for a delay before answering M-SEARCH
2014-02-25 11:16:34 +01:00
Thomas Bernard
c1e624ecd4
miniupnpd: use asyncsendto
2014-02-25 11:15:30 +01:00
Thomas Bernard
cbc1a3c96a
miniupnpd: add sendto() queuing
2014-02-25 11:10:05 +01:00
Thomas Bernard
1985cbf3ef
asyncsendto: remove failed sendto() from queue
2014-02-25 11:08:27 +01:00
Thomas Bernard
d20d959920
miniupnpd/asyncsendto.h: improve comments/doc
2014-02-25 11:07:47 +01:00
Thomas Bernard
e00c1bc6e9
miniupnpd.c: init random number generator in init()
2014-02-25 10:24:22 +01:00
Thomas Bernard
8691c9c0e0
miniupnpd.c: improve comment for init()
2014-02-25 10:23:59 +01:00
Thomas Bernard
06d9d36e99
miniupnpd/asyncsendto: make sendto_schedule work
2014-02-20 16:08:20 +01:00
Thomas Bernard
b2143eff94
implementation of queuing of messages to send.
2014-02-18 09:34:42 +01:00
Christopher Meng
86d3e7c053
Corrent the binary permission from 555 to 755
2014-02-14 16:56:10 +08:00
Thomas Bernard
16ea0db411
miniupnpd: Fix PCP Map renewal
2014-02-11 10:41:26 +01:00
Thomas Bernard
50f8f6c76f
miniupnpd/pcpserver.c: add info message for Mapping renewal
2014-02-11 10:40:46 +01:00
Thomas Bernard
32b6e8c0fa
miniupnpd/commonrdr.h: improve comments
2014-02-11 10:38:50 +01:00
Thomas Bernard
bc67a7133b
miniupnpd/upnputils.c: improve log in get_lan_for_peer()
2014-02-06 10:57:51 +01:00
Thomas Bernard
18f02dccb3
miniupnpd: possibility to disable ipv6 at runtime
...
fixes #049
2014-02-06 10:57:39 +01:00
Thomas Bernard
b7a4f8d696
minixml.c: now handle XML comments
2014-02-03 11:28:31 +01:00
Thomas Bernard
538c002373
miniupnpd: PCP Add support for ANNOUNCE requests
2014-02-03 10:50:29 +01:00
Thomas Bernard
46905418ca
miniupnpd: various PCP fixes
2014-02-03 10:49:59 +01:00
Thomas Bernard
f6b5408e87
miniupnpd: define min/max_lifetime only when needed
2014-02-03 10:47:47 +01:00
Thomas Bernard
3712118bc4
miniupnpd: removed unused code
...
ScanNATPMPforExpiration() CleanExpiredNATPMP() are not used anymore
2014-02-03 10:45:59 +01:00
Thomas Bernard
18db1145ea
miniupnpd.c: comments in parselanaddr()
2014-02-03 10:44:24 +01:00
Thomas Bernard
49780a99ea
miniupnpd/minissdp.c: check return value of AddMulticastMembershipIPv6()
2014-02-03 10:42:38 +01:00
Thomas Bernard
064fcd2739
miniupnpd/pcpserver.c: Removed IPV6_ADDR_COPY and other simplifications
...
modifications that were forgotten in commit e23c589972
2014-01-27 12:07:54 +01:00
Thomas Bernard
0734265092
Makefile.linux: update dependencies
2014-01-27 11:09:30 +01:00
Thomas Bernard
401c624bcf
miniupnpd/INSTALL: update infos
...
rdr-anchor lines should be removed in OpenBSD since 4.7
rephrased a bit the part about permissions
2014-01-14 09:26:24 +01:00
Thomas Bernard
a93393df44
update README's to include PCP
2014-01-14 09:25:19 +01:00
Thomas Bernard
3b0055f1a5
Merge remote branch 'origin/config_manufacturer'
2013-12-24 15:38:19 +01:00
Thomas Bernard
4fe0fb1809
miniupnpd/pcpserver.c: minor syntax fixes
2013-12-16 17:04:45 +01:00
Thomas Bernard
e23c589972
miniupnpd/pcpserver.c: Removed IPV6_ADDR_COPY and other simplifications
2013-12-16 17:04:00 +01:00
Thomas BERNARD
fa87b3aff7
miniupnpd: attempt to compile for OS X/pf
2013-12-16 13:03:54 +01:00
Leo Moll
d05abb5921
Added option to enable vendor configuration
2013-12-13 19:40:52 +01:00
Thomas Bernard
e2a1c4d4c9
pcpserver.c: small code simplification
2013-12-13 17:15:51 +01:00
Thomas Bernard
f774a54bac
remove C++ style comments
2013-12-13 17:01:41 +01:00
Thomas Bernard
1e08e9ed4d
getifaddr: more portable code (works with old OpenBSD)
2013-12-13 16:59:51 +01:00
Thomas Bernard
6a8a580e6f
Makefile: add pcpserver.o
2013-12-13 16:57:42 +01:00
Thomas Bernard
278f6b5e45
update Changelog.txt :)
2013-12-13 16:57:07 +01:00
Thomas Bernard
f7cb8a6848
update .gitignore
2013-12-13 14:43:15 +01:00
Thomas Bernard
00adeeaaad
typo fix
2013-12-13 14:41:21 +01:00
Thomas Bernard
b9daf5cc27
testupnpdescgen.c: minor fix on getifaddr()
2013-12-13 12:35:36 +01:00
Thomas Bernard
9b72af6f36
Merge branch 'master' into portinuse
2013-12-13 12:29:01 +01:00
Thomas Bernard
d19048ef9e
miniupnpd: Make all manufacturer info configurable
2013-12-13 12:03:28 +01:00
zhu
a93028913c
avoid compile warning
2013-11-20 14:52:04 +08:00
Leo Moll
d200fb748f
Made all manufacturer related information configurable:
...
- manufacturer_name, default is "`uname -s`"
- manufacturer_url, default is URL of OS verndor
- model_name, default is "`uname -s` router"
- model_description, default is "`uname -s` router"
- model_url, default is URL of OS verndor
2013-10-20 23:02:19 +02:00
Thomas Bernard
55099d5fc6
upnpsoap.c: adding TODO... to be done later for compliance
2013-08-19 18:25:54 +02:00
Thomas BERNARD
940b36b94b
Merge pull request #42 from libpcp/master
...
PCP fixes
2013-07-30 04:34:27 -07:00
Thomas Bernard
98fcc3c757
fix 58827720da
2013-07-30 08:59:13 +02:00
Peter Tatrai
4bdec457a2
Add IPv4 permission check into PCP MAP operation
2013-07-23 08:59:03 +02:00
Peter Tatrai
3f85c8b859
Fix PCP MAP mapping refresh
2013-07-23 08:59:03 +02:00
Peter Tatrai
9e1ffd5cd9
Add initial PCP support
2013-07-11 09:38:55 +02:00
Thomas Bernard
87a7f05be6
minissdp.c: Also send byebye with all UUIDs
2013-06-15 14:51:28 +02:00
Thomas Bernard
04dec5cf7b
send UUID based SSDP notify for each device
2013-06-14 19:10:59 +02:00
Thomas Bernard
50ec2fce4a
Have distinct UUID for the 3 devices (IGD, WAN Device, WAN Connection Device)
2013-06-13 16:03:36 +02:00
Thomas Bernard
01bffe494d
miniupnpd/minissdp.c: rename SendSSDPAnnounce2() to SendSSDPResponse()
2013-06-11 20:03:15 +02:00
Thomas Bernard
63ece30b87
update upnpreplyparse to allow larger values (128 chars instead of 64)
...
also add testcase
2013-06-06 23:41:23 +02:00
Thomas Bernard
74c3c18380
miniupnpd/minissdp.c: Don't advertise WANPPPConnection in UPNP_STRICT mode
2013-06-05 11:19:23 +02:00
Thomas Bernard
4077b0069d
miniupnpd/upnpsoap: check Service ID in SetDefaultConnectionService method
2013-06-05 11:11:53 +02:00
Thomas Bernard
58827720da
Remove namespace from variable name elements in Events "propertyset" to comply with UDAv1.1
...
See UPNP Device Architecture v1.1, section 4.3.2 :
<variableName>
REQUIRED. Element is name of a state variable that changed (<name> sub element of
<stateVariable> element in service description). MUST NOT be qualified with any namespace. Value
is the new value for this state variable. Case sensitive. Single data type as specified by UPnP service
description.
2013-05-29 23:29:29 +02:00
Thomas Bernard
50cb93be4a
miniupnpd/ipf: Adding support for IP Filter version 5.x
2013-05-20 02:14:04 +02:00
Thomas Bernard
51563f038a
miniupnpd/upnpsoap.c: refuses non integer <NewPortMappingIndex> values
2013-05-16 12:43:11 +02:00
Thomas Bernard
9b193b0546
comment unused function...
2013-05-14 23:11:43 +02:00
Thomas Bernard
0f401fe2d5
Update upnpreplyparse.c to take into account "empty" elements
2013-05-14 23:05:08 +02:00
Thomas Bernard
326fcdfa24
add archlinux
2013-05-03 13:17:07 +02:00
Thomas Bernard
24ee64e2fa
comment...
2013-05-03 11:34:39 +02:00
Thomas Bernard
71dcf3565d
miniupnpd: Use pkg-config under linux to find libiptc.
...
Thanks to Olivier Langlois
2013-05-03 11:33:36 +02:00
Thomas Bernard
f6998fc8e6
add code to linux getifstats for wireless interfaces
...
not useful for miniupnpd...
2013-04-29 12:23:06 +02:00
Thomas Bernard
47390f48a0
miniupnpd: Add warning message when using IPv4 address for listening_ip with IPv6 enabled
2013-04-29 12:22:24 +02:00
Thomas Bernard
d178b14fd3
miniupnpd/testgetifaddr: display addr and mask
2013-04-27 17:52:49 +02:00
Thomas Bernard
333c28a502
miniupnpd/getifaddr.c: Uses ifr_addr if ifr_netmask is not defined in struct ifreq
2013-04-27 17:51:53 +02:00
Thomas Bernard
18887cb1e4
miniupnpd: Correctly handle truncated snprintf() in SSDP code
2013-04-26 17:18:28 +02:00
Thomas Bernard
8432646a76
miniupnpd/genconfig.sh : to avoid build race conditions, use a temporary file
2013-04-24 19:04:00 +02:00
Thomas Bernard
e21e724b81
miniupnpd/upnputils.c: use scope in get_lan_for_peer() for IPv6 addresses
...
see #032
2013-04-20 11:06:17 +02:00
Thomas Bernard
961e1c35d3
miniupnpd: autodetect LAN interface netmask instead of defaulting to /24
...
Fix #23
2013-03-23 11:50:57 +01:00
Thomas Bernard
01ec54aec3
Update Changelog.txt files
2013-02-11 11:40:01 +01:00
Thomas Bernard
803899514e
use DESTDIR for install targets
...
fix #026
thanks to rofl0r
2013-02-09 16:17:23 +01:00
Thomas Bernard
0b715512b2
miniupnpd/Makefile.linux: update depend target
2013-02-07 16:56:51 +01:00
Thomas Bernard
91f34d6c38
Merge branch 'master' into portinuse
...
Conflicts:
README
2013-02-07 16:48:16 +01:00
Thomas Bernard
bb1e3b75f0
minissdp.c: Refactored SendSSDPNotifies() and SendSSDPGoodbye()
...
add missing ssdp:alive and ssdp:byebye messages with NT uuid value.
2013-02-07 13:27:09 +01:00
Thomas Bernard
ac1d36d872
upnphttp.c: Added Ext: header to HTTP responses to conform to UDA
2013-02-07 11:26:48 +01:00
Thomas Bernard
6ca8ee1dcf
minissdp.c: ignore SSDP packets missing the MX: header in UPNP_STRICT mode
2013-02-07 11:00:15 +01:00
Thomas Bernard
39a1d85f7a
minissdp.c: Fix SSDP packets sent with uuid as ST: header to conform to UDA
2013-02-07 10:59:31 +01:00
Thomas Bernard
5217fdc090
minissdp.c: Add DATE: header in SSDP packets
2013-02-07 10:56:38 +01:00
Thomas Bernard
f2d54a84aa
miniupnpd: prepare for version 1.8
2013-02-06 15:20:48 +01:00
Thomas Bernard
c7419a5de6
miniupnpd: filter HTTP and SSDP based on source IP
...
Check source address of incomining HTTP connections and SSDP
packets in order to filter out WAN SSDP and HTTP trafic.
2013-02-06 15:20:04 +01:00
Thomas Bernard
43d3939602
miniupnpd: Implement get_src_for_route_to() for *BSD
...
Also modify get_src_for_route_to() to return
the network interface index
2013-02-06 15:08:10 +01:00
Thomas Bernard
dce91afe3c
upnpsoap.c: fix 2 memory leaks in GetListOfPortMappings()
2013-02-06 15:03:25 +01:00
Thomas Bernard
50965a6ae1
upnphttp.c: add comments about ParseHttpHeaders()
2013-01-29 22:56:27 +01:00
Thomas Bernard
ea141830f6
upnphttp.c: remove strchr() call in ParseHttpHeaders()
2013-01-29 22:55:57 +01:00
Thomas Bernard
72e570186c
upnphttp.c: Fix and comment the findendheaders() function
2013-01-29 22:54:55 +01:00
Thomas Bernard
3b5eacb3ae
upnphttp: ParseHttpHeaders() checks atoi() return
...
atoi() can return a negative value, and that can lead to problems
later
2013-01-27 21:07:40 +01:00
Thomas Bernard
60d1db157a
miniupnpd: More return value check for malloc() and realloc()
2012-12-11 22:10:57 +01:00
Thomas Bernard
f365c3a9ea
minor modifications to linux/getroute.c and testgetroute.c
2012-10-23 14:35:50 +02:00
Thomas Bernard
9473a32ab9
miniupnpd/miniupnpd.c: C++ comment => Ansi C comment
2012-10-16 18:55:47 +02:00
Thomas Bernard
2a1c0cf5a7
miniupnpd/netfilter/iptcrdr.c: remove unused arg warning
2012-10-05 00:32:22 +02:00
Thomas Bernard
38939ac2d9
miniupnpd/upnpevents.c: Better error checking after connect()
2012-10-05 00:32:04 +02:00
Thomas Bernard
5de71bc396
miniupnpd/upnpsoap: More argument check for SOAP actions in UPNP_STRICT mode
2012-10-05 00:31:08 +02:00
Thomas Bernard
67bd1f9b42
updated DEFAULTCONNECTIONSERVICE_MAGICALVALUE for IGDv2
2012-10-05 00:29:55 +02:00
Thomas Bernard
5e48745eb3
miniupnpd/upnphttp: fix buffer allocation for response
...
increased default buffer size for HTTP response
check size of h->res_buf before building HTTP response
2012-10-05 00:28:06 +02:00
Thomas Bernard
1a458fe869
Ignore "-Wmissing-field-initializers" in upnpdescgen.c
2012-10-05 00:26:44 +02:00
Thomas Bernard
4ce891ec17
miniupnpd/upnphttp: Check compliance of headers for (UN)SUBSCRIBE
...
Enforce compliance for SUBSCRIBE messages (UPNP_STRICT mode)
Enforce compliance for UNSUBSCRIBE messages (UPNP_STRICT mode)
2012-10-05 00:25:08 +02:00
Thomas Bernard
50b70ae90d
miniupnpd/upnpevent.c: fix newSubscriber() for IP6FirewallControl and DeviceProtection services
2012-10-05 00:23:02 +02:00
Thomas Bernard
f65edba8fa
miniupnpd/minissdp.c: properly set service/device version in SSDP messages
2012-10-05 00:21:00 +02:00
Thomas Bernard
c0d4c9d24a
upnpsoap.c: Fix atoi() on null pointers
2012-10-05 00:19:26 +02:00
Thomas Bernard
7227e55dba
ENABLE_HTTP_DATE : add a Date: header to all HTTP responses
2012-10-05 00:17:40 +02:00
Thomas Bernard
239739a6f7
late update of miniupnpd/Changelog.txt
2012-09-28 11:14:10 +02:00
Thomas Bernard
e5d7653002
miniupnpd/minissdp.c: Manage services/devices versions
2012-09-28 11:13:48 +02:00
Thomas Bernard
8b8772eed1
miniupnpd: Support Expect: 100-continue for POST HTTP requests
2012-09-28 11:12:50 +02:00
Thomas Bernard
9d94d08bd8
miniupnpd: Content-Type is now text/xml; charset="utf-8" to conform with UDA v1.1
2012-09-28 11:12:01 +02:00
Thomas Bernard
727eaeb2e8
miniupnpd/upnphttp: Support for Accept-Language/Content-Language HTTP headers
2012-09-28 11:10:20 +02:00
Thomas Bernard
988594dfe6
miniupnpd: SetDefaultConnectionService() checks its argumnents in UPNP_STRICT mode
2012-09-28 11:07:12 +02:00
Thomas Bernard
ee0815ac85
miniupnpd: UPC must be a 12 decimal digit code
2012-09-28 11:05:34 +02:00
Thomas Bernard
840031dea7
miniupnpd: Fixes with DISABLE_CONFIG_FILE and UPNP_STRICT
2012-09-28 11:04:04 +02:00
Thomas Bernard
8d9900e728
miniupnpd: update of Changelog.txt and Makefile for recent ipfw changes
2012-09-28 10:55:55 +02:00
Jardel Weyrich
95d5c0bf39
Rename all include guards to not clash with C99 (7.1.3 Reserved identifiers).
2012-09-20 17:52:51 -03:00
Jardel Weyrich
98c504f8b9
- Rename IPFW include guards to not infringe the C standard rules.
...
- Move IPFW implementation to a source file. Static in headers is not good.
2012-09-19 09:46:44 -03:00
Thomas Bernard
4c5da2c31e
miniupnpd/upnppinhole.h: Added doc for upnp_clean_expired_pinholes()
2012-09-18 10:31:52 +02:00
Thomas Bernard
03005fa291
miniupnpd/netfilter: Fixing a bug in clean_pinhole_list()
2012-09-18 10:31:10 +02:00
Thomas Bernard
dd9cbbb7e8
Adding an informational message at startup
2012-09-15 17:36:10 +02:00
Thomas Bernard
d148904d2b
update/fix changelogs
2012-08-29 09:59:06 +02:00
Thomas Bernard
34c5af41ad
miniupnpd: install miniupnpd.8 man page in Makefile.linux
2012-08-24 20:13:15 +02:00
Thomas Bernard
299945d6dd
miniupnpd.8: uppercase MINIUPNPD in header
2012-08-24 20:12:26 +02:00
Thomas Bernard
d8d416f409
Moved man page to section 8
2012-08-24 20:11:39 +02:00
Thomas Bernard
dfb5a303e1
fix minus vs hyphen
2012-08-23 11:19:45 +02:00
Thomas Bernard
9805bb6872
improved SubmitServicesToMiniSSDPD() function fiability
2012-08-21 19:33:26 +02:00
Thomas Bernard
04e56b13e1
miniupnpd: Add -A command line option to add permission rules
...
fixes #15
2012-07-17 21:39:40 +02:00
Thomas Bernard
5a07e704ba
miniupnpd/miniupnpd.c: spaces to tab to improve indentation consistency
2012-07-17 21:39:05 +02:00
Thomas Bernard
e39c29dcd7
miniupnpd/miniupnpd.c: fixed signed/unsigned comparaison
2012-07-17 21:37:09 +02:00
Thomas Bernard
6451a6906d
miniupnpd: Add -z command line option to change friendly name (thanks to Shawn Fisher)
...
see 896425597e
2012-07-14 17:31:30 +02:00
Thomas Bernard
013b0df388
miniupnpd: detect port in use / already forwarded
...
Patch submitted by David Kerr
2012-07-10 23:25:29 +02:00
Thomas Bernard
d9f265d0cc
miniupnpd/genconfig.sh: special case for AstLinux
2012-07-10 23:19:08 +02:00
Thomas Bernard
cdc6ac324d
fix
2012-06-29 21:48:37 +02:00
Thomas Bernard
6de4711f8b
miniupnpd: Add command line parsing for clean_ruleset_interval option
2012-06-29 21:48:32 +02:00
Thomas Bernard
0df9f7f62a
miniupnpd: added DISABLE_CONFIG_FILE in options.h to disable miniupnpd.conf parsing
2012-06-29 21:39:34 +02:00
Thomas Bernard
dcae1caf72
update miniupnpd/Changelog.txt
2012-06-29 21:37:52 +02:00
Thomas Bernard
909ba96beb
fix
2012-06-29 21:36:25 +02:00
Shawn Fisher
87bad0aeb4
miniupnpd: fix -a command line option
...
Fix command line parsing to work as documentation describes, i.e. when
MULTIPLE_EXTERNAL_IP is set, parse both a LAN address and the associated
WAN address.
2012-06-28 21:23:38 +02:00
Shawn Fisher
03d8967d90
miniupnpd: Clean up for logging when not built with USE_PF or USE_IPF defines
2012-06-28 21:15:04 +02:00
Thomas Bernard
ad7ac5ad45
miniupnpd/minissdp.c: fixed a signed/unsigned compare
2012-06-28 21:00:49 +02:00
Thomas Bernard
779a71bb6c
miniupnpd: IPv6 address used for LOCATION:
...
in UPNP_STRICT mode, the literal IPv6 address in "location:" of SSDP
messages is now the source address used to send the message.
For linux only at the moment
Also added testgetroute
2012-06-24 01:41:47 +02:00
Thomas Bernard
635222fd02
miniupnpd: add testgetroute to .gitignore
2012-06-24 01:39:37 +02:00
Thomas Bernard
590f1e3f37
miniupnpd/.gitignore: add *.bak
2012-06-24 00:42:37 +02:00
Thomas Bernard
b32c1c7cc6
Disable -ansi in Makefile.linux
2012-06-08 20:17:35 +02:00
Thomas Bernard
28746efd66
Improvements in autodetecting firewall under (Free)BSD
2012-05-31 15:33:16 +02:00
Thomas Bernard
adb9941296
Cleanup HTTP request handling. Answer 405 when relevant
2012-05-31 15:29:18 +02:00
Thomas Bernard
7e32a8825a
fix tests for solaris
2012-05-31 15:22:52 +02:00
Thomas Bernard
2e468c0b69
VERSION 1.7
2012-05-28 01:21:12 +02:00
Thomas Bernard
e4058f670a
fix compilation without ENABLE_IPV6
2012-05-28 01:18:35 +02:00
Thomas Bernard
4cdc0b762e
set natpmp socket non blocking
2012-05-28 01:18:06 +02:00
Thomas Bernard
0d56822a71
clean linux/ifacewatcher.c
2012-05-28 01:16:58 +02:00
Thomas Bernard
f2db9025a9
update todo
2012-05-28 01:15:27 +02:00
Thomas Bernard
fffeee019f
more solaris fixes
2012-05-24 18:52:27 +02:00
Thomas Bernard
ef49e90d28
Prepare release of version 1.7 of both miniupnpc and miniupnpd
2012-05-24 18:26:39 +02:00
Thomas Bernard
4922f84ee4
add dependency to VERSION for config.h
2012-05-24 18:25:42 +02:00
Thomas Bernard
6d0a225420
Add more warning CFLAGS
2012-05-24 18:24:55 +02:00
Thomas Bernard
efae5a79cd
fix a signed/unsigned compare
2012-05-24 18:22:59 +02:00
Thomas Bernard
8f5bfa2de0
minor formatting
2012-05-24 18:22:31 +02:00
Thomas Bernard
5672487ede
bugfix in clean_pinhole_list() for pf
2012-05-24 18:18:51 +02:00
Thomas Bernard
fe37de7e2c
Clean signal handling
2012-05-24 18:17:31 +02:00
Thomas Bernard
2b686e5638
add options used to generate in comments in the config.h file
2012-05-09 23:32:05 +02:00
Thomas Bernard
2bb2ebbb6b
fix a signed/unsigned compare
2012-05-09 23:28:26 +02:00
Thomas Bernard
cd87891cd7
Try to update README and INSTALL files
2012-05-09 23:25:43 +02:00
Thomas Bernard
ff397acf8f
Clean expired IPv6 pinholes correctly. and also with linux/netfilter
2012-05-08 22:51:23 +02:00
Thomas Bernard
fd5c172182
remove useless syslog() line
2012-05-08 22:50:39 +02:00
Thomas Bernard
457092c60a
Finalizing netfilter version of get_pinhole_info()
2012-05-08 00:21:03 +02:00
Thomas Bernard
ddbc22865f
Add netfilter implementation for delete_pinhole()/update_pinhole()/get_pinhole_info()
2012-05-02 00:47:42 +02:00
Thomas Bernard
6fe956229b
add static to list[] definition
2012-05-01 22:26:14 +02:00
Thomas Bernard
89212758f2
Move IPv6FirewallControl related code from upnpredirect.c to upnppinhole.c
2012-05-01 22:25:30 +02:00
Thomas Bernard
50ac3ae490
add macros.h
2012-05-01 14:23:22 +02:00
Thomas Bernard
57a06974bf
check sidlen before string compare
2012-05-01 11:57:20 +02:00
Thomas Bernard
4edb1c03ce
Also fix a couple of integer/pointer comparaisons
2012-05-01 11:53:36 +02:00
Thomas Bernard
e42dfd3284
Remove Warnings caused by signed/unsigned integer comparaisons
2012-05-01 11:52:21 +02:00
Thomas Bernard
ad95793e93
Add UNUSED(arg) macro to remove unused argument warning.
2012-05-01 11:49:23 +02:00
Thomas Bernard
db982e1740
Fully initialize list[] global variable
2012-05-01 11:36:15 +02:00
Thomas Bernard
a0f540b1f4
Clean up settings of CFLAGS in Makefile's
2012-05-01 11:34:41 +02:00
Thomas Bernard
19d728d9d8
Fix error handling in upnpevents.c (was causing segfault on Solaris !)
2012-05-01 11:29:40 +02:00
Thomas Bernard
a0850c58c7
Improve netfilter ipv6 pinhole. Work still in progress
...
Add a memory list of pinholes with expiration timestamps and uids
2012-04-27 08:51:25 +02:00
Thomas Bernard
0440f0b8a7
Started to implement add_pinhole() for netfilter (linux)
2012-04-26 16:08:39 +02:00
Thomas Bernard
d9cb61b124
Fix a bug in upnphttp
...
Thanks to Chiaki ISHIKAWA
2012-04-26 00:30:32 +02:00
Thomas Bernard
2139c44cc4
fix typo : FirewallDisabed => FirewallDisabled
2012-04-24 00:51:48 +02:00
Thomas Bernard
c8021cb841
implementing UpdatePinhole() and CheckPinholeWorking()
...
WANIPv6FirewallControl
upnpredirect :
cleanup : upnp_add_inboundpinhole
fix : upnp_get_pinhole_info
implement : upnp_update_inboundpinhole
upnpsoap :
implement : UpdatePinhole
implement : CheckPinholeWorking
2012-04-24 00:50:20 +02:00
Thomas Bernard
12825443b1
add update_pinhole() prototype, use #ifdef ENABLE_6FC_SERVICE
2012-04-24 00:45:45 +02:00
Thomas Bernard
d27f35ccde
Working on DeletePinhole() and GetPinholePackets()
2012-04-23 01:47:37 +02:00
Thomas Bernard
82355aca40
Add cleaning of IPv6 PinHoles + fix get_pinhole_info
2012-04-22 02:58:27 +02:00
Thomas Bernard
430d9c7240
Add clean_pinehole_list() in pfpinhole
2012-04-22 02:03:35 +02:00
Thomas Bernard
3499f6e45d
Convert rem_host to literal IPv6 address in AddPinhole()
2012-04-22 02:03:08 +02:00
Thomas Bernard
c9cf40633d
Improve code for WANIPv6FirewallControl
2012-04-21 00:09:52 +02:00
Thomas Bernard
8148acc55c
Add get_pinhole()
2012-04-21 00:08:06 +02:00
Thomas Bernard
c3d979a9cd
add -Wdeclaration-after-statement to CFLAGS
2012-04-21 00:05:45 +02:00
Thomas Bernard
e0efe74a7c
AddPinhole() and DeletePinhole() works ! (only with pf)
2012-04-20 16:53:34 +02:00
Thomas Bernard
82369d94e4
Add pf/pfpinhole.o to PFOBJS
2012-04-20 16:50:24 +02:00
Thomas Bernard
d5b7d70c32
Add timestamp to add_pinhole() function
...
Also make the code compile only when ENABLE_IPV6 is defined
2012-04-20 16:49:04 +02:00
Thomas Bernard
137932b776
Add delete_pinhole() function
2012-04-20 00:07:13 +02:00
Thomas Bernard
3bf2534620
Add comment about which IP6FirewallControl methods are required or optional
2012-04-20 00:06:24 +02:00
Thomas Bernard
b165afbba7
First working experiment of IPv6 "pinhole" with pf
2012-04-19 01:43:50 +02:00
Thomas Bernard
f934bf5d17
Start to code IPv6 "pinhole" for pf
...
Also update tests in miniupnpd/pf/
2012-04-18 22:53:51 +02:00
Thomas Bernard
e982ebc9f5
Add command line arguments to genconfig.sh config script
2012-04-15 00:35:31 +02:00
Thomas Bernard
50cb647305
More C++ => ANSI C comments to compile with -ansi option
2012-04-15 00:34:57 +02:00
Thomas Bernard
76da677016
Set TTL on SSDP Notify sockets (IPv4)
...
TTL is set to 2 (recommendation from UPnP Device Architecture v1.1)
2012-04-12 23:37:59 +02:00
Thomas Bernard
708ed4a8b8
Fix compilation when IPV6 is disabled
2012-04-06 19:53:26 +02:00
Thomas Bernard
3b1b647de7
add TODO file
2012-04-06 19:30:43 +02:00
Thomas Bernard
593dc26608
Send SSDP NOTIFY ssdp:alive and ssdp:goodbye in IPv6 too
2012-04-06 19:30:19 +02:00
Thomas Bernard
c28d256b30
Use UPnP/1.1 in SERVER: string as required in UDA 1.1
...
UDA = UPnP Device architecture 1.1
2012-04-06 19:28:05 +02:00
Thomas Bernard
6d32d69608
Allow LAN interface to be given as interface names.
...
(instead of interface IP addresses)
It will allow IPv6 operations.
2012-04-06 17:31:24 +02:00
Thomas Bernard
225b59a6d3
fix linux/getifstats.c when bitrate is unknown
2012-04-06 17:30:22 +02:00
Thomas Bernard
70c5e194a3
Only remove pidfile if one was written in the first place
2012-03-31 09:22:50 +02:00
Thomas Bernard
31d0dfa345
update miniupnpd/Changelog.txt
...
Fix ipfilter support (thanks dhowland https://github.com/dhowland )
Changes to miniupnpd.init.d.script by Shawn Landden
2012-03-19 22:15:06 +01:00
David Howland
a8e337326c
Fix ipfilter support.
...
- Add support for timestamps
- Add support for rhosts
- Add get_portmappings_in_range
2012-03-18 10:13:10 -04:00
Shawn Landen
27b5ae6c9b
miniupnpd: add LSB header to init.d script
...
LSB headers allows debian to use dependancy-based boot, and
makes systemd's sysvinit compatibility mode faster.
2012-03-13 20:11:22 -07:00
Shawn Landen
b8cd7af65e
miniupnpd: add status option on linux init.d script, set -e
2012-03-13 20:09:34 -07:00
Shawn Landen
4eb4a78c23
miniupnpd: cosmetics on linux/miniupnpd.init.d.script
...
was amalgamation of tabs/spaces that required tab-stops=4
Convert largely to tabs, (8) and tried to make it line up a little better with
style of existing scripts elsewhere
2012-03-13 19:30:31 -07:00
Thomas Bernard
88fc495942
remove // comment
2012-03-11 09:47:10 +01:00
Thomas Bernard
2665ed123b
Merge branch 'master' of https://github.com/shawnl/miniupnp
...
Conflicts:
miniupnpd/upnpredirect.c
2012-03-05 05:59:52 +01:00
Thomas Bernard
57ff044fb7
fixed reload_from_lease_file()
...
iport and timestamp where mixed
leaseduration always negative and NAT-PMP forwards
with non-null timestamp always deleted
2012-03-05 05:44:02 +01:00
Shawn Landen
5c224accbf
remove trailing whitespace from miniupnpd
2012-02-29 17:48:41 -08:00
Thomas Bernard
b1cc7aad36
upnppermissions.c: allow 192.168.1.1/255.255.255.0 as ip/mask
...
Change read_permission_line() to allow 192.168.1.1/255.255.255.0 in
addition to 192.168.1.1/24 in permission line (in configuration file).
2012-02-15 23:49:56 +01:00
Thomas Bernard
f01dc59aa3
miniupnpd.c: parselanaddr() pow parses 192.168.1.1/255.255.255.0
...
Change parselanaddr() function to allow 192.168.1.1/255.255.255.0 in
addition to 192.168.1.1/24 in configuration file.
2012-02-15 23:48:20 +01:00
Thomas Bernard
0cc68c47b6
More syntax checks in upnppermissions.c
2012-02-12 14:03:42 +01:00
Thomas Bernard
a08258f549
Fix ipfw/Mac OS X specific source files to compile ok with -ansi flag
2012-02-12 13:42:37 +01:00
Thomas Bernard
45db6b8b0f
clean up
2012-02-09 21:34:44 +01:00
Thomas Bernard
d7de40d8cd
Make SSDP receive sockets non blocking
...
Also use sockaddr_to_string() in SendSSDPAnnonce2 to handle IPv6 addresses
2012-02-09 21:33:24 +01:00
Thomas Bernard
edfce7672f
Make HTTP listen socket non blocking (so accept() can't block)
2012-02-09 21:29:20 +01:00
Thomas Bernard
8dccc0d419
getifaddr.c: Add missign freeifaddrs() in find_ipv6_addr()
2012-02-09 00:33:06 +01:00
Thomas Bernard
af60fee984
Make HTTP (SOAP) sockets non blocking
2012-02-07 01:26:15 +01:00