head 1.31; access; symbols cjep_sun2x:1.31.0.10 cjep_sun2x-base:1.31 cjep_staticlib_x-base1:1.31 cjep_staticlib_x:1.31.0.8 cjep_staticlib_x-base:1.31 phil-wifi-20200421:1.31 phil-wifi-20200411:1.31 phil-wifi-20200406:1.31 pgoyette-compat-merge-20190127:1.31 pgoyette-compat-20190127:1.31 pgoyette-compat-20190118:1.31 pgoyette-compat-1226:1.31 pgoyette-compat-1126:1.31 pgoyette-compat-1020:1.31 pgoyette-compat-0930:1.31 pgoyette-compat-0906:1.31 netbsd-7-2-RELEASE:1.10.2.3 pgoyette-compat-0728:1.31 pgoyette-compat-0625:1.31 pgoyette-compat-0521:1.31 pgoyette-compat-0502:1.31 pgoyette-compat-0422:1.31 pgoyette-compat-0415:1.31 pgoyette-compat-0407:1.31 pgoyette-compat-0330:1.31 pgoyette-compat-0322:1.31 pgoyette-compat-0315:1.31 netbsd-7-1-2-RELEASE:1.10.2.2 pgoyette-compat:1.31.0.6 pgoyette-compat-base:1.31 netbsd-7-1-1-RELEASE:1.10.2.2 perseant-stdc-iso10646:1.31.0.4 perseant-stdc-iso10646-base:1.31 prg-localcount2-base3:1.31 prg-localcount2-base2:1.31 prg-localcount2-base1:1.31 prg-localcount2:1.31.0.2 prg-localcount2-base:1.31 pgoyette-localcount-20170426:1.31 bouyer-socketcan-base1:1.31 pgoyette-localcount-20170320:1.30 netbsd-7-1:1.10.2.2.0.6 netbsd-7-1-RELEASE:1.10.2.2 netbsd-7-1-RC2:1.10.2.2 netbsd-7-nhusb-base-20170116:1.10.2.2 bouyer-socketcan:1.29.0.2 bouyer-socketcan-base:1.29 pgoyette-localcount-20170107:1.29 netbsd-7-1-RC1:1.10.2.2 pgoyette-localcount-20161104:1.29 netbsd-7-0-2-RELEASE:1.10.2.2 dhcpcd-6-11-4-reimport:1.1.1.42 dhcpcd-6-11-4:1.1.1.42 localcount-20160914:1.29 netbsd-7-nhusb:1.10.2.2.0.4 netbsd-7-nhusb-base:1.10.2.2 dhcpcd-6-11-3:1.1.1.42 pgoyette-localcount-20160806:1.29 dhcpcd-6-11-2:1.1.1.42 pgoyette-localcount-20160726:1.28 pgoyette-localcount:1.28.0.2 pgoyette-localcount-base:1.28 dhcpcd-6-11-1:1.1.1.41 netbsd-7-0-1-RELEASE:1.10.2.2 dhcpcd-6-11-0:1.1.1.40 dhcpcd-6-10-3:1.1.1.39 dhcpcd-6-10-2:1.1.1.38 dhcpcd-6-10-1:1.1.1.37 dhcpcd-6-10-0:1.1.1.37 dhcpcd-6-9-4:1.1.1.37 netbsd-7-0:1.10.2.2.0.2 netbsd-7-0-RELEASE:1.10.2.2 dhcpcd-6-9-3:1.1.1.36 dhcpcd-6-9-2:1.1.1.36 netbsd-7-0-RC3:1.10.2.2 netbsd-7-0-RC2:1.10.2.2 dhcpcd-6-9-1:1.1.1.35 netbsd-7-0-RC1:1.10.2.2 dhcpcd-6-9-0:1.1.1.34 dhcpcd-6-8-2:1.1.1.33 dhcpcd-6-8-1:1.1.1.32 dhcpcd-6-8-0:1.1.1.32 dhcpcd-6-7-1:1.1.1.31 dhcpcd-6-7-0:1.1.1.31 dhcpcd-6-6-7:1.1.1.30 dhcpcd-6-6-6:1.1.1.30 dhcpcd-6-6-5:1.1.1.29 dhcpcd-6-6-4:1.1.1.29 dhcpcd-6-6-3:1.1.1.29 netbsd-5-2-3-RELEASE:1.1.1.2.6.3 netbsd-5-1-5-RELEASE:1.1.1.2.6.3 dhcpcd-6-6-2:1.1.1.29 dhcpcd-6-6-1-nb1:1.1.1.29 dhcpcd-6-6-1:1.1.1.29 dhcpcd-6-6-0:1.1.1.28 dhcpcd-6-5-1:1.1.1.27 dhcpcd-6-5-0:1.1.1.26 dhcpcd-6-4-7:1.1.1.25 dhcpcd-6-4-6:1.1.1.25 netbsd-6-0-6-RELEASE:1.1.1.13 netbsd-6-1-5-RELEASE:1.1.1.13.2.1 dhcpcd-6-4-5:1.1.1.25 dhcpcd-6-4-4:1.1.1.25 netbsd-7:1.10.0.2 netbsd-7-base:1.10 dhcpcd-6-4-3:1.1.1.24 dhcpcd-6-4-2:1.1.1.23 dhcpcd-6-4-1:1.1.1.23 dhcpcd-6-4-0:1.1.1.22 yamt-pagecache-base9:1.7 yamt-pagecache-tag8:1.1.1.12.6.3 netbsd-6-1-4-RELEASE:1.1.1.13.2.1 netbsd-6-0-5-RELEASE:1.1.1.13 tls-earlyentropy:1.7.0.2 tls-earlyentropy-base:1.10 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7 riastradh-drm2-base3:1.7 dhcpcd-6-3-2:1.1.1.21 dhcpcd-6-3-1:1.1.1.21 dhcpcd-6-3-0:1.1.1.21 netbsd-6-1-3-RELEASE:1.1.1.13.2.1 netbsd-6-0-4-RELEASE:1.1.1.13 netbsd-5-2-2-RELEASE:1.1.1.2.6.3 netbsd-5-1-4-RELEASE:1.1.1.2.6.3 dhcpcd-6-2-1:1.1.1.20 dhcpcd-6-2-0:1.1.1.20 netbsd-6-1-2-RELEASE:1.1.1.13.2.1 netbsd-6-0-3-RELEASE:1.1.1.13 netbsd-5-2-1-RELEASE:1.1.1.2.6.3 netbsd-5-1-3-RELEASE:1.1.1.2.6.3 dhcpcd-6-1-0:1.1.1.19 netbsd-6-1-1-RELEASE:1.1.1.13.2.1 dhcpcd-6-0-5:1.1.1.18 dhcpcd-6-0-4:1.1.1.18 riastradh-drm2-base2:1.2 riastradh-drm2-base1:1.2 dhcpcd-6-0-3:1.1.1.17 riastradh-drm2:1.1.1.17.0.2 riastradh-drm2-base:1.1.1.17 dhcpcd-6-0-1:1.1.1.17 dhcpcd_6_0_0:1.1.1.17 netbsd-6-1:1.1.1.13.2.1.0.2 netbsd-6-0-2-RELEASE:1.1.1.13 netbsd-6-1-RELEASE:1.1.1.13.2.1 khorben-n900:1.1.1.16.0.6 netbsd-6-1-RC4:1.1.1.13.2.1 netbsd-6-1-RC3:1.1.1.13.2.1 agc-symver:1.1.1.16.0.4 agc-symver-base:1.1.1.16 netbsd-6-1-RC2:1.1.1.13.2.1 netbsd-6-1-RC1:1.1.1.13.2.1 dhcpcd-5-6-7:1.1.1.16 yamt-pagecache-base8:1.1.1.16 dhcpcd-5-6-6:1.1.1.16 netbsd-5-2:1.1.1.2.6.3.0.6 netbsd-6-0-1-RELEASE:1.1.1.13 yamt-pagecache-base7:1.1.1.15 dhcpcd-5-6-4:1.1.1.15 netbsd-5-2-RELEASE:1.1.1.2.6.3 netbsd-5-2-RC1:1.1.1.2.6.3 matt-nb6-plus-nbase:1.1.1.13 yamt-pagecache-base6:1.1.1.15 netbsd-6-0:1.1.1.13.0.6 netbsd-6-0-RELEASE:1.1.1.13 netbsd-6-0-RC2:1.1.1.13 tls-maxphys:1.1.1.15.0.2 tls-maxphys-base:1.10 dhcpcd-5-6-2:1.1.1.15 matt-nb6-plus:1.1.1.13.0.4 matt-nb6-plus-base:1.1.1.13 netbsd-6-0-RC1:1.1.1.13 dhcpcd-5-6-1:1.1.1.15 yamt-pagecache-base5:1.1.1.14 yamt-pagecache-base4:1.1.1.14 dhcpcd-5-5-6:1.1.1.14 dhcpcd-5-5-5:1.1.1.14 netbsd-6:1.1.1.13.0.2 netbsd-6-base:1.1.1.13 dhcpcd-5-5-4:1.1.1.13 dhcpcd-5-5-3:1.1.1.13 dhcpcd-5-5-2:1.1.1.13 netbsd-5-1-2-RELEASE:1.1.1.2.6.3 dhcpcd-5-5-1:1.1.1.13 dhcpcd-5-5-0:1.1.1.13 netbsd-5-1-1-RELEASE:1.1.1.2.6.3 yamt-pagecache-base3:1.1.1.12 yamt-pagecache-base2:1.1.1.12 yamt-pagecache:1.1.1.12.0.6 yamt-pagecache-base:1.1.1.12 cherry-xenmp:1.1.1.12.0.4 cherry-xenmp-base:1.1.1.12 dhcpcd-5-2-12:1.1.1.12 bouyer-quota2-nbase:1.1.1.12 dhcpcd-5-2-11:1.1.1.12 bouyer-quota2:1.1.1.12.0.2 bouyer-quota2-base:1.1.1.12 dhcpcd-5-2-10:1.1.1.12 matt-mips64-premerge-20101231:1.1.1.12 matt-nb5-mips64-premerge-20101231:1.1.1.2.6.1.4.1 matt-nb5-pq3:1.1.1.2.6.3.0.4 matt-nb5-pq3-base:1.1.1.2.6.3 dhcpcd-5-2-9:1.1.1.12 netbsd-5-1:1.1.1.2.6.3.0.2 netbsd-5-1-RELEASE:1.1.1.2.6.3 dhcpcd-5-2-8:1.1.1.11 netbsd-5-1-RC4:1.1.1.2.6.3 matt-nb5-mips64-k15:1.1.1.2.6.1.4.1 netbsd-5-1-RC3:1.1.1.2.6.3 dhcpcd-5-2-4:1.1.1.11 netbsd-5-1-RC2:1.1.1.2.6.3 netbsd-5-1-RC1:1.1.1.2.6.3 dhcpcd-5-2-2:1.1.1.11 dhcpcd-5-2-1:1.1.1.11 dhcpcd-5-2-0:1.1.1.11 netbsd-5-0-2-RELEASE:1.1.1.2.6.1.2.1 dhcpcd-5-1-5:1.1.1.11 dhcpcd-5-1-4:1.1.1.10 matt-nb5-mips64-premerge-20091211:1.1.1.2.6.1 matt-premerge-20091211:1.1.1.10 dhcpcd-5-1-3:1.1.1.10 dhcpcd-5-1-2:1.1.1.10 dhcpcd-5-1-1:1.1.1.9 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1.1.2.6.1 matt-nb4-mips64-k7-u2a-k9b:1.1.1.2.6.1 matt-nb5-mips64-u1-k1-k5:1.1.1.2.6.1 matt-nb5-mips64:1.1.1.2.6.1.0.4 netbsd-5-0-1-RELEASE:1.1.1.2.6.1 dhcpcd-5-0-7:1.1.1.8 dhcpcd-5-0-6:1.1.1.7 dhcpcd-5-0-5:1.1.1.6 dhcpcd-5-0-4:1.1.1.6 jym-xensuspend-nbase:1.1.1.6 dhcpcd-5-0-3:1.1.1.6 dhcpcd-5-0-2a:1.1.1.6 dhcpcd-5-0-2:1.1.1.6 dhcpcd-5-0-1:1.1.1.6 dhcpcd-5-0-0:1.1.1.5 netbsd-5-0:1.1.1.2.6.1.0.2 netbsd-5-0-RELEASE:1.1.1.2.6.1 dhcpcd-4-0-13:1.1.1.4 netbsd-5-0-RC4:1.1.1.2.6.1 netbsd-5-0-RC3:1.1.1.2.6.1 dhcpcd-4-0-12:1.1.1.3 dhcpcd-4-0-11:1.1.1.3 netbsd-5-0-RC2:1.1.1.2.6.1 jym-xensuspend:1.1.1.3.0.2 jym-xensuspend-base:1.1.1.6 dhcpcd-4-0-10:1.1.1.3 dhcpcd-4-0-9:1.1.1.3 dhcpcd-4-0-8:1.1.1.3 roy:1.1.1 netbsd-5-0-RC1:1.1.1.2.6.1 haad-dm-base:1.1.1.3 haad-dm-base2:1.1.1.3 haad-nbase2:1.1.1.3 dhcpcd-4-0-7:1.1.1.3 dhcpcd:1.1.1 netbsd-5:1.1.1.2.0.6 netbsd-5-base:1.1.1.2 matt-mips64-base2:1.1.1.2 haad-dm:1.1.1.2.0.4 haad-dm-base1:1.1.1.2 dhcpcd-4-0-1:1.1.1.2 wrstuden-revivesa-base-3:1.1.1.1 wrstuden-revivesa:1.1.1.1.0.2 wrstuden-revivesa-base-2:1.1.1.1 dhcpcd-4-0-0-rc3:1.1.1.1 DHCPCD:1.1.1; locks; strict; comment @# @; 1.31 date 2017.03.31.20.53.55; author roy; state dead; branches; next 1.30; commitid dLxJqjjcfoFGgKLz; 1.30 date 2017.01.23.11.09.14; author abhinav; state Exp; branches; next 1.29; commitid UhkWKl5ANqanb5Dz; 1.29 date 2016.07.29.10.07.57; author roy; state Exp; branches 1.29.2.1; next 1.28; commitid D5Soq6OlQqwfzcgz; 1.28 date 2016.06.17.19.42.31; author roy; state Exp; branches 1.28.2.1; next 1.27; commitid 6xuwCMCfSdS46Raz; 1.27 date 2016.05.09.10.15.59; author roy; state Exp; branches; next 1.26; commitid qrjVQaYMF60qdN5z; 1.26 date 2016.04.20.08.53.01; author roy; state Exp; branches; next 1.25; commitid ly8EpjcaFC3Rml3z; 1.25 date 2016.04.10.21.00.53; author roy; state Exp; branches; next 1.24; commitid ngIssBPsMDprI72z; 1.24 date 2015.11.30.16.33.00; author roy; state Exp; branches; next 1.23; commitid r6sgSE1PawCBt8Ly; 1.23 date 2015.08.21.10.39.00; author roy; state Exp; branches; next 1.22; commitid 83r82VWy9OvsL7yy; 1.22 date 2015.07.09.10.15.34; author roy; state Exp; branches; next 1.21; commitid GIQWpaIgzho51Bsy; 1.21 date 2015.05.16.23.31.32; author roy; state Exp; branches; next 1.20; commitid YXlJTXZYY8RM9Jly; 1.20 date 2015.05.02.15.18.37; author roy; state Exp; branches; next 1.19; commitid VsefYzP4GoAASSjy; 1.19 date 2015.03.26.10.26.37; author roy; state Exp; branches; next 1.18; commitid OGK5Iv26nDl9s6fy; 1.18 date 2015.01.30.09.47.05; author roy; state Exp; branches; next 1.17; commitid N71sOlMf3T0h028y; 1.17 date 2014.12.17.20.50.08; author roy; state Exp; branches; next 1.16; commitid OgFj0Zy8VHbs5r2y; 1.16 date 2014.11.07.20.51.02; author roy; state Exp; branches; next 1.15; commitid 75oEB7w8hHnrniXx; 1.15 date 2014.11.07.20.32.05; author roy; state Exp; branches; next 1.14; commitid SjGER4FFqwIXgiXx; 1.14 date 2014.10.29.01.08.31; author roy; state Exp; branches; next 1.13; commitid pxqc4rDIPN7J72Wx; 1.13 date 2014.10.17.23.42.24; author roy; state Exp; branches; next 1.12; commitid 9G64jKP8UtP60CUx; 1.12 date 2014.10.06.18.22.29; author roy; state Exp; branches; next 1.11; commitid brDOONtoZlOhAaTx; 1.11 date 2014.09.16.22.27.04; author roy; state Exp; branches; next 1.10; commitid vNFt7w6iljp3ACQx; 1.10 date 2014.07.30.15.47.32; author roy; state Exp; branches 1.10.2.1; next 1.9; commitid pO7S2bin6GjEUpKx; 1.9 date 2014.07.14.11.49.48; author roy; state Exp; branches; next 1.8; commitid uErA8nm7nGPY6lIx; 1.8 date 2014.06.14.20.55.37; author roy; state Exp; branches; next 1.7; commitid StMQyH8Yes516xEx; 1.7 date 2014.02.25.13.20.23; author roy; state Exp; branches 1.7.2.1; next 1.6; commitid T3dBjMETwg445uqx; 1.6 date 2014.01.03.22.24.41; author roy; state Exp; branches; next 1.5; commitid D9uwUKOXUV9qNIjx; 1.5 date 2013.09.20.21.39.59; author wiz; state Exp; branches; next 1.4; commitid NYCQb6bBR1plVd6x; 1.4 date 2013.09.20.10.56.32; author roy; state Exp; branches; next 1.3; commitid ay31HzBokPBBma6x; 1.3 date 2013.07.29.20.39.28; author roy; state Exp; branches; next 1.2; commitid FQtuYWAi9h3dipZw; 1.2 date 2013.07.20.21.40.04; author wiz; state Exp; branches; next 1.1; commitid VZsNcbAcdhMJUfYw; 1.1 date 2008.07.27.18.06.30; author joerg; state Exp; branches 1.1.1.1; next ; 1.29.2.1 date 2017.04.21.16.51.22; author bouyer; state dead; branches; next ; commitid dUG7nkTKALCadqOz; 1.28.2.1 date 2016.08.06.00.18.41; author pgoyette; state Exp; branches; next 1.28.2.2; commitid da8LmcQp9HeG2bhz; 1.28.2.2 date 2017.03.20.06.52.19; author pgoyette; state Exp; branches; next 1.28.2.3; commitid jjw7cAwgyKq7RfKz; 1.28.2.3 date 2017.04.26.02.52.22; author pgoyette; state dead; branches; next ; commitid ojV02aOSdzvBqZOz; 1.10.2.1 date 2014.12.29.16.18.05; author martin; state Exp; branches; next 1.10.2.2; commitid rwbq7QmIjmQl9X3y; 1.10.2.2 date 2015.02.05.15.13.12; author martin; state Exp; branches; next 1.10.2.3; commitid pegsZpCsYzXKBP8y; 1.10.2.3 date 2018.07.27.10.43.19; author martin; state dead; branches; next ; commitid HmTKhyRj9OTCmLLA; 1.7.2.1 date 2014.08.10.07.06.59; author tls; state Exp; branches; next ; commitid 6GtpeveLcuaaGMLx; 1.1.1.1 date 2008.07.27.18.06.30; author joerg; state Exp; branches 1.1.1.1.2.1; next 1.1.1.2; 1.1.1.2 date 2008.09.19.22.59.58; author joerg; state Exp; branches 1.1.1.2.4.1 1.1.1.2.6.1; next 1.1.1.3; 1.1.1.3 date 2008.12.09.19.34.58; author roy; state Exp; branches 1.1.1.3.2.1; next 1.1.1.4; 1.1.1.4 date 2009.04.17.20.05.27; author roy; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2009.04.28.22.14.20; author roy; state Exp; branches; next 1.1.1.6; 1.1.1.6 date 2009.05.03.06.49.00; author roy; state Exp; branches; next 1.1.1.7; 1.1.1.7 date 2009.07.08.22.33.23; author roy; state Exp; branches; next 1.1.1.8; 1.1.1.8 date 2009.07.28.20.53.19; author roy; state Exp; branches; next 1.1.1.9; 1.1.1.9 date 2009.10.02.21.31.07; author roy; state Exp; branches; next 1.1.1.10; 1.1.1.10 date 2009.10.16.21.51.16; author roy; state Exp; branches; next 1.1.1.11; 1.1.1.11 date 2010.01.31.20.50.22; author roy; state Exp; branches; next 1.1.1.12; 1.1.1.12 date 2010.11.27.11.24.14; author roy; state Exp; branches 1.1.1.12.6.1; next 1.1.1.13; 1.1.1.13 date 2012.01.25.14.33.04; author roy; state Exp; branches 1.1.1.13.2.1; next 1.1.1.14; 1.1.1.14 date 2012.03.23.09.39.15; author roy; state Exp; branches; next 1.1.1.15; 1.1.1.15 date 2012.07.12.16.48.02; author roy; state Exp; branches 1.1.1.15.2.1; next 1.1.1.16; 1.1.1.16 date 2012.12.19.09.41.10; author roy; state Exp; branches; next 1.1.1.17; 1.1.1.17 date 2013.06.21.19.33.08; author roy; state Exp; branches 1.1.1.17.2.1; next 1.1.1.18; commitid SXn20EEvZ4In4wUw; 1.1.1.18 date 2013.07.29.20.35.33; author roy; state Exp; branches; next 1.1.1.19; commitid pPBD0UghW9mDgpZw; 1.1.1.19 date 2013.09.20.10.51.30; author roy; state Exp; branches; next 1.1.1.20; commitid cFBSUArq5rpyja6x; 1.1.1.20 date 2014.01.03.22.10.44; author roy; state Exp; branches; next 1.1.1.21; commitid 0INAS2yPnkFaIIjx; 1.1.1.21 date 2014.02.25.13.14.30; author roy; state Exp; branches; next 1.1.1.22; commitid ic8VDg7Vv5gD2uqx; 1.1.1.22 date 2014.06.14.20.51.06; author roy; state Exp; branches; next 1.1.1.23; commitid MoRU3isFNd4R3xEx; 1.1.1.23 date 2014.07.14.11.45.06; author roy; state Exp; branches; next 1.1.1.24; commitid Mi8tFV9mGmDF4lIx; 1.1.1.24 date 2014.07.30.15.44.11; author roy; state Exp; branches; next 1.1.1.25; commitid 6Rf7knjuLf38TpKx; 1.1.1.25 date 2014.09.16.22.23.21; author roy; state Exp; branches; next 1.1.1.26; commitid VYSyBEUwq9SmyCQx; 1.1.1.26 date 2014.10.06.18.20.19; author roy; state Exp; branches; next 1.1.1.27; commitid z8uiNxyedywczaTx; 1.1.1.27 date 2014.10.17.23.40.32; author roy; state Exp; branches; next 1.1.1.28; commitid 6JZ5Q8MDRUR7ZBUx; 1.1.1.28 date 2014.10.29.01.03.54; author roy; state Exp; branches; next 1.1.1.29; commitid m0FwRnhHZBHI52Wx; 1.1.1.29 date 2014.11.07.20.24.03; author roy; state Exp; branches; next 1.1.1.30; commitid r3g7iXT9fDtAdiXx; 1.1.1.30 date 2014.12.17.20.48.11; author roy; state Exp; branches; next 1.1.1.31; commitid ESwlgMg7k6Fm4r2y; 1.1.1.31 date 2015.01.30.09.40.25; author roy; state Exp; branches; next 1.1.1.32; commitid AfM6JIvoCH9zX18y; 1.1.1.32 date 2015.03.26.10.20.42; author roy; state Exp; branches; next 1.1.1.33; commitid uWTKGazQOGxPp6fy; 1.1.1.33 date 2015.05.02.15.10.43; author roy; state Exp; branches; next 1.1.1.34; commitid YHP8fB43Ogn1PSjy; 1.1.1.34 date 2015.05.16.23.25.42; author roy; state Exp; branches; next 1.1.1.35; commitid 4GxdCMxWBIXk7Jly; 1.1.1.35 date 2015.07.09.10.08.30; author roy; state Exp; branches; next 1.1.1.36; commitid CYMdWdX7xdC9YAsy; 1.1.1.36 date 2015.08.21.10.35.50; author roy; state Exp; branches; next 1.1.1.37; commitid D7aAVhJgoSHJJ7yy; 1.1.1.37 date 2015.11.30.16.25.07; author roy; state Exp; branches; next 1.1.1.38; commitid 8WRzU4UTI5mEq8Ly; 1.1.1.38 date 2016.04.10.20.44.31; author roy; state Exp; branches; next 1.1.1.39; commitid r5f7hAhuHmKfB72z; 1.1.1.39 date 2016.04.20.08.48.10; author roy; state Exp; branches; next 1.1.1.40; commitid KG5kiKDxrOmPkl3z; 1.1.1.40 date 2016.05.09.10.10.44; author roy; state Exp; branches; next 1.1.1.41; commitid modbQemelGWebN5z; 1.1.1.41 date 2016.06.17.19.37.42; author roy; state Exp; branches; next 1.1.1.42; commitid OLpliFQkCdVd4Raz; 1.1.1.42 date 2016.07.29.09.58.31; author roy; state Exp; branches; next ; commitid KJUNBNrOF4aCvcgz; 1.1.1.1.2.1 date 2008.07.27.18.06.30; author wrstuden; state dead; branches; next 1.1.1.1.2.2; 1.1.1.1.2.2 date 2008.09.18.05.14.26; author wrstuden; state Exp; branches; next ; 1.1.1.2.4.1 date 2008.09.19.22.59.58; author haad; state dead; branches; next 1.1.1.2.4.2; 1.1.1.2.4.2 date 2008.10.19.22.39.49; author haad; state Exp; branches; next ; 1.1.1.2.6.1 date 2009.01.09.03.13.49; author snj; state Exp; branches 1.1.1.2.6.1.2.1 1.1.1.2.6.1.4.1; next 1.1.1.2.6.2; 1.1.1.2.6.2 date 2009.05.10.21.22.25; author snj; state Exp; branches; next 1.1.1.2.6.3; 1.1.1.2.6.3 date 2009.11.23.03.13.28; author snj; state Exp; branches; next ; 1.1.1.2.6.1.2.1 date 2009.08.04.20.23.37; author snj; state Exp; branches; next ; 1.1.1.2.6.1.4.1 date 2010.04.21.05.23.05; author matt; state Exp; branches; next ; 1.1.1.3.2.1 date 2009.05.13.18.51.50; author jym; state Exp; branches; next ; 1.1.1.12.6.1 date 2012.04.17.00.03.06; author yamt; state Exp; branches; next 1.1.1.12.6.2; 1.1.1.12.6.2 date 2012.10.30.18.54.55; author yamt; state Exp; branches; next 1.1.1.12.6.3; 1.1.1.12.6.3 date 2013.01.23.00.04.31; author yamt; state Exp; branches; next 1.1.1.12.6.4; 1.1.1.12.6.4 date 2014.05.22.15.44.40; author yamt; state Exp; branches; next ; commitid bCgsIAYejpvb7yBx; 1.1.1.13.2.1 date 2012.10.17.21.48.29; author riz; state Exp; branches; next ; 1.1.1.15.2.1 date 2013.02.25.00.26.02; author tls; state Exp; branches; next 1.1.1.15.2.2; 1.1.1.15.2.2 date 2013.06.23.06.26.31; author tls; state Exp; branches; next 1.1.1.15.2.3; commitid OnlO1cBgtQRcIHUw; 1.1.1.15.2.3 date 2014.08.19.23.46.43; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.1.1.17.2.1 date 2013.07.23.21.07.22; author riastradh; state Exp; branches; next ; commitid rochtllMBJfBDDYw; desc @@ 1.31 log @Sync @ text @.\" $NetBSD: dhcpcd.conf.5.in,v 1.30 2017/01/23 11:09:14 abhinav Exp $ .\" Copyright (c) 2006-2016 Roy Marples .\" All rights reserved .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .Dd June 27, 2016 .Dt DHCPCD.CONF 5 .Os .Sh NAME .Nm dhcpcd.conf .Nd dhcpcd configuration file .Sh DESCRIPTION Although .Nm dhcpcd can do everything from the command line, there are cases where it's just easier to do it once in a configuration file. Most of the options found in .Xr dhcpcd 8 can be used here. The first word on the line is the option and the rest of the line is the value. Leading and trailing whitespace for the option and value are trimmed. You can escape characters in the value using the \\ character. Comments can be prefixed with the # character. String values should be quoted with the " character. .Pp Here's a list of available options: .Bl -tag -width indent .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 # My specific 192.168.0.1 network .D1 profile dd:ee:aa:dd:bb:ee .D1 static ip_address=192.168.0.10/24 .Pp .D1 # A generic 192.168.0.1 network .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.98/24 .It Ic authprotocol Ar protocol Ar algorithm Ar rdm Authenticate DHCP messages. See the Supported Authentication Protocols section. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed prptocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. For the token protocol, .Ar secretid needs to be 0 and .Ar realm needs to be "". If .Nm dhcpcd has the error .D1 dhcp_auth_encode: Invalid argument then it means that .Nm dhcpcd could not find the correct authentication token in your configuration. .It Ic background Background immediately. This is useful for startup scripts which don't disable link messages for carrier status. .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. .It Ic bootp Be a BOOTP client. Basically, this just doesn't send a DHCP Message Type option and will only interact with a BOOTP server. All other DHCP options still work. .It Ic broadcast Instructs the DHCP server to broadcast replies back to the client. Normally this is only set for non Ethernet interfaces, such as FireWire and InfiniBand. In most cases, .Nm dhcpcd will set this automatically. .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . Or set which driver .Xr wpa_supplicant 8 should use with .Ic env .Va wpa_supplicant_driver=nl80211 .Pp If the hostname is set, it will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. .It Ic clientid Ar string Send the .Ar clientid . If the string is of the format 01:02:03 then it is encoded as hex. For interfaces whose hardware address is longer than 8 bytes, or if the .Ar clientid is an empty string then .Nm dhcpcd sends a default .Ar clientid of the hardware family and the hardware address. .It Ic duid Generate an .Rs .%T "RFC 4361" .Re compliant DHCP Unique Identifier. If persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). This, plus the IAID will be used as the .Ic clientid . The DUID-LLT generated will be held in .Pa @@SYSCONFDIR@@/dhcpcd.duid and should not be copied to other hosts. .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This option must be used in an .Ic interface block. This defaults to the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. .It Ic request Op Ar address Request the .Ar address in the DHCP DISCOVER message. There is no guarantee this is the address the DHCP server will actually give. If no .Ar address is given then the first address currently assigned to the .Ar interface is used. .It Ic inform Op Ar address Ns Op Ar /cidr Behaves like .Ic request as above, but sends a DHCP INFORM instead of DISCOVER/REQUEST. This does not get a lease as such, just notifies the DHCP server of the .Ar address in use. You should also include the optional .Ar cidr network number in case the address is not already configured on the interface. .Nm dhcpcd remains running and pretends it has an infinite lease. .Nm dhcpcd will not de-configure the interface when it exits. If .Nm dhcpcd fails to contact a DHCP server then it returns a failure instead of falling back on IPv4LL. .It Ic inform6 Performs a DHCPv6 Information Request. No address is requested or specified, but all other DHCPv6 options are allowed. This is normally performed automatically when the IPv6 Router Advertises that the client should perform this operation. This option is only needed when .Nm dhcpcd is not processing IPv6RA messages and the need for DHCPv6 Information Request exists. .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. .It Ic hostname Ar name Sends the hostname .Ar name to the DHCP server so it can be registered in DNS. If .Ar name is an empty string then the current system hostname is sent. If .Ar name is a FQDN (ie, contains a .) then it will be encoded as such. .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. .It Ic ia_na Op Ar iaid Op / address Request a DHCPv6 Normal Address for .Ar iaid . .Ar iaid defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . You can request more than one ia_ta by specifying a unique .Ar iaid for each one. .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len Op / Ar suffix Request a DHCPv6 Delegated Prefix for .Ar iaid . This option must be used in an .Ic interface block. Unless a .Ar sla_id of 0 is assigned with the same resultant prefix length as the delegation, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. If no .Ar interface is given then we will assign a prefix to every other interface with a .Ar sla_id equivalent to the interface index assigned by the OS. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id . Each assigned address will have a .Ar suffix , defaulting to 1. If the .Ar suffix is 0 then a slaac address is assigned. You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. .Nm dhcpcd has to be running for all the interfaces it is delegating to. A default .Ar prefix_len of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accommodate the .Ar sla_id . .Ar sla_id is an integer which must be unique inside the .Ar iaid and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation. .Pp In the following example eth0 is the externally facing interface to be configured for both IPv4 and IPv6. The DHCPv4 server will provide us with an IPv4 address and a default route. The DHCPv6 server is going to provide us with an IPv6 address, a default route and a /64 subnet to be delegated to the internal interface. The eth1 interface will be automatically configured for IPv6 using the first address (::1) from the delegated prefix. A second prefix is requested and assigned to two other interfaces. .Xr rtadvd 8 can be used with an empty configuration file on eth1, eth2 and eth3, to provide automatic IPv6 address configuration for the internal network. .Bd -literal noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all interface eth0 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # request a PD and assign it to eth1 ia_pd 3 eth2/1 eth3/2 # req a PD and assign it to eth2 and eth3 .Ed .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. .It Ic fqdn Op disable | ptr | both ptr just asks the DHCP server to update the PTR record of the host in DNS whereas both also updates the A record. disable will disable the FQDN option. The default is both. .Nm dhcpcd itself never does any DNS updates. .Nm dhcpcd encodes the FQDN hostname as specified in .Li RFC1035 . .It Ic interface Ar interface Subsequent options are only parsed for this .Ar interface . .It Ic ipv6ra_autoconf Generate SLAAC addresses for each Prefix advertised by a Router Advertisement message with the Auto flag set. On by default. .It Ic ipv6ra_noautoconf Disables the above option. .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option and a valid prefix or no DHCPv6 instruction. Set this option so to make .Nm dhcpcd always fork on an RA. .It Ic ipv6ra_own Disables kernel IPv6 Router Advertisement processing so dhcpcd can manage addresses and routes. .It Ic ipv6ra_own_default Each time dhcpcd receives an IPv6 Router Adveristment, dhcpcd will manage the default route only. This allows dhcpcd to prefer an interface for outbound traffic based on metric and/or user selection rather than the kernel. .It Ic ipv6rs Enables IPv6 Router Advertisement solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. .It Ic leasetime Ar seconds Request a leasetime of .Ar seconds . .It Ic logfile Ar logfile Writes to the specified .Ar logfile rather than .Xr syslog 3 . The .Ar logfile is truncated when opened and is reopened when .Nm dhcpcd receives the .Dv SIGUSR2 signal. .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metric of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. .It Ic noalias Any pre-existing IPv4 addresses existing address will be removed from the interface when adding a new IPv4 address. .It Ic noarp Don't send any ARP requests. This also disables IPv4LL. .It Ic noauthrequired Don't require authentication even though we requested it. Also allows FORCERENEW and RECONFIGURE messages without authentication. .It Ic nodelay Don't delay for an initial randomised time when starting protocols. .It Ic nodev Don't load .Pa /dev management modules. .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. .It Ic nogateway Don't install any default routes. .It Ic gateway Install a default route if available (default). .It Ic nohook Ar script Don't run this hook script. Matches full name, or prefixed with 2 numbers optionally ending with .Pa .sh . .Pp So to stop .Nm dhcpcd from touching your DNS settings or starting wpa_supplicant you would do:- .D1 nohook resolv.conf, wpa_supplicant .It Ic noipv4 Don't attempt to configure an IPv4 address. .It Ic noipv4ll Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP. See .Rs .%T "RFC 3927" .Re .It Ic noipv6 Don't attempt to configure an IPv6 address. .It Ic noipv6rs Disable solicitation and receipt of IPv6 Router Advertisements. .It Ic nolink Don't receive link messages about carrier status. You should only set this for buggy interface drivers. .It Ic noup Don't bring the interface up when in master mode. If .Nm cannot determine the carrier state, .Nm will enter a tight polling loop until the interface is marked up and running or a valid carrier state is reported. .It Ic option Ar option Requests the .Ar option from the server. It can be a variable to be used in .Xr dhcpcd-run-hooks 8 or the numerical value. You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. .Ar option Prepend dhcp6_ to .Ar option to request a DHCPv6 option. If no DHCPv6 options are configured, then DHCPv4 options are mapped to equivalent DHCPv6 options. .Pp Prepend nd_ to .Ar option to handle ND options, but this only works for the .Ic nooption , .Ic reject and .Ic require options. .Pp To see a list of options you can use, call .Nm dhcpcd with the .Fl V , Fl Fl variables argument. .It Ic nooption Ar option Remove the option from the message before it's processed. .It Ic require Ar option Requires the .Ar option to be present in all messages, otherwise the message is ignored. To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . This isn't an exact science though because a BOOTP server can send DHCP like options. .It Ic reject Ar option Reject a message that contains the .Ar option . This is useful when you cannot use .Ic require to select / de-select BOOTP messages. .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet Suppress any dhcpcd output to the console, except for errors. .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the DISCOVER phase if we have an old lease to use and moving from DISCOVER to IPv4LL if no reply. The default is 5 seconds. A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authoritative which means .Nm dhcpcd will timeout before moving back to the DISCOVER phase. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. .It Ic script Ar script Use .Ar script instead of the default .Pa @@SCRIPT@@ . .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. If .Ar private is used, a RFC7217 address is generated. .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. If you set .Ic ip6_address , .Nm dhcpcd will continue auto-configuation as normal. .Pp Here is an example which configures two static address, an IPv4 router, DNS and disables IPv6 auto-configuration. You could also use the .Ic inform6 command here if you wished to obtain more information via DHCPv6. For IPv4, you should use the .Ic inform Ar ipaddress option instead of setting a static address. .D1 interface eth0 .D1 noipv6rs .D1 static ip_address=192.168.0.10/24 .D1 static ip6_address=fd51:42f8:caae:d92e::ff/64 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 fd51:42f8:caae:d92e::1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers .It Ic timeout Ar seconds Timeout after .Ar seconds , instead of the default 30. A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. .It Ic userclass Ar string Tag the DHCPv4 messages with the userclass. You can specify more than one. .It Ic vendor Ar code , Ns Ar value Add an encapsulated vendor option. .Ar code should be between 1 and 254 inclusive. To add a raw vendor string, omit .Ar code but keep the comma. Examples. .Pp Set the vendor option 01 with an IP address. .D1 vendor 01,192.168.0.2 Set the vendor option 02 with a hex code. .D1 vendor 02,01:02:03:04:05 Set the vendor option 03 with an IP address as a string. .D1 vendor 03,\e"192.168.0.2\e" Set un-encapsulated vendor option to hello world. .D1 vendor ,"hello world" .It Ic vendorclassid Ar string Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 If not set then none is sent. Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. .It Ic vendclass Ar en Ar data Add the DHCPv6 Vendor Identifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. .It Ic waitip Op 4 | 6 Wait for an address to be assigned before forking to the background. 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. .It Ic xidhwaddr Use the last four bytes of the hardware address as the DHCP xid instead of a randomly generated number. .El .Ss Defining new options DHCP, ND and DHCPv6 allow for the use of custom options. Each option needs to be started with the .Ic define , .If definend or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic definend Ar code Ar type Ar variable Defines the ND option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _nd . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will uniquely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. If the .Ar variable has the name of .Ar reserved then it is not processed. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic optional This option is optional. Only makes sense for embedded options where like the client FQDN option where the FQDN string itself is optional. .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space separated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes. .It Ic ip6address An IPv6 address, 16 bytes. .It Ic string Op : Ic length A NVT ASCII string of printable characters. .It Ic byte A byte. .It Ic bitflags : Ic flags A byte represented as a string of flags, most significant bit first. For example, using ABCDEFGH then A would equal 10000000, B 01000000, C 00100000, etc. If the bit is not set, the flag is not printed. A flag of 0 is not printed even if the bit position is set. This is to allow reservation of the first bits while assigning the last bits. .It Ic int16 A signed 16bit integer, 2 bytes. .It Ic uint16 An unsigned 16bit integer, 2 bytes. .It Ic int32 A signed 32bit integer, 4 bytes. .It Ic uint32 An unsigned 32bit integer, 4 bytes. .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes. .It Ic domain A RFC 3397 encoded string. .It Ic dname A RFC 1035 validated string. .It Ic binhex Op : Ic length Binary data expressed as hexadecimal. .It Ic embed Contains embedded options (implies encap as well). .It Ic encap Contains encapsulated options (implies embed as well). .It Ic option References an option from the global definition. .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Ss Supported Authentication Protocols .Bl -tag -width -indent .It Ic token Sends and expects the token with the secretid 0 and realm of "" in each message. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenticate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported Authentication Algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El .Sh SEE ALSO .Xr fnmatch 3 , .Xr if_nametoindex 3 , .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 .Sh AUTHORS .An Roy Marples Aq Mt roy@@marples.name .Sh BUGS Please report them to .Lk http://roy.marples.name/projects/dhcpcd @ 1.30 log @Fix several typos. @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.29 2016/07/29 10:07:57 roy Exp $ @ 1.29 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.28 2016/06/17 19:42:31 roy Exp $ d379 1 a379 1 Only confgiure IPv6. d485 1 a485 1 Don't attmept to configure an IPv6 address. d679 1 a679 1 Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise d755 1 a755 1 is the IANA Enterprise Number which will unqiuely describe the encapsulated d826 2 a827 2 A flag of 0 is not printed even if the bit postition is set. This is to allow reservation of the first bits while assinging the last bits. d880 1 a880 1 This token is used to authenicate all other messages. @ 1.29.2.1 log @Sync with HEAD @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.29 2016/07/29 10:07:57 roy Exp $ @ 1.28 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.27 2016/05/09 10:15:59 roy Exp $ d26 1 a26 1 .Dd June 14, 2016 d410 1 a410 1 Disables kernel IPv6 Router Advertisment processing so dhcpcd can manage d418 1 a418 1 Enables IPv6 Router Advertisment solicitation. d573 2 a574 2 in use on network B, then the DHCP server will remain silent even if authorative which means d607 1 a607 1 Here is an example which configures two static addresss, an IPv4 router, DNS @ 1.28.2.1 log @Sync with HEAD @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.29 2016/07/29 10:07:57 roy Exp $ d26 1 a26 1 .Dd June 27, 2016 d410 1 a410 1 Disables kernel IPv6 Router Advertisement processing so dhcpcd can manage d418 1 a418 1 Enables IPv6 Router Advertisement solicitation. d573 2 a574 2 in use on network B, then the DHCP server will remain silent even if authoritative which means d607 1 a607 1 Here is an example which configures two static address, an IPv4 router, DNS @ 1.28.2.2 log @Sync with HEAD @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.30 2017/01/23 11:09:14 abhinav Exp $ d379 1 a379 1 Only configure IPv6. d485 1 a485 1 Don't attempt to configure an IPv6 address. d679 1 a679 1 Add the DHCPv6 Vendor Identifying Vendor Class with the IANA assigned Enterprise d755 1 a755 1 is the IANA Enterprise Number which will uniquely describe the encapsulated d826 2 a827 2 A flag of 0 is not printed even if the bit position is set. This is to allow reservation of the first bits while assigning the last bits. d880 1 a880 1 This token is used to authenticate all other messages. @ 1.28.2.3 log @Sync with HEAD @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.28.2.2 2017/03/20 06:52:19 pgoyette Exp $ @ 1.27 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.26 2016/04/20 08:53:01 roy Exp $ d26 1 a26 1 .Dd April 21, 2016 d159 1 a159 1 If the hostname is set, will be will set to the FQDN if possible as per d265 2 a266 2 Sends .Ar hostname d269 1 a269 1 .Ar hostname d272 1 a272 1 .Ar hostname d526 6 @ 1.26 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.25 2016/04/10 21:00:53 roy Exp $ d26 1 a26 1 .Dd April 16, 2016 d340 3 a342 1 is an integer and is added to the prefix which must fit inside a344 4 .Ar sla_id can be 0 only if the Delegated Prefix is assigned to one interface. This violates RFC3633 12.1 and should only be used if the Delegated Prefix length is 64 and you need to delegate it to a downstream interface. a374 2 # we cannot use SLA 0 above because we are # assinging the PD to more than one interface @ 1.25 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.24 2015/11/30 16:33:00 roy Exp $ d26 1 a26 1 .Dd March 30, 2016 d306 2 a307 1 of 0 is assigned, a reject route is installed for the Delegated Prefix to a308 2 This reject route is in essence SLA 0, thus you need space within the prefix to assign a SLA per interface. d343 4 a346 1 .Ar sla_id can be 0 only if the Delegated Prefix is assigned to one interface. @ 1.24 log @Sync @ text @d1 2 a2 2 .\" $NetBSD: dhcpcd.conf.5.in,v 1.23 2015/08/21 10:39:00 roy Exp $ .\" Copyright (c) 2006-2015 Roy Marples d26 1 a26 1 .Dd October 19, 2015 d43 2 a44 2 .Pp Blank lines and lines starting with # are ignored. d71 5 d77 1 a77 1 .D1 static ip_address=192.168.0.10/24 d217 37 d298 1 a298 1 .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len d319 6 a324 1 Each assigned address will have a suffix of 1. a418 6 .It Ic ipv6ra_accept_nopublic Some IPv6 routers advertise themselves as a default router without any public prefixes or managed addresses. Generally, this is incorrect behaviour and .Nm dhcpcd will ignore the advertisement unless this option is turned on. d598 4 d603 8 a610 1 Here is an example which configures a static address, routes and dns. d612 1 d614 1 d616 1 a616 1 .D1 static domain_name_servers=192.168.0.1 @ 1.23 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.22 2015/07/09 10:15:34 roy Exp $ d26 1 a26 1 .Dd August 1, 2015 d319 1 a319 1 .Bd -literal -indent d739 4 @ 1.22 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.21 2015/05/16 23:31:32 roy Exp $ d26 1 a26 1 .Dd July 9, 2015 d411 1 d435 2 a436 2 from touching your DNS or MTU settings you would do:- .D1 nohook resolv.conf, mtu d452 8 d476 2 a477 1 DHCPv4 options are mapped to DHCPv6 where applicable. @ 1.21 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.20 2015/05/02 15:18:37 roy Exp $ d26 1 a26 1 .Dd May 15, 2015 d266 2 d314 1 d316 2 a317 1 can be used with an empty configuration file on eth1 to provide automatic d320 2 a321 2 noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all d323 7 a329 4 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # get a /64 and assign it to eth1 a330 12 .It Ic ia_pd_mix To be RFC compliant, .Nm dhcpcd cannot mix Prefix Delegation with other DHCPv6 address types in the same session. This has a number of issues: additional DHCP traffic and potential collisions between options. .Ic ia_pd_mix enables .Li draft-ietf-dhc-dhcpv6-stateful-issues-06 support so that Prefix Delegation can be mixed with other address types in the same session. d411 2 @ 1.20 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.19 2015/03/26 10:26:37 roy Exp $ d26 1 a26 1 .Dd April 6, 2015 d466 1 d471 9 d481 18 a498 3 Remove the option from the DHCP message. This should only be used when a DHCP server sends a non requested option that should not be processed. a527 21 .It Ic require Ar option Requires the .Ar option to be present in all DHCP messages, otherwise the message is ignored. It can be a variable to be used in .Xr dhcpcd-run-hooks 8 or the numerical value. You can specify more options separated by commas, spaces or more require lines. To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . This isn't an exact science though because a BOOTP server can send DHCP like options. .It Ic reject Ar option Reject a DHCP message that contains the .Ar option . This is useful when you cannot use .Ic require to select / de-select BOOTP messages. d638 1 a638 1 DHCP allows for the use of custom options. d640 2 a641 1 .Ic define d664 11 d707 5 d745 1 a745 1 An IPv4 address, 4 bytes d747 1 a747 1 An IPv6 address, 16 bytes d751 8 a758 1 A byte d760 1 a760 1 A signed 16bit integer, 2 bytes d762 1 a762 1 An unsigned 16bit integer, 2 bytes d764 1 a764 1 A signed 32bit integer, 4 bytes d766 3 a768 3 An unsigned 32bit integer, 4 bytes .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes d770 1 a770 1 A RFC 3397 encoded string d772 1 a772 1 A RFC 1035 validated string d774 1 a774 1 Binary data expressed as hexadecimal d776 1 a776 1 Contains embedded options (implies encap as well) d778 1 a778 1 Contains encapsulated options (implies embed as well) d780 1 a780 1 References an option from the global definition @ 1.19 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.18 2015/01/30 09:47:05 roy Exp $ d26 1 a26 1 .Dd March 17, 2015 d114 5 d377 6 @ 1.18 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.17 2014/12/17 20:50:08 roy Exp $ d26 1 a26 1 .Dd January 20, 2015 d379 12 @ 1.17 log @Sync @ text @d1 2 a2 2 .\" $NetBSD: dhcpcd.conf.5.in,v 1.16 2014/11/07 20:51:02 roy Exp $ .\" Copyright (c) 2006-2014 Roy Marples d26 1 a26 1 .Dd December 13, 2014 d348 6 d493 8 @ 1.16 log @Add RCSIDs @ text @d1 1 a1 1 .\" $NetBSD: $ d26 1 a26 1 .Dd October 3, 2014 d380 2 a381 2 IPv4 addresses added will overwrite a pre-existing address instead of working alongside. @ 1.15 log @Sync @ text @d1 1 @ 1.14 log @Sync @ text @a0 1 .\" $NetBSD: $ @ 1.13 log @Sync @ text @d459 2 a460 1 seconds before moving to the DISCOVER phase if we have an old lease to use. @ 1.12 log @Sync @ text @d298 1 a298 1 IPv6RS should be disabled globally when requesting a Prefix Delegation like so: d300 19 a318 14 .D1 # Global settings, disable IPv4 and IPv6RS .D1 noipv4 .D1 noipv6rs .D1 # Don't touch eth3 at all .D1 denyinterfaces eth3 .Pp .D1 interface eth0 .D1 ia_pd 1 eth1/1 eth2/2 .Pp .D1 # Enable automatic address configuration for eth1 .D1 # eth1 still gets a delegated prefix .D1 interface eth1 .D1 ipv4 .D1 ipv6rs @ 1.11 log @Sync @ text @d26 1 a26 1 .Dd September 14, 2014 a355 1 This does not work reliably on any BSD system, probably due to kernel issues. a360 1 This does work reliably on BSD systems. d685 1 a685 1 A shell escaped string (binary data escaped as octal) d700 2 @ 1.10 log @Sync @ text @d26 1 a26 1 .Dd July 14, 2014 d75 1 a75 1 See the Supported Protocols section. d88 12 d143 5 d724 1 a724 1 .Ss Supported protocols d727 1 a727 1 Sends and expects the token with the secretid 0 in each message. d744 1 a744 1 .Ss Supported algorithms @ 1.10.2.1 log @Pullup the import of dhcpcd-6.6.7, requested by roy in #207 @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.17 2014/12/17 20:50:08 roy Exp $ d26 1 a26 1 .Dd December 13, 2014 d75 1 a75 1 See the Supported Authentication Protocols section. a87 12 For the token protocol, .Ar secretid needs to be 0 and .Ar realm needs to be "". If .Nm dhcpcd has the error .D1 dhcp_auth_encode: Invalid argument then it means that .Nm dhcpcd could not find the correct authentication token in your configuration. a130 5 Or set which driver .Xr wpa_supplicant 8 should use with .Ic env .Va wpa_supplicant_driver=nl80211 d281 10 a290 1 IPv6RS should be disabled globally when requesting a Prefix Delegation. d292 5 a296 19 In the following example eth0 is the externally facing interface to be configured for both IPv4 and IPv6. The DHCPv4 server will provide us with an IPv4 address and a default route. The DHCPv6 server is going to provide us with an IPv6 address, a default route and a /64 subnet to be delegated to the internal interface. The eth1 interface will be automatically configured for IPv6 using the first address (::1) from the delegated prefix. .Xr rtadvd 8 can be used with an empty configuration file on eth1 to provide automatic IPv6 address configuration for the internal network. .Bd -literal -indent noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all interface eth0 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # get a /64 and assign it to eth1 .Ed d339 1 d345 1 d360 2 a361 2 Any pre-existing IPv4 addresses existing address will be removed from the interface when adding a new IPv4 address. d439 1 a439 2 seconds before moving to the DISCOVER phase if we have an old lease to use and moving from DISCOVER to IPv4LL if no reply. d670 1 a670 1 A NVT ASCII string of printable characters. a684 2 .It Ic dname A RFC 1035 validated string d707 1 a707 1 .Ss Supported Authentication Protocols d710 1 a710 1 Sends and expects the token with the secretid 0 and realm of "" in each message. d727 1 a727 1 .Ss Supported Authentication Algorithms @ 1.10.2.2 log @Pull up the following, requested by pettai in ticket #495: external/bsd/dhcpcd/dist/arp.c up to 1.9 external/bsd/dhcpcd/dist/arp.h up to 1.8 external/bsd/dhcpcd/dist/auth.c up to 1.8 external/bsd/dhcpcd/dist/auth.h up to 1.8 external/bsd/dhcpcd/dist/common.c up to 1.8 external/bsd/dhcpcd/dist/common.h up to 1.7 external/bsd/dhcpcd/dist/control.c up to 1.7 external/bsd/dhcpcd/dist/control.h up to 1.7 external/bsd/dhcpcd/dist/defs.h up to 1.14 external/bsd/dhcpcd/dist/dev.h up to 1.7 external/bsd/dhcpcd/dist/dhcp-common.c up to 1.7 external/bsd/dhcpcd/dist/dhcp-common.h up to 1.7 external/bsd/dhcpcd/dist/dhcp.c up to 1.27 external/bsd/dhcpcd/dist/dhcp.h up to 1.7 external/bsd/dhcpcd/dist/dhcp6.c up to 1.9 external/bsd/dhcpcd/dist/dhcp6.h up to 1.7 external/bsd/dhcpcd/dist/dhcpcd-definitions.conf up to 1.7 external/bsd/dhcpcd/dist/dhcpcd-embedded.c up to 1.7 external/bsd/dhcpcd/dist/dhcpcd-embedded.c.in up to 1.1.1.2 external/bsd/dhcpcd/dist/dhcpcd-embedded.h up to 1.7 external/bsd/dhcpcd/dist/dhcpcd-embedded.h.in up to 1.1.1.3 external/bsd/dhcpcd/dist/dhcpcd-run-hooks.8.in up to 1.13 external/bsd/dhcpcd/dist/dhcpcd.8.in up to 1.40 external/bsd/dhcpcd/dist/dhcpcd.c up to 1.22 external/bsd/dhcpcd/dist/dhcpcd.conf.5.in up to 1.18 external/bsd/dhcpcd/dist/dhcpcd.h up to 1.9 external/bsd/dhcpcd/dist/duid.c up to 1.7 external/bsd/dhcpcd/dist/duid.h up to 1.7 external/bsd/dhcpcd/dist/eloop.c up to 1.8 external/bsd/dhcpcd/dist/eloop.h up to 1.7 external/bsd/dhcpcd/dist/if-bsd.c up to 1.17 external/bsd/dhcpcd/dist/if-options.c up to 1.20 external/bsd/dhcpcd/dist/if-options.h up to 1.8 external/bsd/dhcpcd/dist/if.c up to 1.11 external/bsd/dhcpcd/dist/if.h up to 1.8 external/bsd/dhcpcd/dist/ipv4.c up to 1.11 external/bsd/dhcpcd/dist/ipv4.h up to 1.8 external/bsd/dhcpcd/dist/ipv4ll.c up to 1.8 external/bsd/dhcpcd/dist/ipv6.c up to 1.8 external/bsd/dhcpcd/dist/ipv6.h up to 1.10 external/bsd/dhcpcd/dist/ipv6nd.c up to 1.20 external/bsd/dhcpcd/dist/ipv6nd.h up to 1.9 external/bsd/dhcpcd/dist/script.c up to 1.17 external/bsd/dhcpcd/dist/crypt/crypt.h up to 1.6 external/bsd/dhcpcd/dist/crypt/hmac_md5.c up to 1.6 doc/3RDPARTY 1.1198 Import dhcpcd version 6.7.1. @ text @d1 2 a2 2 .\" $NetBSD: dhcpcd.conf.5.in,v 1.18 2015/01/30 09:47:05 roy Exp $ .\" Copyright (c) 2006-2015 Roy Marples d26 1 a26 1 .Dd January 20, 2015 a347 6 .It Ic ipv6ra_autoconf Generate SLAAC addresses for each Prefix advertised by a Router Advertisement message with the Auto flag set. On by default. .It Ic ipv6ra_noautoconf Disables the above option. a486 8 This isn't an exact science though because a BOOTP server can send DHCP like options. .It Ic reject Ar option Reject a DHCP message that contains the .Ar option . This is useful when you cannot use .Ic require to select / de-select BOOTP messages. @ 1.10.2.3 log @Pull up following revision(s) (requested by roy in ticket #1621): external/bsd/dhcpcd/dist/compat/crypt/sha256.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/md5.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/md5.h up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/crypt/sha256.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/hmac.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/hmac.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/_strtoi.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random_uniform.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random_uniform.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/bitops.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/dprintf.c up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/dprintf.h up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/endian.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/pidfile.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/pidfile.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/queue.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/reallocarray.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/reallocarray.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strtoi.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strtoi.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strtou.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strlcpy.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strlcpy.h up to 1.1.1.1 external/bsd/dhcpcd/dist/config-null.mk up to 1.1.1.1 external/bsd/dhcpcd/dist/configure up to 1.1.1.8 external/bsd/dhcpcd/dist/iconfig.mk up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/01-test up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/02-dump up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/15-timezone up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/20-resolv.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/29-lookup-hostname up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/30-hostname up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-dhcpcd-compat up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/50-ntp.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-yp.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-ypbind.in up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/Makefile up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in up to 1.1.1.4 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in up to 1.1.1.4 external/bsd/dhcpcd/dist/src/GNUmakefile up to 1.1.1.1 external/bsd/dhcpcd/dist/src/Makefile up to 1.1.1.4 external/bsd/dhcpcd/dist/src/arp.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/arp.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/auth.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/auth.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/bpf.c up to 1.7 external/bsd/dhcpcd/dist/src/bpf.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/common.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/common.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/control.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/control.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.15 external/bsd/dhcpcd/dist/src/dev.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dev.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcp-common.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/dhcp-common.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.11 external/bsd/dhcpcd/dist/src/dhcp.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.1.1.12 external/bsd/dhcpcd/dist/src/dhcp6.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/dhcpcd-definitions-small.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.1.1.10 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.13 external/bsd/dhcpcd/dist/src/dhcpcd.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.10 external/bsd/dhcpcd/dist/src/dhcpcd.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/duid.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/duid.h up to 1.1.1.1 external/bsd/dhcpcd/dist/src/eloop.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/eloop.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/genembedc up to 1.1.1.1 external/bsd/dhcpcd/dist/src/genembedh up to 1.1.1.1 external/bsd/dhcpcd/dist/src/if-bsd.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if-linux-wext.c up to 1.1.1.2 external/bsd/dhcpcd/dist/src/if-linux.c up to 1.1.1.10 external/bsd/dhcpcd/dist/src/if-options.c up to 1.10 external/bsd/dhcpcd/dist/src/if-options.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/if-sun.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/if.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/ipv4.c up to 1.1.1.9 external/bsd/dhcpcd/dist/src/ipv4.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv4ll.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv4ll.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.1.1.11 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/ipv6nd.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/logerr.c up to 1.1.1.2 external/bsd/dhcpcd/dist/src/logerr.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/route.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/route.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/sa.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/sa.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/script.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/script.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dev/Makefile up to 1.1.1.1 external/bsd/dhcpcd/dist/src/dev/udev.c up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/.gitignore up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/crypt/GNUmakefile up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/crypt/Makefile up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/README.md up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/crypt/run-test.c up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/test.h up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c up to 1.1.1.3 external/bsd/dhcpcd/dist/tests/Makefile up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/eloop-bench/.gitignore up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/eloop-bench/README.md up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c up to 1.1.1.3 external/bsd/dhcpcd/dist/.arcconfig up to 1.1.1.1 external/bsd/dhcpcd/dist/.gitignore up to 1.4 external/bsd/dhcpcd/dist/BUILDING.md up to 1.1.1.2 external/bsd/dhcpcd/dist/LICENSE up to 1.1.1.2 external/bsd/dhcpcd/dist/Makefile up to 1.1.1.5 external/bsd/dhcpcd/dist/Makefile.inc up to 1.1.1.2 external/bsd/dhcpcd/dist/README.md up to 1.1.1.3 external/bsd/dhcpcd/dist/bpf-filter.h delete external/bsd/dhcpcd/dist/common.c delete external/bsd/dhcpcd/dist/arp.c delete external/bsd/dhcpcd/dist/arp.h delete external/bsd/dhcpcd/dist/auth.c delete external/bsd/dhcpcd/dist/auth.h delete external/bsd/dhcpcd/dist/dhcpcd.c delete external/bsd/dhcpcd/dist/control.c delete external/bsd/dhcpcd/dist/common.h delete external/bsd/dhcpcd/dist/config.h delete external/bsd/dhcpcd/dist/dhcp-common.c delete external/bsd/dhcpcd/dist/control.h delete external/bsd/dhcpcd/dist/defs.h delete external/bsd/dhcpcd/dist/dev.h delete external/bsd/dhcpcd/dist/dhcpcd-definitions.conf delete external/bsd/dhcpcd/dist/dhcp-common.h delete external/bsd/dhcpcd/dist/dhcp.c delete external/bsd/dhcpcd/dist/dhcp.h delete external/bsd/dhcpcd/dist/dhcp6.c delete external/bsd/dhcpcd/dist/dhcp6.h delete external/bsd/dhcpcd/dist/dhcpcd-run-hooks.8.in delete external/bsd/dhcpcd/dist/dhcpcd-embedded.c delete external/bsd/dhcpcd/dist/dhcpcd.8.in delete external/bsd/dhcpcd/dist/dhcpcd-embedded.c.in delete external/bsd/dhcpcd/dist/dhcpcd-embedded.h delete external/bsd/dhcpcd/dist/dhcpcd-embedded.h.in delete external/bsd/dhcpcd/dist/ipv4.c delete external/bsd/dhcpcd/dist/if.c delete external/bsd/dhcpcd/dist/dhcpcd-run-hooks.in delete external/bsd/dhcpcd/dist/dhcpcd.h delete external/bsd/dhcpcd/dist/dhcpcd.conf delete external/bsd/dhcpcd/dist/dhcpcd.conf.5.in delete external/bsd/dhcpcd/dist/duid.c delete external/bsd/dhcpcd/dist/duid.h delete external/bsd/dhcpcd/dist/eloop.c delete external/bsd/dhcpcd/dist/eloop.h delete external/bsd/dhcpcd/dist/if-bsd.c delete external/bsd/dhcpcd/dist/if-options.c delete external/bsd/dhcpcd/dist/if-options.h delete external/bsd/dhcpcd/dist/if.h delete external/bsd/dhcpcd/dist/crypt/hmac_md5.c delete external/bsd/dhcpcd/dist/crypt/crypt.h delete external/bsd/dhcpcd/dist/ipv4.h delete external/bsd/dhcpcd/dist/ipv4ll.c delete external/bsd/dhcpcd/dist/ipv6.c delete external/bsd/dhcpcd/dist/ipv4ll.h delete external/bsd/dhcpcd/dist/ipv6.h delete external/bsd/dhcpcd/dist/ipv6nd.c delete external/bsd/dhcpcd/dist/ipv6nd.h delete external/bsd/dhcpcd/dist/script.c delete external/bsd/dhcpcd/dist/script.h delete external/bsd/dhcpcd/dist/dhcpcd-hooks/15-timezone delete external/bsd/dhcpcd/dist/dhcpcd-hooks/01-test delete external/bsd/dhcpcd/dist/dhcpcd-hooks/02-dump delete external/bsd/dhcpcd/dist/dhcpcd-hooks/10-mtu delete external/bsd/dhcpcd/dist/dhcpcd-hooks/10-wpa_supplicant delete external/bsd/dhcpcd/dist/dhcpcd-hooks/20-resolv.conf delete external/bsd/dhcpcd/dist/dhcpcd-hooks/29-lookup-hostname delete external/bsd/dhcpcd/dist/dhcpcd-hooks/30-hostname delete external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ntp.conf delete external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ypbind delete usr.sbin/postinstall/postinstall: revision 1.211-1.213 etc/rc.d/dhcpcd upto 1.5 doc/3RDPARTY manual edit Import dhcpcd-7.0.7. Adjust postinstal and rc file. @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.10.2.2 2015/02/05 15:13:12 martin Exp $ @ 1.9 log @Sync @ text @d26 1 a26 1 .Dd July 7, 2014 d267 1 a267 1 is increased to the highest multiple of 8 that can accomodate the d656 1 a656 1 The option data is split into a space seperated array, each element being @ 1.8 log @Sync @ text @d26 1 a26 1 .Dd June 6, 2014 d218 1 a218 1 .It Ic ia_na Op Ar iaid d234 1 a234 1 .It Ic ia_pd Op Ar iaid Op Ar interface Op / Ar sla_id Op / Ar prefix_len d254 4 a257 1 You cannot assign a prefix to the requesting interface. d297 12 d476 3 a760 6 When configuring DHCPv6 you can only select one IA type. I can't think of a use case where you would want different types, so if you have one then please bring it up for discussion on the .Aq Mt dhcpcd-discuss@@marples.name mailing list. .Pp @ 1.7 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.1.1.21 2014/02/25 13:14:30 roy Exp $ d26 1 a26 1 .Dd January 30, 2014 d109 7 d182 8 d240 4 d246 1 a246 1 is given then we will assign a prefix to every other interface with a unique d248 1 a248 1 for each, starting from 0. d253 1 d259 7 a265 1 of 64 is assumed. d270 1 d280 2 d287 1 a287 1 .D1 ia_pd 1 eth1/0 eth2/1 d289 1 a289 1 .D1 # Disable automatic address configuration for eth1 d292 2 a293 2 .D1 noipv4 .D1 noipv6 d317 1 a317 1 RDNSS option. d364 2 d459 2 @ 1.7.2.1 log @Rebase. @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.10 2014/07/30 15:47:32 roy Exp $ d26 1 a26 1 .Dd July 14, 2014 a108 7 .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. a174 8 .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. d203 1 a203 1 .It Ic ia_na Op Ar iaid Op / address d219 1 a219 1 .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len a224 4 Unless a .Ar sla_id of 0 is assigned, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. d227 1 a227 1 is given then we will assign a prefix to every other interface with a d229 1 a229 1 equivalent to the interface index assigned by the OS. d234 1 a234 5 Each assigned address will have a suffix of 1. You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. d239 1 a239 7 of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accommodate the .Ar sla_id . a243 1 .Ar sla_id can be 0 only if the Delegated Prefix is assigned to one interface. a252 2 .D1 # Global settings, disable IPv4 and IPv6RS .D1 noipv4 d258 1 a258 1 .D1 ia_pd 1 eth1/1 eth2/2 d260 1 a260 1 .D1 # Enable automatic address configuration for eth1 d263 2 a264 14 .D1 ipv4 .D1 ipv6rs .It Ic ia_pd_mix To be RFC compliant, .Nm dhcpcd cannot mix Prefix Delegation with other DHCPv6 address types in the same session. This has a number of issues: additional DHCP traffic and potential collisions between options. .Ic ia_pd_mix enables .Li draft-ietf-dhc-dhcpv6-stateful-issues-06 support so that Prefix Delegation can be mixed with other address types in the same session. d288 1 a288 1 RDNSS option and a valid prefix or no DHCPv6 instruction. a334 2 .It Ic gateway Install a default route if available (default). a427 5 .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. If .Ar private is used, a RFC7217 address is generated. d605 1 a605 1 The option data is split into a space separated array, each element being d710 6 @ 1.6 log @Sync @ text @d1 2 a2 2 .\" $NetBSD: dhcpcd.conf.5.in,v 1.5 2013/09/20 21:39:59 wiz Exp $ .\" Copyright (c) 2006-2013 Roy Marples d26 1 a26 1 .Dd December 6, 2013 d73 15 d165 3 d222 3 d233 4 a236 1 .Ar sla_id d254 2 d259 6 d321 2 d327 6 d471 1 a471 1 Tag the DHCP messages with the userclass. d491 2 d501 1 a501 1 Add the Vendor Indetifying Vendor Class with the IANA assigned Enterprise d656 46 @ 1.5 log @Sort, fix Dt. @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.4 2013/09/20 10:56:32 roy Exp $ d26 1 a26 1 .Dd September 12, 2013 d139 1 a139 1 compliant clientid. d142 2 d147 10 a187 1 If none is specified, a default d189 6 a194 4 is used. If the interface name is 4 characters or less then that is used, otherwise the interface index is used. You can request more than one ia_na by specifying a unique iaid for each one. d198 3 a200 1 You can request more than one ia_ta by specifying a unique iaid for each one. d304 2 d312 2 d411 3 a413 2 The default timeout for waiting for a DHCP response is 30 seconds which may be too long or too short and can be changed here. d419 11 d458 10 d482 132 d622 6 @ 1.4 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.3 2013/07/29 20:39:28 roy Exp $ d27 1 a27 1 .Dt DHCPCD.CONF 5 SMM d442 2 a443 1 .Xr dhcpcd-run-hooks 8 , d445 1 a445 2 .Xr if_nametoindex 3 , .Xr fnmatch 3 @ 1.3 log @Sync @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.1.1.18 2013/07/29 20:35:33 roy Exp $ d26 1 a26 1 .Dd July 25, 2013 d94 7 d145 7 d181 1 d185 1 d274 4 d427 1 a427 1 .It Ic waitip d429 8 @ 1.2 log @Use Mt for email addresses. @ text @d1 1 a1 1 .\" $NetBSD: dhcpcd.conf.5.in,v 1.1.1.17 2013/06/21 19:33:08 roy Exp $ d26 1 a26 1 .Dd June 19, 2013 d102 14 d133 3 a135 3 This requires persistent storage and not all DHCP servers work with it so it's not enabled by default. The duid generated will be held in d151 8 @ 1.1 log @Initial revision @ text @d1 2 a2 1 .\" Copyright 2006-2008 Roy Marples d26 1 a26 1 .Dd Jun 30, 2008 d28 1 d31 1 a31 1 .Nd dhcpcd configuration file d48 54 a101 3 .It Ic classid Ar string Change the default classid sent from dhcpcd-version. If not set then none is sent. d103 2 a104 1 Change the default clientid sent from the interface hardware address. d106 7 a112 1 If not set then none is sent. d124 3 d128 4 a131 3 Sends specified .Ar hostname to the DHCP server so it can be registered in DNS. If d133 53 a185 3 if a FQDN (ie, contains a .) then it will be encoded as such. .It Ic fqdn Op none | ptr | both none disables FQDN encoding, ptr just asks the DHCP server to update the PTR d187 2 a188 3 The current hostname or the hostname specified using the .Ic hostname option must be a FQDN. d191 3 d197 24 d224 9 d242 5 d253 2 d258 1 a258 3 .It Ic nowait Don't wait to obtain a DHCP lease, fork to the background right away. .It Ic option Ar dhcp-option d260 1 a260 1 .Ar dhcp-option d265 54 a318 1 You can specify more seperated by commas, spaces or more option lines. d324 25 d352 5 d360 2 a361 2 .It vendor Ar code , Ns Ar value Add an enscapulated vendor option. d364 3 d375 15 d393 3 a395 1 .Xr dhcpcd 8 d397 1 a397 1 .An Roy Marples d399 2 a400 1 Please report them to http://bugs.marples.name @ 1.1.1.1 log @Import dhpcd-4.0.0rc3. Major changes since beta4: - support for link state notification (e.g. renew lease after carrier returned) - support to start go into background immediately - don't cleanup interface state. dhcpcd will leave the interface in the same state as before if the lease uses separate addresses. -p still stops it from removing the configured address on exit - various smaller bugfixes, optimisations and cleanups @ text @@ 1.1.1.2 log @Import dhcpcd-4.0.1: - basic resolvconf like functionality to combine the resolv.conf entries from running instances - improve timer handling to not break with early wake ups and other edge cases related to the kernel time granularity - improve handling of dhcpcd -n and rebinding after carrier loss to better deal with changing networks - add option to black list servers based on server id - don't check for ARP conflict if the interface already has the address - improve signal handling during vfork/exec @ text @d25 1 a25 1 .Dd August 18, 2008 d46 3 a48 4 .It Ic background Background immediately. This is useful for startup scripts which don't disable link messages for carrier status. a77 3 .Nm dhcpcd encodes the FQDN hostname as specified in .Li RFC1035 . d102 3 a104 1 .It Ic option Ar option d106 1 a106 1 .Ar option d111 1 a111 9 You can specify more options seperated by commas, spaces or more option lines. .It Ic require Ar option Requires the .Ar option to be present in all DHCP messages, otherwise the message is ignored. It can be a variable to be used in .Xr dhcpcd-run-hooks 8 or the numerical value. You can specify more options seperated by commas, spaces or more require lines. d123 1 a123 1 .It Ic vendor Ar code , Ns Ar value a134 3 .It Ic vendorclassid Ar string Change the default vendorclassid sent from dhcpcd-version. If not set then none is sent. @ 1.1.1.2.6.1 log @Pull up following revision(s) (requested by roy in ticket #240): sys/net/rtsock.c: revision 1.119 external/bsd/dhcpcd/dist/README external/bsd/dhcpcd/dist/client.c external/bsd/dhcpcd/dist/common.c external/bsd/dhcpcd/dist/config.h external/bsd/dhcpcd/dist/configure.c external/bsd/dhcpcd/dist/dhcp.c external/bsd/dhcpcd/dist/dhcpcd-run-hooks.8.in external/bsd/dhcpcd/dist/dhdpcd.8.in external/bsd/dhcpcd/dist/dhcpcd.c external/bsd/dhcpcd/dist/dhcpcd.conf.5.in external/bsd/dhcpcd/dist/if-bsd.c external/bsd/dhcpcd/dist/net.c external/bsd/dhcpcd/dist/net.h external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ntp.conf Import dhcpcd-4.0.7 with the following changes from dhcpcd-4.0.1 DHCP_DECLINE now includes the IP and Server in the message. Trailing NULLs are stripped from string options. ntpd is only restarted if it is already running. ClientID is no longer sent by default. CSR comes before routers and static routes as per RFC 3442. Host routes are now added correctly. If a the interface link flaps but status does not change, do not reset the timer. @ text @d25 1 a25 1 .Dd November 18, 2008 a49 7 .It Ic blacklist Ar address Ignores all DHCP messages which have this .Ar address as the server ID. This may be expanded in future releases to ignore all packets matching either the IP or hardware .Ar address . d51 1 a51 2 Send the .Ar clientid . d53 1 a53 7 For interfaces whose hardware address is longer than 8 bytes, or if the .Ar clientid is an empty string then .Nm dhcpcd sends a default .Ar clientid of the hardware family and the hardware address. a113 2 .Ic quiet Supress any dhcpcd output to the console, except for errors. d155 1 a155 1 Please report them to http://roy.marples.name/projects/dhcpcd @ 1.1.1.2.6.1.4.1 log @sync to netbsd-5 @ text @d1 1 a1 1 .\" Copyright (c) 2006-2009 Roy Marples d25 1 a25 1 .Dd October 16, 2009 a26 1 .Os a45 25 .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.10/24 d50 7 a56 18 .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . a78 3 .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. d80 3 a82 4 Sends .Ar hostname to the DHCP server so it can be registered in DNS. If d84 1 a84 4 is an empty string then the current system hostname is sent. If .Ar hostname is a FQDN (ie, contains a .) then it will be encoded as such. d88 3 a101 6 .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metic of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. a110 5 .Pp So to stop .Nm dhcpcd from touching your DNS or MTU settings you would do:- .D1 nohook resolv.conf, mtu d128 1 a128 14 .It Ic nooption Ar option Remove the option from the DHCP message. This should only be used when a DHCP server sends a non requested option that should not be processed. .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet a129 11 .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the discover phase if we have an old lease to use. The default is 10 seconds. A setting if 0 seconds causes .Nm dhcpcd to skip the reboot phase and go straight into discover. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. a137 5 To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . a142 25 .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. .Pp Here is an example which configures a static address, routes and dns. .D1 interface eth0 .D1 static ip_address=192.168.0.10/24 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers a152 3 To add a raw vendor string, omit .Ar code but keep the comma. a160 2 Set un-encapulated vendor option to hello world. .D1 vendor ,"hello world" a163 2 .It Ic waitip Wait for an address to be assigned before forking to the background. d167 1 a167 3 .Xr dhcpcd 8 , .Xr if_nametoindex 3 , .Xr fnmatch 3 d169 1 a169 1 .An Roy Marples Aq roy@@marples.name @ 1.1.1.2.6.1.2.1 log @Apply patch (requested by roy in ticket #880): Update dhcpcd to 4.0.14. @ text @a26 1 .Os @ 1.1.1.2.6.2 log @Pull up following revision(s) (requested by roy in ticket #534): external/bsd/dhcpcd/dist/README: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/arp.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/arp.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/bind.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/bind.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/bpf-filter.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/bpf.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/client.c: removed external/bsd/dhcpcd/dist/client.h: removed external/bsd/dhcpcd/dist/common.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/common.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/config.h : dhcpcd-5-0-1 external/bsd/dhcpcd/dist/configure.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/configure.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/control.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/control.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcp.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcp.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-run-hooks.8.in: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-run-hooks.in: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd.8.in: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd.conf: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd.conf.5.in: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/duid.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/duid.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/eloop.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/eloop.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/if-bsd.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/if-options.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/if-options.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/if-pref.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/if-pref.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/ipv4ll.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/ipv4ll.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/logger.c: removed external/bsd/dhcpcd/dist/logger.h: removed external/bsd/dhcpcd/dist/net.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/net.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/signals.c: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/signals.h: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-hooks/01-test: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-hooks/10-mtu: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-hooks/20-resolv.conf: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-hooks/29-lookup-hostname: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-hooks/30-hostname: dhcpcd-5-0-1 external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ntp.conf: dhcpcd-5-0-1 Update to dhcpcd-5.0.1. @ text @d1 1 a1 1 .\" Copyright (c) 2006-2009 Roy Marples d25 1 a25 1 .Dd April 18, 2009 a26 1 .Os a45 25 .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.10/24 d50 7 a56 3 .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . a78 3 .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. d81 1 a81 1 .Ar hostname d88 3 a101 6 .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metic of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. a110 5 .Pp So to stop .Nm dhcpcd from touching your DNS or MTU settings you would do:- .D1 nohook resolv.conf, mtu d128 1 a128 10 .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet a129 11 .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the discover phase if we have an old lease to use. The default is 10 seconds. A setting if 0 seconds causes .Nm dhcpcd to skip the reboot phase and go straight into discover. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. a137 5 To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . a142 25 .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. .Pp Here is an example which configures a static address, routes and dns. .D1 interface eth0 .D1 static ip_address=192.168.0.10/24 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers d167 1 a167 3 .Xr dhcpcd 8 , .Xr if_nametoindex 3 , .Xr fnmatch 3 d169 1 a169 1 .An Roy Marples Aq roy@@marples.name @ 1.1.1.2.6.3 log @Apply patch (requested by roy in ticket 1099): Update dhcpcd to 5.1.3. @ text @d25 1 a25 1 .Dd October 16, 2009 a78 15 .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . d105 1 a105 1 Sends d107 1 a107 2 to the DHCP server so it can be registered in DNS. If d109 1 a109 4 is an empty string then the current system hostname is sent. If .Ar hostname is a FQDN (ie, contains a .) then it will be encoded as such. a160 4 .It Ic nooption Ar option Remove the option from the DHCP message. This should only be used when a DHCP server sends a non requested option that should not be processed. a235 3 To add a raw vendor string, omit .Ar code but keep the comma. a243 2 Set un-encapulated vendor option to hello world. .D1 vendor ,"hello world" a246 2 .It Ic waitip Wait for an address to be assigned before forking to the background. @ 1.1.1.3 log @Import dhcpcd-4.0.7 with the following changes from dhcpcd-4.0.1 DHCP_DECLINE now includes the IP and Server in the message. Trailing NULLs are stripped from string options. ntpd is only restarted if it is already running. ClientID is no longer sent by default. CSR comes before routers and static routes as per RFC 3442. Host routes are now added correctly. If a the interface link flaps but status does not change, do not reset the timer. @ text @d25 1 a25 1 .Dd November 18, 2008 a49 7 .It Ic blacklist Ar address Ignores all DHCP messages which have this .Ar address as the server ID. This may be expanded in future releases to ignore all packets matching either the IP or hardware .Ar address . d51 1 a51 2 Send the .Ar clientid . d53 1 a53 7 For interfaces whose hardware address is longer than 8 bytes, or if the .Ar clientid is an empty string then .Nm dhcpcd sends a default .Ar clientid of the hardware family and the hardware address. a113 2 .Ic quiet Supress any dhcpcd output to the console, except for errors. d155 1 a155 1 Please report them to http://roy.marples.name/projects/dhcpcd @ 1.1.1.3.2.1 log @Sync with HEAD. Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html @ text @d1 1 a1 1 .\" Copyright (c) 2006-2009 Roy Marples d25 1 a25 1 .Dd April 18, 2009 a26 1 .Os a45 25 .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.10/24 d50 7 a56 3 .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . a78 3 .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. d81 1 a81 1 .Ar hostname d88 3 a101 6 .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metic of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. a110 5 .Pp So to stop .Nm dhcpcd from touching your DNS or MTU settings you would do:- .D1 nohook resolv.conf, mtu d128 1 a128 10 .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet a129 11 .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the discover phase if we have an old lease to use. The default is 10 seconds. A setting if 0 seconds causes .Nm dhcpcd to skip the reboot phase and go straight into discover. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. a137 5 To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . a142 25 .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. .Pp Here is an example which configures a static address, routes and dns. .D1 interface eth0 .D1 static ip_address=192.168.0.10/24 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers d167 1 a167 3 .Xr dhcpcd 8 , .Xr if_nametoindex 3 , .Xr fnmatch 3 d169 1 a169 1 .An Roy Marples Aq roy@@marples.name @ 1.1.1.4 log @Import dhcpcd-4.0.13 Fixed since dhcpcd-4.0.12 include * Every DHCP message now requires a ServerID as some rogue DHCP servers NAK without one. * Extra UDP validation is now done for testing dhcpcd over a loopback @ text @a26 1 .Os @ 1.1.1.5 log @Import dhcpcd-5.0.0 Major changes from dhcpcd-4 include * Single daemon can now run DHCP on multiple interfaces at the same time * Configuration profiles per interface, ssid, arping and fallback * Listens to 3rd party programs changing routing information * Supports DHCP INFORM over PPP * Can configure static options for destination address * Control socket so 3rd party program can control or listen directly to dhcpcd events * Is also a BOOTP client @ text @d1 1 a1 1 .\" Copyright 2006-2009 Roy Marples d25 1 a25 1 .Dd April 18, 2009 a46 25 .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.10/24 d51 7 a57 3 .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . a79 3 .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. d82 1 a82 1 .Ar hostname d89 3 a102 6 .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metic of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. a111 5 .Pp So to stop .Nm dhcpcd from touching your DNS or MTU settings you would do:- .D1 nohook resolv.conf, mtu d129 1 a129 10 .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet a130 11 .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the discover phase if we have an old lease to use. The default is 10 seconds. A setting if 0 seconds causes .Nm dhcpcd to skip the reboot phase and go straight into discover. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. a138 5 To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . a143 25 .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. .Pp Here is an example which configures a static address, routes and dns. .D1 interface eth0 .D1 static ip_address=192.168.0.10/24 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers d168 1 a168 3 .Xr dhcpcd 8 , .Xr if_nametoindex 3 , .Xr fnmatch 3 d170 1 a170 1 .An Roy Marples Aq roy@@marples.name @ 1.1.1.6 log @Import dhcpcd-5.0.1 Changes from dhcpcd-5.0.0 * Silence compile warnings on Sparc64 * Fix existing address detection @ text @d1 1 a1 1 .\" Copyright (c) 2006-2009 Roy Marples @ 1.1.1.7 log @Update to dhcpcd-5.0.6 Changes from dhcpcd-5.0.5 include * Fix crash on MIPS, fixes PR bin/41682 Thanks to Tim McIntosh for the patch * Save and restore interface MTU when changing * IP whitelist * Ensure that the lease and pidfile directories exist at startup @ text @d25 1 a25 1 .Dd July 5, 2009 a78 7 .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. a160 4 .It Ic nooption Ar option Remove the option from the DHCP message. This should only be used when a DHCP server sends a non requested option that should not be processed. @ 1.1.1.8 log @Import dhcpcd-5.0.7 Changes from dhcpcd-5.0.6 include: * Fix -f path/to/config * -e, --env var=value for profile specific env vars * Many issues resolved when running in test mode * Don't print a (null) string when there is no NAK message * read ssize_t instead of size_t when checking signals @ text @d25 1 a25 1 .Dd July 26, 2009 a85 8 .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . d112 1 a112 1 Sends d114 1 a114 5 to the DHCP server so it can be registered in DNS. If .Ar hostname is an empty string then the current system hostname is sent. If d116 1 a116 1 is a FQDN (ie, contains a .) then it will be encoded as such. @ 1.1.1.9 log @Import dhcpcd-5.1.1 Changes from dhcpcd-5.0.7 include * Only allow hardware families we know by default (over-ridable) * Fix persistent and timeout 0 options * Fix parsing of escape code sequencies * Don't bring up interfaces brought down when handling new interfaces * Allow un-encapsulated vendor option * Don't null terminate gratuitously when handling quotes * Fix various typos and grammatical errors * dhcpcd.conf simplified a little @ text @d25 1 a25 1 .Dd September 2, 2009 a258 3 To add a raw vendor string, omit .Ar code but keep the comma. a266 2 Set un-encapulated vendor option to hello world. .D1 vendor ,"hello world" @ 1.1.1.10 log @Import dhcpcd-5.1.2 with these changes: * ClientID is now reported when interface starts. * -w, --wait forces dhcpcd to wait until an interface gets a lease or times out. * Ensure DHCP socket is open when sending a DECLINE. * Uses new hwaddr if existing interface is downed and then changed. * No longer works on firewire interfaces by default. dhcpcd-5.1.2 has a new behaviour change - when starting up and at least 1 interface has a carrier then it tries to get a lease or times out. It still daemonises regardless. This, along with the -b and -w flags allows total control over the desired behaviour of dhcpcd. @ text @d25 1 a25 1 .Dd October 16, 2009 a274 2 .It Ic waitip Wait for an address to be assigned before forking to the background. @ 1.1.1.11 log @Import dhcpcd-5.1.5 with the following changes: * -H, --xidhwaddr uses the last 4 bytes of the hardware address as the DHCP xid * -J, --broadcast tells the DHCP server to broadcast replies * no longer warn about InfiniBand being an unsupported family * infinite lease times are valid when reading old leases * discard address correctly if lease is invalid @ text @d1 1 a1 1 .\" Copyright (c) 2006-2010 Roy Marples d25 1 a25 1 .Dd January 28, 2010 a85 7 .It Ic broadcast Instructs the DHCP server to broadcast replies back to the client. Normally this is only set for non Ethernet interfaces, such as FireWire and InfiniBand. In most cases, .Nm dhcpcd will set this automatically. d146 1 a146 1 will supply a default metric of 200 + d179 1 a179 1 You can specify more options separated by commas, spaces or more option lines. d194 1 a194 1 Suppress any dhcpcd output to the console, except for errors. d213 1 a213 1 You can specify more options separated by commas, spaces or more require lines. d256 1 a256 1 Add an encapsulated vendor option. d270 1 a270 1 Set un-encapsulated vendor option to hello world. a276 3 .It Ic xidhwaddr Use the last four bytes of the hardware address as the DHCP xid instead of a randomly generated number. @ 1.1.1.12 log @Import dhcpcd-5.2.9 with the following changes: * syntax in 50-ypbind hook has been fixed * man page corrections * report hwaddr used by dhcpcd when debug is enabled * Fix detecting inet address for INFORM support * document reason RELEASE in dhcpcd-run-hooks * Support RTM_CHGADDR in the upcoming NetBSD-6 This is used to work out if the hwaddr has changed as the interface does not go down/up unlike other OSes * ntp hook no longer attempts to restart ntpd if 1st attempt failed @ text @d30 1 a30 1 .Nd dhcpcd configuration file @ 1.1.1.12.6.1 log @sync with head @ text @d1 1 a1 1 .\" Copyright (c) 2006-2012 Roy Marples d25 1 a25 1 .Dd March 19, 2012 a146 10 .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option. Set this option so to make .Nm dhcpcd always fork on an RA. a175 2 .It Ic noipv6rs Disable solicition of IPv6 Router Advertisements. d206 1 a206 1 The default is 5 seconds. d296 1 a296 2 Please report them to .Lk http://roy.marples.name/projects/dhcpcd @ 1.1.1.12.6.2 log @sync with head @ text @d25 1 a25 1 .Dd May 21, 2012 a156 12 .It ic ipv6ra_own Disables kernel IPv6 Router Advertisment processing so dhcpcd can manage addresses and routes. .It ic ipv6ra_own_default Each time dhcpcd receives an IPv6 Router Adveristment, dhcpcd will manage the default route only. This allows dhcpcd to prefer an interface for outbound traffic based on metric and/or user selection rather than the kernel. .It ic ipv6rs Enables IPv6 Router Advertisment solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. d292 1 a292 4 The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 a293 2 Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. @ 1.1.1.12.6.3 log @sync with head @ text @d25 1 a25 1 .Dd October 11, 2012 a135 4 .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. d157 1 a157 1 .It Ic ipv6ra_own d160 1 a160 1 .It Ic ipv6ra_own_default d165 1 a165 1 .It Ic ipv6rs @ 1.1.1.12.6.4 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 2 .\" $NetBSD$ .\" Copyright (c) 2006-2014 Roy Marples d25 2 a26 2 .Dd January 30, 2014 .Dt DHCPCD.CONF 5 a71 15 .It Ic authprotocol Ar protocol Ar algorithm Ar rdm Authenticate DHCP messages. See the Supported Protocols section. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed prptocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. a92 7 .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. a100 14 .Pp If the hostname is set, will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. d117 4 a120 6 compliant DHCP Unique Identifier. If persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). This, plus the IAID will be used as the .Ic clientid . The DUID-LLT generated will be held in a122 20 .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This option must be used in an .Ic interface block. This defaults to the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. a135 70 .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. .It Ic ia_na Op Ar iaid Request a DHCPv6 Normal Address for .Ar iaid . .Ar iaid defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . You can request more than one ia_ta by specifying a unique .Ar iaid for each one. .It Ic ia_pd Op Ar iaid Op Ar interface Op / Ar sla_id Op / Ar prefix_len Request a DHCPv6 Delegated Prefix for .Ar iaid . This option must be used in an .Ic interface block. If no .Ar interface is given then we will assign a prefix to every other interface with a unique .Ar sla_id for each, starting from 0. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id . You cannot assign a prefix to the requesting interface. .Nm dhcpcd has to be running for all the interfaces it is delegating to. A default .Ar prefix_len of 64 is assumed. .Ar sla_id is an integer and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation like so: .Pp .D1 noipv6rs .D1 # Don't touch eth3 at all .D1 denyinterfaces eth3 .Pp .D1 interface eth0 .D1 ia_pd 1 eth1/0 eth2/1 .Pp .D1 # Disable automatic address configuration for eth1 .D1 # eth1 still gets a delegated prefix .D1 interface eth1 .D1 noipv4 .D1 noipv6 d139 3 a141 3 Only confgiure IPv6. .It Ic fqdn Op disable | ptr | both ptr just asks the DHCP server to update the PTR a142 2 disable will disable the FQDN option. The default is both. a163 1 This does not work reliably on any BSD system, probably due to kernel issues. a168 1 This does work reliably on BSD systems. a181 3 .It Ic noalias IPv4 addresses added will overwrite a pre-existing address instead of working alongside. a184 12 .It Ic noauthrequired Don't require authentication even though we requested it. .It Ic nodev Don't load .Pa /dev management modules. .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. a195 2 .It Ic noipv4 Don't attempt to configure an IPv4 address. a201 2 .It Ic noipv6 Don't attmept to configure an IPv6 address. d203 1 a203 1 Disable solicitation and receipt of IPv6 Router Advertisements. d214 1 a214 9 You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. Prepend dhcp6_ to .Ar option to request a DHCPv6 option. DHCPv4 options are mapped to DHCPv6 where applicable. d233 1 a233 1 seconds before moving to the DISCOVER phase if we have an old lease to use. d235 1 a235 7 A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authorative which means d237 1 a237 1 will timeout before moving back to the DISCOVER phase. d285 2 a286 19 Timeout after .Ar seconds , instead of the default 30. A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. d288 1 a288 1 Tag the DHCPv4 messages with the userclass. a307 2 Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. d315 1 a315 11 .It Ic vendclass Ar en Ar data Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. .It Ic waitip Op 4 | 6 a316 8 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. d321 1 a321 34 .Ss Defining new options DHCP allows for the use of custom options. Each option needs to be started with the .Ic define or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to d323 1 a323 145 with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will unqiuely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space seperated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes .It Ic ip6address An IPv6 address, 16 bytes .It Ic string Op : Ic length A shell escaped string (binary data escaped as octal) .It Ic byte A byte .It Ic int16 A signed 16bit integer, 2 bytes .It Ic uint16 An unsigned 16bit integer, 2 bytes .It Ic int32 A signed 32bit integer, 4 bytes .It Ic uint32 An unsigned 32bit integer, 4 bytes .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes .It Ic domain A RFC 3397 encoded string .It Ic binhex Op : Ic length Binary data expressed as hexadecimal .It Ic embed Contains embedded options (implies encap as well) .It Ic encap Contains encapsulated options (implies embed as well) .It Ic option References an option from the global definition .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Ss Supported protocols .Bl -tag -width -indent .It Ic token Sends and expects the token with the secretid 0 in each message. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenicate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El .Sh SEE ALSO .Xr fnmatch 3 , d325 1 a325 2 .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 d327 1 a327 1 .An Roy Marples Aq Mt roy@@marples.name a328 6 When configuring DHCPv6 you can only select one IA type. I can't think of a use case where you would want different types, so if you have one then please bring it up for discussion on the .Aq Mt dhcpcd-discuss@@marples.name mailing list. .Pp @ 1.1.1.13 log @Import dhcpcd-5.5.0 with the following changes: * Shell portability fixes, including proper printf usage. * Detect a valid ntp.conf before adjusting it * reboot timeout changed to 5 seconds * When rebooting and not daemonized, reduce the discover timeout to allow for fallback or IPv4LL * Respect each kernel carrier message * Optimize some bitwise logic * Don't remove interfaces for which commands have not been sent * Store the assigned metric to each route so that we can change metrics on the fly dhcpcd -n --metric 100 iwi0 * Add SixRD support, RFC5969 * Fix SIP server support * Only regen resolv.conf if it has changed * Fix --reconfigure from spinning * Add IPv6 Router Solicitation support we regards to RDNSS and DNSSL, RFC6016 @ text @d1 1 a1 1 .\" Copyright (c) 2006-2011 Roy Marples d25 1 a25 1 .Dd December 15, 2011 a175 2 .It Ic noipv6rs Disable solicition of IPv6 Router Advertisements. d206 1 a206 1 The default is 5 seconds. @ 1.1.1.13.2.1 log @Apply patch (requested by roy in ticket #585): Update dhcpcd to version 5.6.2. @ text @d1 1 a1 1 .\" Copyright (c) 2006-2012 Roy Marples d25 1 a25 1 .Dd May 21, 2012 a146 22 .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option. Set this option so to make .Nm dhcpcd always fork on an RA. .It ic ipv6ra_own Disables kernel IPv6 Router Advertisment processing so dhcpcd can manage addresses and routes. .It ic ipv6ra_own_default Each time dhcpcd receives an IPv6 Router Adveristment, dhcpcd will manage the default route only. This allows dhcpcd to prefer an interface for outbound traffic based on metric and/or user selection rather than the kernel. .It ic ipv6rs Enables IPv6 Router Advertisment solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. d282 1 a282 4 The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 a283 2 Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. d298 1 a298 2 Please report them to .Lk http://roy.marples.name/projects/dhcpcd @ 1.1.1.14 log @Import dhcpcd-5.5.5 with the following changes: * We store the RA against the interface so we can do a comparsion so we don't spam the log frequently. * By default only fork on RA if it has a valid RDNSS option * Add .Lk macros to the man pages * Use correct event loop calls in RA handling code * Fix several memory overrun issues * Use CSR more than once * Allow operation on Bridge and VLAN interfaces @ text @d1 1 a1 1 .\" Copyright (c) 2006-2012 Roy Marples d25 1 a25 1 .Dd March 19, 2012 a146 10 .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option. Set this option so to make .Nm dhcpcd always fork on an RA. d298 1 a298 2 Please report them to .Lk http://roy.marples.name/projects/dhcpcd @ 1.1.1.15 log @Import dhcpcd-5.6.1 with the following changes: Improve IPv6 RA support by allowing dhcpcd to manage addreses and routes instead of the kernel. dhcpcd will only do this if RA has been disabled in the kernel or instructed to do so via the dhcpcd.conf(5) ipv6ra_own and/or ipv6ra_owndefault directives. Send and process IPv6 Neighbor Solicitions and Adverts to prove router reachability. If a router cannot be reached in this way then it is expired. @ text @d25 1 a25 1 .Dd May 21, 2012 a156 12 .It ic ipv6ra_own Disables kernel IPv6 Router Advertisment processing so dhcpcd can manage addresses and routes. .It ic ipv6ra_own_default Each time dhcpcd receives an IPv6 Router Adveristment, dhcpcd will manage the default route only. This allows dhcpcd to prefer an interface for outbound traffic based on metric and/or user selection rather than the kernel. .It ic ipv6rs Enables IPv6 Router Advertisment solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. d292 1 a292 4 The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 a293 2 Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. @ 1.1.1.15.2.1 log @resync with head @ text @d25 1 a25 1 .Dd October 11, 2012 a135 4 .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. d157 1 a157 1 .It Ic ipv6ra_own d160 1 a160 1 .It Ic ipv6ra_own_default d165 1 a165 1 .It Ic ipv6rs @ 1.1.1.15.2.2 log @resync from head @ text @d1 1 a1 2 .\" $NetBSD$ .\" Copyright (c) 2006-2013 Roy Marples d25 1 a25 1 .Dd June 19, 2013 a135 43 .It Ic ia_na Op Ar iaid Request a DHCPv6 Normal Address for .Ar iaid . If none is specified, a default .Ar iaid is used. If the interface name is 4 characters or less then that is used, otherwise the interface index is used. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . .It Ic ia_pd Op Ar iaid Op Ar interface Op / Ar sla_id Op / Ar prefix_len Request a DHCPv6 Delegated Prefix for .Ar iaid . If no .Ar interface is given then we will assign a prefix to every other interface with a unique .Ar sla_id for each, starting from 0. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id A default .Ar prefix_len of 64 is assumed. .Ar sla_id is an integer and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation like so: .Pp .D1 noipv6rs .Pp .D1 interface eth0 .D1 ia_pd 1 eth1/0 eth2/1 d139 3 a141 3 Only confgiure IPv6. .It Ic fqdn Op disable | ptr | both ptr just asks the DHCP server to update the PTR a142 2 disable will disable the FQDN option. The default is both. a163 1 This does not work reliably on any BSD system, probably due to kernel issues. a168 1 This does work reliably on BSD systems. a181 3 .It Ic noalias IPv4 addresses added will overwrite a pre-existing address instead of working alongside. d203 1 a203 1 Disable solicitation and receipt of IPv6 Router Advertisements. d214 1 a214 9 You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. Prepend dhcp6_ to .Ar option to request a DHCPv6 option. DHCPv4 options are mapped to DHCPv6 where applicable. d233 1 a233 1 seconds before moving to the DISCOVER phase if we have an old lease to use. d235 1 a235 7 A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authorative which means d237 1 a237 1 will timeout before moving back to the DISCOVER phase. a286 5 A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. @ 1.1.1.15.2.3 log @Rebase to HEAD as of a few days ago. @ text @d2 1 a2 1 .\" Copyright (c) 2006-2014 Roy Marples d26 2 a27 2 .Dd July 14, 2014 .Dt DHCPCD.CONF 5 a72 15 .It Ic authprotocol Ar protocol Ar algorithm Ar rdm Authenticate DHCP messages. See the Supported Protocols section. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed prptocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. a93 14 .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. a101 14 .Pp If the hostname is set, will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. d118 4 a121 6 compliant DHCP Unique Identifier. If persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). This, plus the IAID will be used as the .Ic clientid . The DUID-LLT generated will be held in a123 28 .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This option must be used in an .Ic interface block. This defaults to the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. d137 1 a137 9 .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. .It Ic ia_na Op Ar iaid Op / address d140 1 d142 3 a144 6 defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. d148 1 a148 4 You can request more than one ia_ta by specifying a unique .Ar iaid for each one. .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len a150 7 This option must be used in an .Ic interface block. Unless a .Ar sla_id of 0 is assigned, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. d153 1 a153 1 is given then we will assign a prefix to every other interface with a d155 1 a155 1 equivalent to the interface index assigned by the OS. d159 1 a159 8 .Ar sla_id . Each assigned address will have a suffix of 1. You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. .Nm dhcpcd has to be running for all the interfaces it is delegating to. d162 1 a162 7 of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accommodate the .Ar sla_id . a166 1 .Ar sla_id can be 0 only if the Delegated Prefix is assigned to one interface. a175 2 .D1 # Global settings, disable IPv4 and IPv6RS .D1 noipv4 a176 2 .D1 # Don't touch eth3 at all .D1 denyinterfaces eth3 d179 1 a179 19 .D1 ia_pd 1 eth1/1 eth2/2 .Pp .D1 # Enable automatic address configuration for eth1 .D1 # eth1 still gets a delegated prefix .D1 interface eth1 .D1 ipv4 .D1 ipv6rs .It Ic ia_pd_mix To be RFC compliant, .Nm dhcpcd cannot mix Prefix Delegation with other DHCPv6 address types in the same session. This has a number of issues: additional DHCP traffic and potential collisions between options. .Ic ia_pd_mix enables .Li draft-ietf-dhc-dhcpv6-stateful-issues-06 support so that Prefix Delegation can be mixed with other address types in the same session. d203 1 a203 1 RDNSS option and a valid prefix or no DHCPv6 instruction. a235 12 .It Ic noauthrequired Don't require authentication even though we requested it. .It Ic nodev Don't load .Pa /dev management modules. .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. a237 2 .It Ic gateway Install a default route if available (default). a246 2 .It Ic noipv4 Don't attempt to configure an IPv4 address. a252 2 .It Ic noipv6 Don't attmept to configure an IPv6 address. a326 5 .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. If .Ar private is used, a RFC7217 address is generated. d350 2 a351 3 Timeout after .Ar seconds , instead of the default 30. a356 11 If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. d358 1 a358 1 Tag the DHCPv4 messages with the userclass. a377 2 Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. d385 1 a385 11 .It Ic vendclass Ar en Ar data Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. .It Ic waitip Op 4 | 6 a386 8 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. d391 1 a391 34 .Ss Defining new options DHCP allows for the use of custom options. Each option needs to be started with the .Ic define or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to d393 1 a393 145 with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will unqiuely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space separated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes .It Ic ip6address An IPv6 address, 16 bytes .It Ic string Op : Ic length A shell escaped string (binary data escaped as octal) .It Ic byte A byte .It Ic int16 A signed 16bit integer, 2 bytes .It Ic uint16 An unsigned 16bit integer, 2 bytes .It Ic int32 A signed 32bit integer, 4 bytes .It Ic uint32 An unsigned 32bit integer, 4 bytes .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes .It Ic domain A RFC 3397 encoded string .It Ic binhex Op : Ic length Binary data expressed as hexadecimal .It Ic embed Contains embedded options (implies encap as well) .It Ic encap Contains encapsulated options (implies embed as well) .It Ic option References an option from the global definition .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Ss Supported protocols .Bl -tag -width -indent .It Ic token Sends and expects the token with the secretid 0 in each message. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenicate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El .Sh SEE ALSO .Xr fnmatch 3 , d395 1 a395 2 .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 d397 1 a397 1 .An Roy Marples Aq Mt roy@@marples.name @ 1.1.1.16 log @Import dhcpcd-5.6.6 with the following changes: * Grow -4, --ipv4only and -6, --ipv6only options * Respect AUTO and ONLINK flags for each prefix in the RA @ text @d25 1 a25 1 .Dd October 11, 2012 a135 4 .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. d157 1 a157 1 .It Ic ipv6ra_own d160 1 a160 1 .It Ic ipv6ra_own_default d165 1 a165 1 .It Ic ipv6rs @ 1.1.1.17 log @Import dhcpcd-6.0.0 with the following changes: * DHCPv6 support * wpa_supplicant hook script * route IPv4 addresses to 127.0.0.1 for machine centric traffic * DHCPv6 Prefix Delegation support * DHCPv6 FQDN support * Control existing IPv4 routes * less spamy to syslog by default * IPv6 protocols now wait for a valid LL address before starting * IPv6 DAD support now listens to kernel for more accurate timings * IPv4 code split out more cleanly so dhcpcd can be compiled for IPv4, IPv6 or IPv4 AND IPv6 * MTU is no longer requested by default * a DUID is now generated in /etc/dhcpcd.duid and this is used as a client ID for DHCPv4 and DHCPv6 This does mean that you may get new DHCPv4 addresses Many bugs have also been fixed along the way and this release addresses the following PR's PR bin/47364 PR bin/47502 PR bin/47666 PR bin/47699 PR bin/47775 PR bin/47776 @ text @d1 1 a1 2 .\" $NetBSD: $ .\" Copyright (c) 2006-2013 Roy Marples d25 1 a25 1 .Dd June 19, 2013 a135 43 .It Ic ia_na Op Ar iaid Request a DHCPv6 Normal Address for .Ar iaid . If none is specified, a default .Ar iaid is used. If the interface name is 4 characters or less then that is used, otherwise the interface index is used. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . .It Ic ia_pd Op Ar iaid Op Ar interface Op / Ar sla_id Op / Ar prefix_len Request a DHCPv6 Delegated Prefix for .Ar iaid . If no .Ar interface is given then we will assign a prefix to every other interface with a unique .Ar sla_id for each, starting from 0. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id A default .Ar prefix_len of 64 is assumed. .Ar sla_id is an integer and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation like so: .Pp .D1 noipv6rs .Pp .D1 interface eth0 .D1 ia_pd 1 eth1/0 eth2/1 d139 3 a141 3 Only confgiure IPv6. .It Ic fqdn Op disable | ptr | both ptr just asks the DHCP server to update the PTR a142 2 disable will disable the FQDN option. The default is both. a163 1 This does not work reliably on any BSD system, probably due to kernel issues. a168 1 This does work reliably on BSD systems. a181 3 .It Ic noalias IPv4 addresses added will overwrite a pre-existing address instead of working alongside. d203 1 a203 1 Disable solicitation and receipt of IPv6 Router Advertisements. d214 1 a214 9 You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. Prepend dhcp6_ to .Ar option to request a DHCPv6 option. DHCPv4 options are mapped to DHCPv6 where applicable. d233 1 a233 1 seconds before moving to the DISCOVER phase if we have an old lease to use. d235 1 a235 7 A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authorative which means d237 1 a237 1 will timeout before moving back to the DISCOVER phase. a286 5 A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. @ 1.1.1.18 log @Import dhcpcd-6.0.4 with the following changes: * hostname is not stamped on anymore if already set * hostname will be set to a FQDN when possible as per RFC4702 section 3.1 * a domain is derived from the FQDN if no domain option is set * add new hostname_short command to send a short hostname for DDNS * hostname_fqdn is now documented, along with a new server setting and the potential problems associated with it * the FQDN option is no longer sent by default for DHCPv4 messages @ text @d26 1 a26 1 .Dd July 25, 2013 a101 14 .Pp If the hostname is set, will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. d119 3 a121 3 If persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). The DUID-LLT generated will be held in a136 8 .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. d397 1 a397 1 .An Roy Marples Aq Mt roy@@marples.name @ 1.1.1.19 log @Import dhcpcd-6.1.0 with the following changes: * Fixed a segfault when configuring a static route in dhcpcd.conf * Merged IPv6 ND and RA codebases * Persistent configuration is now a default option in dhcpcd.conf * Store configured IPv4 addresses against the interface so we only add them if actually missing to avoid RTM_DELADDR/NEWADDR loops on some OS's * waitip now supports waiting for any, IPv4, IPv6 or both protocols * DHCPv6 addresses are added with a /128 prefix and should not attempt to associate with any existing prefix or make one up as per RFC 5942 * Fix initial carrier status * Fix requesting >1 DHCPv6 address Fixes PR bin/48140 @ text @d26 1 a26 1 .Dd September 12, 2013 a93 7 .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. a137 7 .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. a166 1 You can request more than one ia_na by specifying a unique iaid for each one. a169 1 You can request more than one ia_ta by specifying a unique iaid for each one. a257 4 .It Ic nodev Don't load .Pa /dev management modules. d407 1 a407 1 .It Ic waitip Op 4 | 6 a408 8 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. @ 1.1.1.20 log @Import dhcpcd-6.2.0 with the following changes: * Fix NAK backoff when a server NAKs a REQUEST after a DISCOVER. * Fix IPv6 ICMP filtering on Android (RS/RA now works) * Fix sending of DHCPv6 FQDN when only hostname specified * Add support for RFC3925 Vendor-Identifying Vendor Options * Remove hard coded DHCP/DHCPv6 options and embed dhcpcd-definitions.conf. This actually results in a slightly smaller binary than before and has the added advantage that the option definitions are now all held within one file. * Change IAID to default from the last 4 bytes of the MAC address. Rationale in the commit, but in a nutshell it allows for a stable IAID between reboots without persistent storage and across different OS's who name or number it differently to each other. * RFC4242, Information Refresh Time Option for DHCPv6. * Fix processing of inet4 addr in vendor options and terminate correctly. * Preserve vendor encapsulated options. * Fix renewal of Prefix Delegation. Only spam the log if a lease has a new address or changes the vltime of an existing address. * Add noipv4 and noipv6 options. * Warn about missing interfaces which require prefix delegation. * If we timeout, remove any waitip config so that we daemonise correctly. * Remove the IPv6 forwarding router check as valid use cases exist where you would want IPv6 RS/RA on a router. * Pass the correct run directory to dhcpcd-run-hooks @ text @d26 2 a27 2 .Dd December 6, 2013 .Dt DHCPCD.CONF 5 d139 1 a139 1 compliant DHCP Unique Identifier. a141 2 This, plus the IAID will be used as the .Ic clientid . a144 10 .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This defaults to the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. d176 1 d178 4 a181 6 defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. d185 1 a185 3 You can request more than one ia_ta by specifying a unique .Ar iaid for each one. a288 2 .It Ic noipv4 Don't attempt to configure an IPv4 address. a294 2 .It Ic noipv6 Don't attmept to configure an IPv6 address. d392 2 a393 3 Timeout after .Ar seconds , instead of the default 30. a398 11 If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. a426 10 .It Ic vendclass Ar en Ar data Add the Vendor Indetifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. d441 1 a441 34 .Ss Defining new options DHCP allows for the use of custom options. Each option needs to be started with the .Ic define or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to d443 1 a443 99 with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will unqiuely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space seperated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes .It Ic ip6address An IPv6 address, 16 bytes .It Ic string Op : Ic length A shell escaped string (binary data escaped as octal) .It Ic byte A byte .It Ic int16 A signed 16bit integer, 2 bytes .It Ic uint16 An unsigned 16bit integer, 2 bytes .It Ic int32 A signed 32bit integer, 4 bytes .It Ic uint32 An unsigned 32bit integer, 4 bytes .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes .It Ic domain A RFC 3397 encoded string .It Ic binhex Op : Ic length Binary data expressed as hexadecimal .It Ic embed Contains embedded options (implies encap as well) .It Ic encap Contains encapsulated options (implies embed as well) .It Ic option References an option from the global definition .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Sh SEE ALSO .Xr fnmatch 3 , d445 1 a445 2 .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 a448 6 When configuring DHCPv6 you can only select one IA type. I can't think of a use case where you would want different types, so if you have one then please bring it up for discussion on the .Aq Mt dhcpcd-discuss@@marples.name mailing list. .Pp @ 1.1.1.21 log @Import dhcpcd-6.3.0 with the following changes: * IAID must be inside an interface block. * Detect IPv6 address flags on Linux. * Check that we have ctrl_interface defined in wpa_supplicant.conf and pass this parameter to wpa_cli(8). If not set, warn about not interacting with wpa_supplicant(8). * Skip Virtual Interface Masters. Currently this only applies to FreeBSD VAP masters as dhcpcd should only work on wlandev created clones. * Fix handling of ARP failures, thanks to Sebastian Huber. * Implement RFC 1321 MD5 Message-Digest if not provided in libc. * Implement RFC 2104 HMAC Keyed Hashing. * Implement RFC 3118 Authentication for DHCP Messages and RFC 3315 Authentication options. * Add nodhcp and nodhcp6 directives. Thanks to Sebastian Huber for the initial patch and testing. * Implement support for RFC 3203, FORCERENEW message. * Implement Force Renew Nonce Capability option, RFC6704 * Support RECONFIGURE DHCPv6 messages. * Add support for DHCP auto configuration, RFC 2563. * Add support for the following RFCs + DHCP SLP Directory Agent, RFC2610 + DHCP Name Service Search, RFC2937 + DHCP PANA Authentication Agent, RFC5192 + DHCP Lost Server, RFC5223 + DHCP CAPWAP, RFC5417 + DHCP Mobility Services, RFC5678 + DHCP SIP UA, RFC6011 + DHCP ANDSF, RFC6153 + DHCP RDNSS Selection for MIF Nodes, RFC6731 + DHCP TFTP Server Address, RFC5859 + DHCP PXELINUX, RFC5071 + DHCP Access Network Domain Name, RFC5986 + DHCP Virtual Subnet Selection, RFC6607 + DHCP Relay Agent Remote-ID, RFC4649 + DHCP Relay Agent Subscriber-ID, RFC4580 + DHCPv6 Relay-ID, RFC5460 + DHCPv6 LIS Discovery, RFC5986 + DHCPv6 SIP UA, RFC6011 + DHCPv6 Network Boot, RFC5970 + DHCPv6 Home Info Discovery in MIPv6, RFC6610 + DHCPv6 RDNSS Selection for MIF Nodes, RFC6731 + DHCPv6 Kerberos, RFC6784 + DHCPv6 Relay-Triggered Reconfiguration, RFC6977 + DHCPv6 SOL_MAX_RT, RFC7083 * Open UDP sockets for *.*.*.*:bootpc and $ip_address:bootpc to avoid kernel ICMP unreachable messages * Moved global variables into context variables so dhcpcd is entirely thread safe. dhcpcd doens't use threads, but it can now be used in a pure threads (ie no process) environment. * Remove DEBUG_MEMORY guard and always free memory and resources. Remove all atexit(3) and exit(3) calls, instead exiting via the eloop. * Replace get_line with sscanf where applicable. * Remove custom set_cloexec and set_nonblock functions. Instead pass O_CLOEXEC or SOCK_CLOEXEC to open, socket, etc. * Don't use PATH_MAX - we already know the maximum length from the initial directory and IF_NAMESIZE. * Add a USE_SIGNALS define. If we're not using signals then we also create a control socket in the non MASTER case. We then use this to communicate instead of signals. * Fix arping moving to the next test if we find the IP address but do not have a profile for it. Thanks to David McGurty for the analysis. * Respect initial commandline arguments when rebooting via a signal. @ text @d2 1 a2 1 .\" Copyright (c) 2006-2014 Roy Marples d26 1 a26 1 .Dd January 30, 2014 a72 15 .It Ic authprotocol Ar protocol Ar algorithm Ar rdm Authenticate DHCP messages. See the Supported Protocols section. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed prptocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. a149 3 This option must be used in an .Ic interface block. a203 3 This option must be used in an .Ic interface block. d212 1 a212 4 .Ar sla_id . You cannot assign a prefix to the requesting interface. .Nm dhcpcd has to be running for all the interfaces it is delegating to. a229 2 .D1 # Don't touch eth3 at all .D1 denyinterfaces eth3 a232 6 .Pp .D1 # Disable automatic address configuration for eth1 .D1 # eth1 still gets a delegated prefix .D1 interface eth1 .D1 noipv4 .D1 noipv6 a288 2 .It Ic noauthrequired Don't require authentication even though we requested it. a292 6 .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. d431 1 a431 1 Tag the DHCPv4 messages with the userclass. a450 2 Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. d459 1 a459 1 Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise a613 46 .Ss Supported protocols .Bl -tag -width -indent .It Ic token Sends and expects the token with the secretid 0 in each message. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenicate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El @ 1.1.1.22 log @Import dhcpcd-6.4.0 with the following changes: * Only fork when the RA has a RDNSS option AND a valid prefix OR no DHCPv6 instruction. * Handle BSD per interface rtadv kernel flag. * Add a reject route for the delegated prefix so that unassigned prefixes don't go back upstream. * If not specified, Delegated Prefixes will get an automatic SLA of the interface index. If the biggest SLA and the assigned prefix fits into a /64 then dhcpcd creates a /64 prefix so that SLAAC works. If bigger than /64 is needed then dhcpcd creates one rounded upto the nearest multiple of 8. Unless a configured SLA of 0 is assigned, a reject route for the Delegated Prefix is installed to stop unassigned addresses trying to be resolved upstream. Addresses added from Delegated Prefixes now have a default address suffix of 1 instead of using a SLAAC style address. * Don't spam timezone updates unless its actually changed. * Support ND6_IFF_OVERRIDE_RTADV on BSD. * Document why we don't send both FQDN and hostname options. * Respect RFC4861 MAX_RTR_SOLICITATION_DELAY as specified in section 6.3.7. * RFC2131 section 4.4.1 states the client SHOULD wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. Instead we wait a random time between zero and one second to mirror the more modern IPv6RS and DHCPv6 standards unless overridden by defining RFC2131_STRICT. * Always send a carrier as it's no longer encapsulated in the IPv4 stack. When stopping and not departed, run with the STOPPED reason but do not process it in hooks. * Poll kernel neighbour reachability (SIOCGNBRINFO_IN6) for each router instead of sending and listening for Neighbour Soliciation/Advertisement packets. The kernel is privy to a lot more reachability information than userland is. * Ensure that ND6_IFF_PERFORMNUD is set. * controlgroup option changes group ownership of the control socket. * Should use arc4random_uniform when wanting a randon number between 1 and N. Improve the compat arc4random function a little and re-stir on fork. * -4 and -6 are now mutually exclusive and when running on a single interface per protocol pidfiles are created. This means that other control options suchs as -x and -n will require the -4 or -6 option as well. * Implement Stable Private Addresses for SLAAC as per RFC7217. Enable this as default in dhcpcd.conf. * Log error condition if a new or changed Router Advertisment to avoid spamming the log. * Add an IPv6 link-local address before upping the interface if needed. Bring an interface up when we start it and not during discovery. As such, stop waiting on carrier for a second if we did. * Add gateway option to enable the gateway or an interface/profile. Ensure the option and require options disable the nooption option - last wins. * Restarting ntp/yp are not critical and their initialisation continues in the background as well so we may as well background the restart commands for faster dhcpcd performance. @ text @d26 1 a26 1 .Dd June 6, 2014 a108 7 .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. a174 8 .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. a224 4 Unless a .Ar sla_id of 0 is assigned, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. d227 1 a227 1 is given then we will assign a prefix to every other interface with a d229 1 a229 1 equivalent to the interface index assigned by the OS. a233 1 Each assigned address will have a suffix of 1. d239 1 a239 7 of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accomodate the .Ar sla_id . a243 1 .Ar sla_id can be 0 only if the Delegated Prefix is assigned to one interface. a252 2 .D1 # Global settings, disable IPv4 and IPv6RS .D1 noipv4 d258 1 a258 1 .D1 ia_pd 1 eth1/1 eth2/2 d260 1 a260 1 .D1 # Enable automatic address configuration for eth1 d263 2 a264 2 .D1 ipv4 .D1 ipv6rs d288 1 a288 1 RDNSS option and a valid prefix or no DHCPv6 instruction. a334 2 .It Ic gateway Install a default route if available (default). a427 2 .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. @ 1.1.1.23 log @Import dhcpcd-6.4.1 with the following changes: * If just given a domain and no search list, make the search list the domain * Skip arpping directives if we have a profile but not parsing one * Allow the request of a DHCPv6 address or prefix, a prefix length must be specified * Add the ability to dump DHCPv6 leases * Improve startup with regards to carrier checking and adding a link-local IPv6 address * Start the correct interface reference for added devices * Support http://datatracker.ietf.org/doc/draft-ietf-dhc-dhcpv6-stateful-issues-06 via the ia_pd_mix option * Fix link handling where kernel reported flags in LINK_UP may not be valid when we actually process them * Fix defining new options in dhcpcd.conf and requesting them * Fix a potential segfault when reloading configurations * Print user defined options via -V * Add support for RFC6603, Prefix Exclude option * When requesting a IA_PD and another IA type, create a psuedo interface to handle the IA_PD * Handle truncated DHCPv6 saved leases @ text @d26 1 a26 1 .Dd July 7, 2014 d218 1 a218 1 .It Ic ia_na Op Ar iaid Op / address d234 1 a234 1 .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len d254 1 a254 4 You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. a293 12 .It Ic ia_pd_mix To be RFC compliant, .Nm dhcpcd cannot mix Prefix Delegation with other DHCPv6 address types in the same session. This has a number of issues: additional DHCP traffic and potential collisions between options. .Ic ia_pd_mix enables .Li draft-ietf-dhc-dhcpv6-stateful-issues-06 support so that Prefix Delegation can be mixed with other address types in the same session. a460 3 If .Ar private is used, a RFC7217 address is generated. d743 6 @ 1.1.1.24 log @Import dhcpcd-6.4.3 with the following changes: * Correct DHCPv6 Prefix Delegation option decoding * Poll interfaces on BSD for IFF_RUNNING if link state cannot be obtained * Check for an IA to use in DHCPv6 lease validation * Warn about exceeding IDGEN_RETRIES when a stable private address cannot be obtained * Fix DHCP option overload handling, thanks to Tobias Stoeckmann @ text @d26 1 a26 1 .Dd July 14, 2014 d267 1 a267 1 is increased to the highest multiple of 8 that can accommodate the d656 1 a656 1 The option data is split into a space separated array, each element being @ 1.1.1.25 log @Import dhcpcd-6.4.4 with the following changes: * Many bounds checking fixes from Tobias Stoeckmann * Improve error when the authentication token cannot be found * close the IPv4 specific UDP socket when done sending * Implemented a write queue to the control sockets * Only send interfaces to control sockets when in a BOUND state * Add a sample controlgroup directive to dhcpcd.conf to make setup easier * Add variables if_oneup and if_ipwaited so hook scripts know the overall state of dhcpcd better * Pass RC_SVCNAME from enviromment to hooks so that a service hook can know it's name (may not be dhcpcd) * Document every variable set for dhcpcd-run-hooks(8) * Allow SSIDs with non printable characters to be used in ssid selection in dhcpcd.conf * Add an unprivileged control socket so that normal users can obtain dhcpcd running state @ text @d26 1 a26 1 .Dd September 14, 2014 d75 1 a75 1 See the Supported Authentication Protocols section. a87 12 For the token protocol, .Ar secretid needs to be 0 and .Ar realm needs to be "". If .Nm dhcpcd has the error .D1 dhcp_auth_encode: Invalid argument then it means that .Nm dhcpcd could not find the correct authentication token in your configuration. a130 5 Or set which driver .Xr wpa_supplicant 8 should use with .Ic env .Va wpa_supplicant_driver=nl80211 d707 1 a707 1 .Ss Supported Authentication Protocols d710 1 a710 1 Sends and expects the token with the secretid 0 and realm of "" in each message. d727 1 a727 1 .Ss Supported Authentication Algorithms @ 1.1.1.26 log @Import dhcpcd-6.5.0 with the following changes: * Fix an unaligned access error on BeagleBone Black with FreeBSD. Thanks to Guy Yur for the patch. * Remove the fast loop trying to up an interface which does not report carrier. * Remove vis based encoding - instead validate against option type and stop at invalid [1] This removes all shell escaped encoding - dhcpcd will assume that IF the --script option is a shell, it will quote variables correctly. The stock dhcpcd-run-hooks does. * dhcpcd -V now prints how the variables will be decoded. * Changed some options in dhcpcd-definitions.conf to more sensible defaults. * Don't daemonise on delegated address dad. * Don't drop delegated reject route when forking. * Fix IPv6 handling of link-local addresses on KAME stacks. * Work on OpenBSD-5.6 without any special interface setup needed. * Callout to handlecarrier when we don't have real carrier support and rely on looking at IFF_UP and IFF_RUNNING. This allows our hooks to know that dhcpcd thinks we have a carrier or not. [1] DHCP option encodings defined in dhcpcd-definitions.conf * domain (RFC3397)/dname (string) is strict domain name allowance (ie, [alnum] with _- (but not at the start or end)) * string is now printable ascii (1-127) until invalid * ascii is all ascii (1-127) until invalid * raw is all chars (1-255) until NUL * binhex is a hex representation of the option including embedded NULs * ssid is still escpaed octal because it's expected to be human readable AND can technically be all NUL * everything else has strict option -> value encoding @ text @d26 1 a26 1 .Dd October 3, 2014 d356 1 d362 1 d687 1 a687 1 A NVT ASCII string of printable characters. a701 2 .It Ic dname A RFC 1035 validated string @ 1.1.1.27 log @Import dhcpcd-6.5.1 with the following changes: * Don't work on bridge, or ptp interfaces unless explicitly told * Poll for IFF_RUNNING again but avoid constantly sending IFF_UP (should now fix all carrier problems on BSD virtual interfaces) * Don't crash when processing IPv6 route calls from the kernel when IPv6 resources have been disabled in dhcpcd * Allow the same IP address to be shared across different interfaces Interface with the lowest metric gets the IP address, will move to the next highest if dropped (interface departs, carrier drops, etc) * Delegated prefix addresses are now reported via DELEGATE6 * Work better with unknown delegated prefix lengths * Move IPv4LL and ARP to the DHCP eloop queue to fix timing issues * Add IA PD documentation update from christos @ text @d298 1 a298 1 IPv6RS should be disabled globally when requesting a Prefix Delegation. d300 14 a313 19 In the following example eth0 is the externally facing interface to be configured for both IPv4 and IPv6. The DHCPv4 server will provide us with an IPv4 address and a default route. The DHCPv6 server is going to provide us with an IPv6 address, a default route and a /64 subnet to be delegated to the internal interface. The eth1 interface will be automatically configured for IPv6 using the first address (::1) from the delegated prefix. .Xr rtadvd 8 can be used with an empty configuration file on eth1 to provide automatic IPv6 address configuration for the internal network. .Bd -literal -indent noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all interface eth0 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # get a /64 and assign it to eth1 .Ed @ 1.1.1.28 log @dhcpcd-6.6.0 has been imported with the following changes: * Log the address IPv4LL defends * PREINIT, UNKNOWN and CARRIER are not either up nor down states * ARP code re-written to allow for many ARP states * IPv4LL address is now pseudo random based on HW address instead of really random as per RFC 3927 Section 2.1 * If not doing DHCP or DHCP6, disable the DNS requirement in the RA to fork. * Treat IPv4LL as fallback and start DHCP discovery even if the prior lease was IPv4LL when rebooting. * When we transition from REQUEST to DISCOVER in a reboot, start IPv4LL at the same time as discover to ensure we have an address quicker. @ text @d459 1 a459 2 seconds before moving to the DISCOVER phase if we have an old lease to use and moving from DISCOVER to IPv4LL if no reply. @ 1.1.1.29 log @Import dhcpcd-6.6.1 with the following changes: * Improve handling of the IPv6LL address at startup * Support old Linux kernels where IFLA_AF_SPEC may not exist * When stopping interfaces, skip past pseudo interfaces instead of finding the master as only the masters are sorted correctly RCSIDs have been removed from the import and will be added afterwards as patches as technically they are not part of the dhcpcd project directly. Hopefully this will be future imports less painful. @ text @d1 1 @ 1.1.1.30 log @Import dhcpcd-6.6.6 with the following changes: * Clarify timeout and reboot timeout, make it more sane * A server should not NAK an INFORM * The noalias directive will now remove any IPv4 addresses existing on the interface when we want to add our own * Stop polling for IPv6 router reachability Instead, expect for cached neighour route additions/changes/removals to be announced by the kernel * Store acquired time for each IPv6 address so we can correctly offset pltime and vltime if we need to re-add them @ text @d25 1 a25 1 .Dd December 13, 2014 d379 2 a380 2 Any pre-existing IPv4 addresses existing address will be removed from the interface when adding a new IPv4 address. @ 1.1.1.31 log @Import dhcpcd-6.7.0 with the following changes: * Only release the DHCPv6 lease when dropping it. * Fix handling of ND6_IFF_OVERRIDE_RTADV on BSD. * Include paths.h to get _PATH_BPF. Thanks to Joerg Sonnenberger. * Report a better error of the kernel lacks a BPF equivalent filter. * Implement RFC4941, Privacy Extensions for Stateless Address Autoconfiguration in IPv6 when dhcpcd is overriding the in-kernel RA support. For BSD, this is a full userland implementation. * reject